-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16478 from mfojtik/generated-clients-cli-3
Automatic merge from submit-queue (batch tested with PRs 16452, 16478, 16457) cli: switch to generated clients (part 1)
- Loading branch information
Showing
30 changed files
with
257 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package internalversion | ||
|
||
import ( | ||
rest "k8s.io/client-go/rest" | ||
kapi "k8s.io/kubernetes/pkg/api" | ||
|
||
appsapi "github.com/openshift/origin/pkg/apps/apis/apps" | ||
) | ||
|
||
type RolloutLogInterface interface { | ||
Logs(name string, options appsapi.DeploymentLogOptions) *rest.Request | ||
} | ||
|
||
func NewRolloutLogClient(c rest.Interface, ns string) RolloutLogInterface { | ||
return &rolloutLogs{client: c, ns: ns} | ||
} | ||
|
||
type rolloutLogs struct { | ||
client rest.Interface | ||
ns string | ||
} | ||
|
||
func (c *rolloutLogs) Logs(name string, options appsapi.DeploymentLogOptions) *rest.Request { | ||
return c.client. | ||
Get(). | ||
Namespace(c.ns). | ||
Resource("deploymentConfigs"). | ||
Name(name). | ||
SubResource("log"). | ||
VersionedParams(&options, kapi.ParameterCodec) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.