cache

package
v0.0.0-...-aa03a8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2016 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 3 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cache is the global cache in system.
	Cache cache.Cache
)

Functions

func GetRepoFromCache

func GetRepoFromCache() ([]string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL