Documentation ¶
Index ¶
Constants ¶
View Source
const (
GoogleContainerRegistry = "gcr"
)
Variables ¶
View Source
var ( RegistryMapper = map[string]registryGen{ GoogleContainerRegistry: NewGCR, } TokenSourceMapper = map[string]oauthTokenSource{ GoogleContainerRegistry: gcrOauthSource, } SupportedContainerRegistryList = []string{ GoogleContainerRegistry, } )
Functions ¶
func GetImageRegistryTypeByHostname ¶ added in v0.3.0
Types ¶
type ErrorField ¶
type ErrorsField ¶
type ErrorsField struct {
Errors []ErrorField `json:"errors"`
}
type GCR ¶
type GCR struct {
// contains filtered or unexported fields
}
func (GCR) Catalog ¶
func (g GCR) Catalog() ([]Repository, error)
Catalog list of repositorry, recursively follow child attribute instead using image registry API spec so we can only use less permission in service account
func (GCR) Delete ¶
func (g GCR) Delete(repository Repository) (err error)
type GCRTagsResponse ¶
type ImageRegistry ¶
type ImageRegistry interface { Catalog() ([]Repository, error) Delete(repo Repository) error }
func NewGCR ¶
func NewGCR(host string, hc http.IHttpClient) (ImageRegistry, error)
type Repository ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_registry is a generated GoMock package.
|
Package mock_registry is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.