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 InitRegistry ¶
func InitRegistry(c *RegistryConfig) error
InitRegistry initializes the docker registry service
Types ¶
type ECRConfig ¶
type ECRConfig struct { Region string AccessKeyID string SecretAccessKey string Namespace string BranchDelimiter string RegistryID *string }
ECRConfig is the ECR service configuration
type ECRService ¶
type ECRService struct {
// contains filtered or unexported fields
}
ECRService is an implementation of the docker Service interface It fetches docker images
func (*ECRService) FullName ¶
func (s *ECRService) FullName(repo, branch, tag string) (string, error)
FullName implements the Service interface
func (*ECRService) GetRepository ¶
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 ¶
type RegistryConfig struct { BaseURL string Username string Password string Namespace string BranchDelimiter string }
RegistryConfig is the registry service configuration
type RegistryService ¶
type RegistryService struct {
// contains filtered or unexported fields
}
RegistryService is an implementation of the docker Service interface It fetches docker images
func (*RegistryService) FullName ¶
func (s *RegistryService) FullName(repo, branch, tag string) (string, error)
FullName implements the Service interface
func (*RegistryService) GetRepository ¶
func (s *RegistryService) GetRepository(repo string, branches []string) ([]*Image, error)
GetRepository implements the Service interface
Click to show internal directories.
Click to hide internal directories.