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.

registry.go 506B

123456789101112131415161718192021
  1. package registry
  2. import (
  3. "errors"
  4. "github.com/weaveworks/flux/image"
  5. )
  6. var (
  7. ErrNoImageData = errors.New("image data not available")
  8. )
  9. // Registry is a store of image metadata.
  10. type Registry interface {
  11. GetImageRespositoryMetadata(image.Name) (image.RepositoryMetadata, error)
  12. GetImage(image.Ref) (image.Info, error)
  13. }
  14. // ImageCreds is a record of which images need which credentials,
  15. // which is supplied to us (probably by interrogating the cluster)
  16. type ImageCreds map[image.Name]Credentials