Documentation ¶
Index ¶
- func DecodeDeploymentConfig(controller *api.ReplicationController, codec runtime.Codec) (*deployapi.DeploymentConfig, error)
- func DeployerPodNameForDeployment(deployment *api.ReplicationController) string
- func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
- func HashPodSpec(t api.PodSpec) uint64
- 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)
- func PodSpecsEqual(a, b api.PodSpec) bool
- func StatusForDeployment(deployment *api.ReplicationController) deployapi.DeploymentStatus
- type ListWatcherImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 DeployerPodNameForDeployment ¶ added in v0.3.2
func DeployerPodNameForDeployment(deployment *api.ReplicationController) string
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 HashPodSpec ¶ added in v0.2.1
HashPodSpecs hashes a PodSpec into a uint64. TODO: Resources are currently ignored due to the formats not surviving encoding/decoding in a consistent manner (e.g. 0 is represented sometimes as 0.000)
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.
func PodSpecsEqual ¶ added in v0.2.1
PodSpecsEqual returns true if the given PodSpecs are the same.
func StatusForDeployment ¶ added in v0.5.1
func StatusForDeployment(deployment *api.ReplicationController) deployapi.DeploymentStatus
StatusForDeployment gets the DeploymentStatus for deployment from its annotations.
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.