Documentation ¶
Index ¶
- type Config
- type Manifests
- type Registry
- func (reg *Registry) GetToken() error
- func (reg *Registry) RepoGetConfig(tempDir, reposName string, manifest *Manifests) (string, error)
- func (reg *Registry) RepoGetLayers(tempDir, reposName string, manifest *Manifests) ([]string, error)
- func (reg *Registry) ReposManifests(reposName, repoTag string) (*Manifests, error)
- func (reg *Registry) ReposTags(reposName string) (*Tags, error)
- func (reg *Registry) TokenExpired() bool
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoint string RegistryDomain string Proxy string Insecure bool Username string Password string RepoName string }
Config registry config struct
type Manifests ¶
type Manifests struct { Config manifestConfig `json:"config,omitempty"` Layers []manifestLayer `json:"layers,omitempty"` MediaType string `json:"mediaType,omitempty"` SchemaVersion int `json:"schemaVersion,omitempty"` }
Manifests is the image manifest struct
type Registry ¶
type Registry struct { URL *url.URL Host string RegistryHost string Auth auth Config Config // contains filtered or unexported fields }
Registry registry object
func (*Registry) RepoGetConfig ¶
RepoGetConfig gets docker image config JSON
func (*Registry) RepoGetLayers ¶
func (reg *Registry) RepoGetLayers(tempDir, reposName string, manifest *Manifests) ([]string, error)
RepoGetLayers gets docker image layer tarballs
func (*Registry) ReposManifests ¶
ReposManifests gets docker image manifest for name:tag
func (*Registry) TokenExpired ¶
TokenExpired returns wheither or not an auth token has expired
Click to show internal directories.
Click to hide internal directories.