package
1.0.0
Repository: https://github.com/redspread/spread.git
Documentation: pkg.go.dev

# Functions

NewApp creates a new App entity.
NewContainer creates a new Entity for the provided kube.Container.
NewDefaultPod creates a Pod using spreads defaults without any containers attached.
NewImage creates a new Entity for the image.Image it's provided with.
NewPod creates a Entity for a corresponding *kube.Pod.
NewPodFromPodSpec creates a new Pod using ObjectMeta and a PodSpec.
NewReplicationController creates a new Entity for the provided kube.ReplicationController.

# Constants

EntityApplication is for Application (top of tree).
EntityContainer is for Container.
EntityImage is for Image.
EntityPod is for Pod.
EntityReplicationController is for ReplicationController.
NoImageErrStr is the error message returned by k8s when the image field has been left blank.

# Variables

DefaultContainer is the default for all new Containers.
DefaultPodSpec is the default for newly created Pods.
ErrMissingContainer is where the Pod is being used in a context where it must be valid and doesn't have a Container.
ErrMissingImage is where the Container is being used in a context where it must be valid and doesn't have an Image.
ErrMissingPod is when the RC is being used in a context where it must be valid and doesn't have a Pod.
ErrorBadAttachOrder is when an attachment is attempted in an improper order.
ErrorEmptyImageString is when an Image is created with an empty name.
ErrorInvalidAttachType is when the Type of the attached object in invalid.
ErrorMaxAttached is when an Entity cannot support more Entities attaching.
ErrorNilEntity is when an entity is nil.
ErrorNilImage is when an Image is created with a nil *image.Image.
ErrorNilObject is when a deploy.KubeObject is null.

# Structs

App is a new Spread construct that can group together sets of Entities.
Container represents kube.Container in the Redspread hierarchy.
Image represents a Docker image in the Redspread hierarchy.
Pod represents kube.Pod in the Redspread hierarchy.
ReplicationController represents kube.ReplicationController in the Redspread hierarchy.

# Interfaces

Builder is used by input sources that create Entities.
Entity is the fundamental building block of `spread`'s internal representation of state.

# Type aliases

Type identifies the entity's type.