Documentation ¶
Index ¶
- func DecodeDeploymentConfig(controller *api.ReplicationController, codec runtime.Codec) (*deployapi.DeploymentConfig, error)
- func Difference(a, b util.StringSet) util.StringSet
- func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
- func HashPodSpec(t api.PodSpec) uint64
- func LatestDeploymentIDForConfig(config *deployapi.DeploymentConfig) string
- func MakeDeployment(config *deployapi.DeploymentConfig, codec runtime.Codec) (*api.ReplicationController, error)
- func ParamsForImageChangeTrigger(config *deployapi.DeploymentConfig, repoName string) *deployapi.DeploymentTriggerImageChangeParams
- func ParseContainerImage(image string) (string, string)
- func PodSpecsEqual(a, b api.PodSpec) bool
- func ReferencedImages(deployment *deployapi.Deployment) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDeploymentConfig ¶
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 EncodeDeploymentConfig ¶
func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
EncodeDeploymentConfig encodes config as a string using codec.
func HashPodSpec ¶
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 LatestDeploymentIDForConfig ¶
func LatestDeploymentIDForConfig(config *deployapi.DeploymentConfig) string
LatestDeploymentIDForConfig returns a stable identifier for config based on its version.
func MakeDeployment ¶
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 ParamsForImageChangeTrigger ¶
func ParamsForImageChangeTrigger(config *deployapi.DeploymentConfig, repoName string) *deployapi.DeploymentTriggerImageChangeParams
func ParseContainerImage ¶
func PodSpecsEqual ¶
PodSpecsEqual returns true if the given PodSpecs are the same.
func ReferencedImages ¶
func ReferencedImages(deployment *deployapi.Deployment) map[string]string
Returns a map of referenced image name to image version
Types ¶
This section is empty.