Documentation ¶
Index ¶
- type API
- func (api *API) CollectPushTags(cn *collection.Collection, push PushConfig) (*collection.Collection, error)
- func (api *API) CollectTags(refs []string) (*collection.Collection, error)
- func (api *API) PullTags(cn *collection.Collection) error
- func (api *API) PushTags(cn *collection.Collection, push PushConfig) error
- type Config
- type PushConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API represents application API instance
func (*API) CollectPushTags ¶
func (api *API) CollectPushTags(cn *collection.Collection, push PushConfig) (*collection.Collection, error)
CollectPushTags blends passed collection with information fetched from local "push" registry, makes required comparisons between them and spits organized info back as collection.Collection
func (*API) CollectTags ¶
func (api *API) CollectTags(refs []string) (*collection.Collection, error)
CollectTags collects information on tags present in remote registry and local Docker daemon, makes required comparisons between them and spits organized info back as collection.Collection
func (*API) PullTags ¶
func (api *API) PullTags(cn *collection.Collection) error
PullTags compares images from remote registry and Docker daemon and pulls images that match tag spec passed and are not present in Docker daemon.
func (*API) PushTags ¶
func (api *API) PushTags(cn *collection.Collection, push PushConfig) error
PushTags compares images from remote and "push" (usually local) registries, pulls images that are present in remote registry, but are not in "push" one and then [re-]pushes them to the "push" registry.
type Config ¶
type Config struct { DockerJSONConfigFile string ConcurrentRequests int TraceRequests bool RetryRequests int RetryDelay time.Duration InsecureRegistryEx string VerboseLogging bool }
Config holds API instance configuration
type PushConfig ¶
PushConfig holds push-specific configuration