Documentation ¶
Index ¶
- func FullName(repo, branch, tag string) (string, error)
- func GetTag(repo, branch, tag string) (string, error)
- func InitECR(c *ECRConfig) error
- func InitRegistry(c *RegistryConfig) error
- type ECRConfig
- type ECRService
- type Image
- type NotFoundError
- type RegistryConfig
- type RegistryService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullName ¶ added in v1.1.0
FullName returns the complete docker image name, including any branch info
func InitRegistry ¶ added in v1.1.0
func InitRegistry(c *RegistryConfig) error
InitRegistry initializes the docker registry service
Types ¶
type ECRConfig ¶ added in v1.1.0
type ECRConfig struct { Region string AccessKeyID string SecretAccessKey string Namespace string BranchDelimiter string RegistryID *string }
ECRConfig is the ECR service configuration
type ECRService ¶ added in v1.1.0
type ECRService struct {
// contains filtered or unexported fields
}
ECRService is an implementation of the docker Service interface It fetches docker images
func (*ECRService) FullName ¶ added in v1.1.0
func (s *ECRService) FullName(repo, branch, tag string) (string, error)
FullName implements the Service interface
func (*ECRService) GetRepository ¶ added in v1.1.0
func (s *ECRService) GetRepository(repo string, branches []string) ([]*Image, error)
GetRepository implements the Service interface
type Image ¶
type Image struct { Tag string `json:"tag"` Branch string `json:"branch"` Revision string `json:"revision"` LastModified time.Time `json:"lastModified"` }
Image represents a docker image in a repository
type NotFoundError ¶
type NotFoundError struct { }
NotFoundError is raised when a given repository or image tag is not found
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type RegistryConfig ¶ added in v1.1.0
type RegistryConfig struct { BaseURL string Username string Password string Namespace string BranchDelimiter string }
RegistryConfig is the registry service configuration
type RegistryService ¶ added in v1.1.0
type RegistryService struct {
// contains filtered or unexported fields
}
RegistryService is an implementation of the docker Service interface It fetches docker images
func (*RegistryService) FullName ¶ added in v1.1.0
func (s *RegistryService) FullName(repo, branch, tag string) (string, error)
FullName implements the Service interface
func (*RegistryService) GetRepository ¶ added in v1.1.0
func (s *RegistryService) GetRepository(repo string, branches []string) ([]*Image, error)
GetRepository implements the Service interface