MCPcopy
hub / github.com/redspread/spread / Entity

Interface Entity

pkg/entity/entity.go:18–29  ·  view source on GitHub ↗

Entity is the fundamental building block of `spread`'s internal representation of state. Entities exist for both constructs that already exist in Kubernetes (RC, Pod, Container) as well as ones that have been added (image). An entity must at all times be capable of producing a Deployment. Entities

Source from the content-addressed store, hash-verified

16//
17// Entities are attached in the order: Image -> Container -> Pod -> RC. Attachments out of order are not allowed.
18type Entity interface {
19 deploy.Deployable
20 Type() Type
21 Objects() []deploy.KubeObject
22 Source() string
23 Attach(Entity) error
24 DefaultMeta() kube.ObjectMeta
25
26 // prevents implementation by external packages
27 name() string
28 children() []Entity
29}
30
31// Builder is used by input sources that create Entities.
32type Builder interface {

Callers 35

ResolveCommitMethod · 0.65
TestSourceInvalidEntityFunction · 0.65
TestImageTypeFunction · 0.65
TestBaseNewFunction · 0.65
validAttachMethod · 0.65
commandsFunction · 0.65
TestDeploymentObjectsFunction · 0.65
AddDeploymentMethod · 0.65
DeployMethod · 0.65
baseMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected