Documentation
¶
Index ¶
- Variables
- func GetRepoFromCache() ([]string, error)
- func NewRegistryClient(endpoint string, insecure bool, username, scopeType, scopeName string, ...) (*registry.Registry, error)
- func NewRepositoryClient(endpoint string, insecure bool, ...) (*registry.Repository, error)
- func RefreshCatalogCache() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Cache is the global cache in system. Cache cache.Cache )
Functions ¶
func GetRepoFromCache ¶
GetRepoFromCache get repository list from cache, it refreshes the cache if it's empty.
func NewRegistryClient ¶
func NewRegistryClient(endpoint string, insecure bool, username, scopeType, scopeName string, scopeActions ...string) (*registry.Registry, error)
NewRegistryClient ...
func NewRepositoryClient ¶
func NewRepositoryClient(endpoint string, insecure bool, username, repository, scopeType, scopeName string, scopeActions ...string) (*registry.Repository, error)
NewRepositoryClient ...
func RefreshCatalogCache ¶
func RefreshCatalogCache() error
RefreshCatalogCache calls registry's API to get repository list and write it to cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.