Versions in this module Expand all Collapse all v0 v0.1.0 Mar 2, 2016 Changes in this version + const NoImageErrStr + var DefaultContainer = kube.Container + var DefaultPodSpec = kube.PodSpec + var ErrMissingContainer = errors.New("pod must have containers to be deployed") + var ErrMissingImage = errors.New("container must have an image to be deployed") + var ErrMissingPod = errors.New("replication controller must have pod to be deployed") + var ErrorBadAttachOrder = errors.New("entities cannot attach to entities of a lower type") + var ErrorEmptyImageString = errors.New("image.Image's String was empty") + var ErrorInvalidAttachType = errors.New("the entity to be attached is of an unknown type") + var ErrorMaxAttached = errors.New("no more entities can be attached") + var ErrorNilEntity = errors.New("entities cannot be nil") + var ErrorNilImage = errors.New("*image.Image cannot be nil") + var ErrorNilObject = errors.New("an object was nil, this is not allowed") + type Builder interface + Build func() (Entity, error) + type Container struct + func NewContainer(container kube.Container, defaults kube.ObjectMeta, source string, ...) (*Container, error) + func (base Container) DefaultMeta() kube.ObjectMeta + func (base Container) Objects() []deploy.KubeObject + func (base Container) Source() string + func (base Container) Type() Type + func (c *Container) Attach(e Entity) error + func (c *Container) Deployment() (*deploy.Deployment, error) + func (c *Container) Images() []*image.Image + type Entity interface + Attach func(Entity) error + DefaultMeta func() kube.ObjectMeta + Objects func() []deploy.KubeObject + Source func() string + Type func() Type + type Image struct + func NewImage(image *image.Image, defaults kube.ObjectMeta, source string, ...) (*Image, error) + func (base Image) DefaultMeta() kube.ObjectMeta + func (base Image) Objects() []deploy.KubeObject + func (base Image) Source() string + func (base Image) Type() Type + func (c *Image) Attach(e Entity) error + func (c *Image) Deployment() (*deploy.Deployment, error) + func (c *Image) Images() []*image.Image + type Pod struct + func NewDefaultPod(meta kube.ObjectMeta, source string, objects ...deploy.KubeObject) (*Pod, error) + func NewPod(kubePod *kube.Pod, defaults kube.ObjectMeta, source string, ...) (*Pod, error) + func NewPodFromPodSpec(meta kube.ObjectMeta, podSpec kube.PodSpec, defaults kube.ObjectMeta, ...) (*Pod, error) + func (base Pod) DefaultMeta() kube.ObjectMeta + func (base Pod) Objects() []deploy.KubeObject + func (base Pod) Source() string + func (base Pod) Type() Type + func (c *Pod) Attach(curEntity Entity) error + func (c *Pod) Deployment() (*deploy.Deployment, error) + func (c *Pod) Images() (images []*image.Image) + type ReplicationController struct + func NewReplicationController(kubeRC *kube.ReplicationController, defaults kube.ObjectMeta, source string, ...) (*ReplicationController, error) + func (base ReplicationController) DefaultMeta() kube.ObjectMeta + func (base ReplicationController) Objects() []deploy.KubeObject + func (base ReplicationController) Source() string + func (base ReplicationController) Type() Type + func (c *ReplicationController) Attach(e Entity) error + func (c *ReplicationController) Deployment() (*deploy.Deployment, error) + func (c *ReplicationController) Images() (images []*image.Image) + type Type int + const EntityApplication + const EntityContainer + const EntityImage + const EntityPod + const EntityReplicationController + func (t Type) String() string