Documentation ¶
Index ¶
- Constants
- func ConfigSelector(name string, list []api.ReplicationController) []api.ReplicationController
- func DecodeDeploymentConfig(controller *api.ReplicationController, codec runtime.Codec) (*deployapi.DeploymentConfig, error)
- func DeployerPodNameFor(obj runtime.Object) string
- func DeployerPodNameForDeployment(deployment *api.ReplicationController) string
- func DeploymentConfigNameFor(obj runtime.Object) string
- func DeploymentDesiredReplicas(obj runtime.Object) (int, bool)
- func DeploymentNameFor(obj runtime.Object) string
- func DeploymentStatusFor(obj runtime.Object) deployapi.DeploymentStatus
- func DeploymentStatusReasonFor(obj runtime.Object) string
- func DeploymentVersionFor(obj runtime.Object) int
- func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
- func EncodedDeploymentConfigFor(obj runtime.Object) string
- func IsDeploymentCancelled(deployment *api.ReplicationController) bool
- func LabelForDeployment(deployment *api.ReplicationController) string
- func LabelForDeploymentConfig(config *deployapi.DeploymentConfig) string
- func LatestDeploymentNameForConfig(config *deployapi.DeploymentConfig) string
- func MakeDeployment(config *deployapi.DeploymentConfig, codec runtime.Codec) (*api.ReplicationController, error)
- type ListWatcherImpl
Constants ¶
const DeployerPodSuffix = "deploy"
DeployerPodSuffix is the suffix added to pods created from a deployment
Variables ¶
This section is empty.
Functions ¶
func ConfigSelector ¶ added in v0.5.4
func ConfigSelector(name string, list []api.ReplicationController) []api.ReplicationController
ConfigSelector matches all the deployments of the provided DeploymentConfig
func DecodeDeploymentConfig ¶ added in v0.2.1
func DecodeDeploymentConfig(controller *api.ReplicationController, codec runtime.Codec) (*deployapi.DeploymentConfig, error)
DecodeDeploymentConfig decodes a DeploymentConfig from controller using codec. An error is returned if the controller doesn't contain an encoded config.
func DeployerPodNameFor ¶ added in v0.5.2
func DeployerPodNameForDeployment ¶ added in v0.3.2
func DeployerPodNameForDeployment(deployment *api.ReplicationController) string
DeployerPodNameForDeployment returns the name of a pod for a given deployment
func DeploymentConfigNameFor ¶ added in v0.5.2
func DeploymentDesiredReplicas ¶ added in v0.5.3
func DeploymentNameFor ¶ added in v0.5.2
func DeploymentStatusFor ¶ added in v0.5.2
func DeploymentStatusFor(obj runtime.Object) deployapi.DeploymentStatus
func DeploymentStatusReasonFor ¶ added in v0.5.3
func DeploymentVersionFor ¶ added in v0.5.2
func EncodeDeploymentConfig ¶ added in v0.2.1
func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
EncodeDeploymentConfig encodes config as a string using codec.
func EncodedDeploymentConfigFor ¶ added in v0.5.2
func IsDeploymentCancelled ¶ added in v0.5.3
func IsDeploymentCancelled(deployment *api.ReplicationController) bool
func LabelForDeployment ¶ added in v0.5.1
func LabelForDeployment(deployment *api.ReplicationController) string
LabelForDeployment builds a string identifier for a Deployment.
func LabelForDeploymentConfig ¶ added in v0.5.1
func LabelForDeploymentConfig(config *deployapi.DeploymentConfig) string
LabelForDeploymentConfig builds a string identifier for a DeploymentConfig.
func LatestDeploymentNameForConfig ¶ added in v0.2.1
func LatestDeploymentNameForConfig(config *deployapi.DeploymentConfig) string
LatestDeploymentNameForConfig returns a stable identifier for config based on its version.
func MakeDeployment ¶ added in v0.2.1
func MakeDeployment(config *deployapi.DeploymentConfig, codec runtime.Codec) (*api.ReplicationController, error)
MakeDeployment creates a deployment represented as a ReplicationController and based on the given DeploymentConfig. The controller replica count will be zero.
Types ¶
type ListWatcherImpl ¶ added in v0.3.2
type ListWatcherImpl struct { ListFunc func() (runtime.Object, error) WatchFunc func(resourceVersion string) (watch.Interface, error) }
ListWatcherImpl is a pluggable ListWatcher. TODO: This has been incorporated upstream; replace during a future rebase.