Documentation ¶
Index ¶
- Variables
- func ResolveRepositoryName(reposName string) (string, string, error)
- type ImgData
- type Registry
- func (r *Registry) GetAuthConfig(withPasswd bool) *auth.AuthConfig
- func (r *Registry) GetRemoteHistory(imgID, registry string, token []string) ([]string, error)
- func (r *Registry) GetRemoteImageJSON(imgID, registry string, token []string) ([]byte, int, error)
- func (r *Registry) GetRemoteImageLayer(imgID, registry string, token []string) (io.ReadCloser, error)
- func (r *Registry) GetRemoteTags(registries []string, repository string, token []string) (map[string]string, error)
- func (r *Registry) GetRepositoryData(indexEp, remote string) (*RepositoryData, error)
- func (r *Registry) LookupRemoteImage(imgID, registry string, token []string) bool
- func (r *Registry) PushImageJSONIndex(indexEp, remote string, imgList []*ImgData, validate bool, regs []string) (*RepositoryData, error)
- func (r *Registry) PushImageJSONRegistry(imgData *ImgData, jsonRaw []byte, registry string, token []string) error
- func (r *Registry) PushImageLayerRegistry(imgID string, layer io.Reader, registry string, token []string) error
- func (r *Registry) PushRegistryTag(remote, revision, tag, registry string, token []string) error
- func (r *Registry) SearchRepositories(term string) (*SearchResults, error)
- type RepositoryData
- type SearchResults
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("Image already exists")
View Source
var ErrInvalidRepositoryName = errors.New("Invalid repository name (ex: \"registry.domain.tld/myrepos\")")
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(root string, authConfig *auth.AuthConfig, baseVersions ...VersionInfo) (r *Registry, err error)
func (*Registry) GetAuthConfig ¶
func (r *Registry) GetAuthConfig(withPasswd bool) *auth.AuthConfig
func (*Registry) GetRemoteHistory ¶
Retrieve the history of a given image from the Registry. Return a list of the parent's json (requested image included)
func (*Registry) GetRemoteImageJSON ¶ added in v0.4.1
Retrieve an image from the Registry.
func (*Registry) GetRemoteImageLayer ¶
func (*Registry) GetRemoteTags ¶
func (*Registry) GetRepositoryData ¶
func (r *Registry) GetRepositoryData(indexEp, remote string) (*RepositoryData, error)
func (*Registry) LookupRemoteImage ¶
Check if an image exists in the Registry
func (*Registry) PushImageJSONIndex ¶ added in v0.4.1
func (*Registry) PushImageJSONRegistry ¶ added in v0.4.1
func (r *Registry) PushImageJSONRegistry(imgData *ImgData, jsonRaw []byte, registry string, token []string) error
Push a local image to the registry
func (*Registry) PushImageLayerRegistry ¶
func (*Registry) PushRegistryTag ¶
push a tag on the registry. Remote has the format '<user>/<repo>
func (*Registry) SearchRepositories ¶
func (r *Registry) SearchRepositories(term string) (*SearchResults, error)
type RepositoryData ¶
type SearchResults ¶
type VersionInfo ¶ added in v0.5.1
VersionInfo is used to model entities which has a version. It is basically a tupple with name and version.
Click to show internal directories.
Click to hide internal directories.