GitOps for k8s
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

resource.go 592B

1234567891011121314151617181920
  1. package resource
  2. import (
  3. "github.com/weaveworks/flux"
  4. "github.com/weaveworks/flux/image"
  5. "github.com/weaveworks/flux/policy"
  6. )
  7. // For the minute we just care about
  8. type Resource interface {
  9. ResourceID() flux.ResourceID // name, to correlate with what's in the cluster
  10. Policy() policy.Set // policy for this resource; e.g., whether it is locked, automated, ignored
  11. Source() string // where did this come from (informational)
  12. Bytes() []byte // the definition, for sending to cluster.Sync
  13. }
  14. type Container struct {
  15. Name string
  16. Image image.Ref
  17. }