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
| 16 | // |
| 17 | // Entities are attached in the order: Image -> Container -> Pod -> RC. Attachments out of order are not allowed. |
| 18 | type 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. |
| 32 | type Builder interface { |
no outgoing calls
no test coverage detected