{"modulePath":"github.1git.de/openshift/origin","version":"v3.6.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\nPackage cmd contains various interface implementations for command-line tools associated with deploymentconfigs.\n\n## Functions\n\n```go\nfunc NewDeploymentConfigHistoryViewer(oc client.Interface, kc kclientset.Interface) kubectl.HistoryViewer\n```\n\n```go\nfunc NewDeploymentConfigReaper(oc client.Interface, kc kclientset.Interface) kubectl.Reaper\n```\nNewDeploymentConfigReaper returns a new reaper for deploymentConfigs\n\n```go\nfunc NewDeploymentConfigRollbacker(oc client.Interface) kubectl.Rollbacker\n```\n\n```go\nfunc NewDeploymentConfigScaler(oc client.Interface, kc kclientset.Interface) kubectl.Scaler\n```\nNewDeploymentConfigScaler returns a new scaler for deploymentConfigs\n\n```go\nfunc NewDeploymentConfigStatusViewer(oc client.Interface) kubectl.StatusViewer\n```\n\n## Types\n\n```go\ntype BasicDeploymentConfigController struct{}\n```\n\n```go\nfunc (BasicDeploymentConfigController) Generate(genericParams map[string]interface{}) (runtime.Object, error)\n```\n\n```go\nfunc (BasicDeploymentConfigController) ParamNames() []kubectl.GeneratorParam\n```\n\n```go\ntype DeploymentConfigHistoryViewer struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentConfigHistoryViewer is an implementation of the kubectl HistoryViewer interface for deployment configs.\n\n```go\nfunc (h *DeploymentConfigHistoryViewer) ViewHistory(namespace, name string, revision int64) (string, error)\n```\nViewHistory returns a description of all the history it can find for a deployment config.\n\n```go\ntype DeploymentConfigReaper struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentConfigReaper implements the Reaper interface for deploymentConfigs\n\n```go\nfunc (reaper *DeploymentConfigReaper) Stop(namespace, name string, timeout time.Duration, gracePeriod *metav1.DeleteOptions) error\n```\nStop scales a replication controller via its deployment configuration down to zero replicas, waits for all of them to get deleted and then deletes both the replication controller and its deployment configuration.\n\n```go\ntype DeploymentConfigRollbacker struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentConfigRollbacker is an implementation of the kubectl Rollbacker interface for deployment configs.\n\n```go\nfunc (r *DeploymentConfigRollbacker) Rollback(obj runtime.Object, updatedAnnotations map[string]string, toRevision int64, dryRun bool) (string, error)\n```\nRollback the provided deployment config to a specific revision. If revision is zero, we will rollback to the previous deployment.\n\n```go\ntype DeploymentConfigScaler struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentConfigScaler is a wrapper for the kubectl Scaler client\n\n```go\nfunc (scaler *DeploymentConfigScaler) Scale(namespace, name string, newSize uint, preconditions *kubectl.ScalePrecondition, retry, waitForReplicas *kubectl.RetryParams) error\n```\nScale updates the DeploymentConfig with the provided namespace/name, to a new size, with optional precondition check (if preconditions is not nil), optional retries (if retry is not nil), and then optionally waits for its deployment replica count to reach the new value (if wait is not nil).\n\n```go\nfunc (scaler *DeploymentConfigScaler) ScaleSimple(namespace, name string, preconditions *kubectl.ScalePrecondition, newSize uint) (string, error)\n```\nScaleSimple does a simple one-shot attempt at scaling - not useful on its own, but a necessary building block for Scale.\n\n```go\ntype DeploymentConfigStatusViewer struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentConfigStatusViewer is an implementation of the kubectl StatusViewer interface for deployment configs.\n\n```go\nfunc (s *DeploymentConfigStatusViewer) Status(namespace, name string, desiredRevision int64) (string, bool, error)\n```\nStatus returns a message describing deployment status, and a bool value indicating if the status is considered done\n\n","path":"github.1git.de/openshift/origin/pkg/deploy/cmd","name":"cmd","synopsis":"Package cmd contains various interface implementations for command-line tools associated with deploymentconfigs.","isRedistributable":true}
