package registry
import "github.com/dotcloud/docker/registry"
Index ¶
- Variables
- type ImgData
- type Registry
- func NewRegistry(root string) *Registry
- func (r *Registry) GetAuthConfig() *auth.AuthConfig
- func (r *Registry) GetRemoteHistory(imgId, registry string, token []string) ([]string, error)
- func (r *Registry) GetRemoteImageJson(imgId, registry string, token []string) ([]byte, error)
- func (r *Registry) GetRemoteImageLayer(imgId, registry string, token []string) (io.ReadCloser, int, error)
- func (r *Registry) GetRemoteTags(registries []string, repository string, token []string) (map[string]string, error)
- func (r *Registry) GetRepositoryData(remote string) (*RepositoryData, error)
- func (r *Registry) LookupRemoteImage(imgId, registry string, authConfig *auth.AuthConfig) bool
- func (r *Registry) PushImageJsonIndex(remote string, imgList []*ImgData, validate bool) (*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) ResetClient(authConfig *auth.AuthConfig)
- func (r *Registry) SearchRepositories(term string) (*SearchResults, error)
- type RepositoryData
- type SearchResults
Variables ¶
Types ¶
type ImgData ¶
type ImgData struct { Id string `json:"id"` Checksum string `json:"checksum,omitempty"` Tag string `json:",omitempty"` }
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) GetAuthConfig ¶
func (r *Registry) GetAuthConfig() *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 ¶
Retrieve an image from the Registry. Returns the Image object as well as the layer as an Archive (io.Reader)
func (*Registry) GetRemoteImageLayer ¶
func (r *Registry) GetRemoteImageLayer(imgId, registry string, token []string) (io.ReadCloser, int, error)
func (*Registry) GetRemoteTags ¶
func (r *Registry) GetRemoteTags(registries []string, repository string, token []string) (map[string]string, error)
func (*Registry) GetRepositoryData ¶
func (r *Registry) GetRepositoryData(remote string) (*RepositoryData, error)
func (*Registry) LookupRemoteImage ¶
func (r *Registry) LookupRemoteImage(imgId, registry string, authConfig *auth.AuthConfig) bool
Check if an image exists in the Registry
func (*Registry) PushImageJsonIndex ¶
func (r *Registry) PushImageJsonIndex(remote string, imgList []*ImgData, validate bool) (*RepositoryData, error)
func (*Registry) PushImageJsonRegistry ¶
func (r *Registry) PushImageJsonRegistry(imgData *ImgData, jsonRaw []byte, registry string, token []string) error
Push a local image to the registry
func (*Registry) PushImageLayerRegistry ¶
func (r *Registry) PushImageLayerRegistry(imgId string, layer io.Reader, registry string, token []string) error
func (*Registry) PushRegistryTag ¶
push a tag on the registry. Remote has the format '<user>/<repo>
func (*Registry) ResetClient ¶
func (r *Registry) ResetClient(authConfig *auth.AuthConfig)
func (*Registry) SearchRepositories ¶
func (r *Registry) SearchRepositories(term string) (*SearchResults, error)
type RepositoryData ¶
type SearchResults ¶
type SearchResults struct { Query string `json:"query"` NumResults int `json:"num_results"` Results []map[string]string `json:"results"` }
Source Files ¶
- Version
- v0.3.3
- Published
- May 23, 2013
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 13 minutes ago –
Tools for package owners.