Documentation ¶
Index ¶
- func GetECRRegistryURL(awsIntRepo repository.AWSIntegrationRepository, projectID, awsIntID uint) (string, error)
- type Registry
- func (r *Registry) CreateRepository(repo repository.Repository, name string) error
- func (r *Registry) GetDockerConfigJSON(repo repository.Repository, doAuth *oauth2.Config) ([]byte, error)
- func (r *Registry) GetGCRToken(repo repository.Repository) (*ints.TokenCache, error)
- func (r *Registry) ListImages(repoName string, repo repository.Repository, doAuth *oauth2.Config) ([]*ptypes.Image, error)
- func (r *Registry) ListRepositories(repo repository.Repository, doAuth *oauth2.Config) ([]*ptypes.RegistryRepository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetECRRegistryURL ¶ added in v0.10.0
func GetECRRegistryURL(awsIntRepo repository.AWSIntegrationRepository, projectID, awsIntID uint) (string, error)
Types ¶
type Registry ¶
Registry wraps the gorm Registry model
func (*Registry) CreateRepository ¶
func (r *Registry) CreateRepository( repo repository.Repository, name string, ) error
CreateRepository creates a repository for a registry, if needed (currently only required for ECR)
func (*Registry) GetDockerConfigJSON ¶
func (r *Registry) GetDockerConfigJSON( repo repository.Repository, doAuth *oauth2.Config, ) ([]byte, error)
GetDockerConfigJSON returns a dockerconfigjson file contents with "auths" populated.
func (*Registry) GetGCRToken ¶
func (r *Registry) GetGCRToken(repo repository.Repository) (*ints.TokenCache, error)
func (*Registry) ListImages ¶
func (r *Registry) ListImages( repoName string, repo repository.Repository, doAuth *oauth2.Config, ) ([]*ptypes.Image, error)
ListImages lists the images for an image repository
func (*Registry) ListRepositories ¶
func (r *Registry) ListRepositories( repo repository.Repository, doAuth *oauth2.Config, ) ([]*ptypes.RegistryRepository, error)
ListRepositories lists the repositories for a registry
Click to show internal directories.
Click to hide internal directories.