Versions in this module Expand all Collapse all v0 v0.7.0 Nov 25, 2015 Changes in this version + const APIVersion1 + const APIVersion2 + const APIVersionUnknown + const CertsDir + const DefaultNamespace + const DefaultRegistryVersionHeader + const DefaultV1Registry + const DefaultV2Registry + const IndexName + const IndexServer + const NotaryServer + var ErrAlreadyExists = errors.New("Image already exists") + var ErrInvalidRepositoryName = errors.New("Invalid repository name (ex: \"registry.domain.tld/myrepos\")") + var ErrRepoNotFound = errors.New("Repository not found") + var V2Only = false + func AuthTransport(base http.RoundTripper, authConfig *cliconfig.AuthConfig, ...) http.RoundTripper + func ContinueOnError(err error) bool + func DockerHeaders(metaHeaders http.Header) []transport.RequestModifier + func HTTPClient(transport http.RoundTripper) *http.Client + func Login(authConfig *cliconfig.AuthConfig, registryEndpoint *Endpoint) (string, error) + func NewTransport(tlsConfig *tls.Config) *http.Transport + func NormalizeLocalName(name string) string + func ReadCertsDirectory(tlsConfig *tls.Config, directory string) error + func ResolveAuthConfig(config *cliconfig.ConfigFile, index *IndexInfo) cliconfig.AuthConfig + func ValidateIndexName(val string) (string, error) + func ValidateMirror(val string) (string, error) + func ValidateRepositoryName(reposName string) error + type APIEndpoint struct + Mirror bool + Official bool + TLSConfig *tls.Config + TrimHostname bool + URL string + Version APIVersion + VersionHeader string + Versions []auth.APIVersion + func (e APIEndpoint) ToV1Endpoint(metaHeaders http.Header) (*Endpoint, error) + type APIVersion int + func (av APIVersion) String() string + type AuthorizationChallenge struct + Parameters map[string]string + Scheme string + type Endpoint struct + AuthChallenges []*AuthorizationChallenge + IsSecure bool + URL *url.URL + URLBuilder *v2.URLBuilder + Version APIVersion + func NewEndpoint(index *IndexInfo, metaHeaders http.Header, v APIVersion) (*Endpoint, error) + func (e *Endpoint) Path(path string) string + func (e *Endpoint) Ping() (PingResult, error) + func (e *Endpoint) String() string + func (e *Endpoint) VersionString(version APIVersion) string + type ErrNoSupport struct + Err error + func (e ErrNoSupport) Error() string + type ImgData struct + Checksum string + ChecksumPayload string + ID string + Tag string + type IndexInfo struct + Mirrors []string + Name string + Official bool + Secure bool + func (index *IndexInfo) GetAuthConfigKey() string + type Options struct + InsecureRegistries opts.ListOpts + Mirrors opts.ListOpts + func (options *Options) InstallFlags(cmd *flag.FlagSet, usageFn func(string) string) + type PingResult struct + Standalone bool + Version string + type Reference interface + HasDigest func() bool + ImageName func(string) string + String func() string + func DigestReference(dgst digest.Digest) Reference + func ParseReference(ref string) Reference + type RepositoryData struct + Endpoints []string + ImgList map[string]*ImgData + Tokens []string + type RepositoryInfo struct + CanonicalName string + Index *IndexInfo + LocalName string + Official bool + RemoteName string + func ParseRepositoryInfo(reposName string) (*RepositoryInfo, error) + func (repoInfo *RepositoryInfo) GetSearchTerm() string + type SearchResult struct + Description string + IsAutomated bool + IsOfficial bool + IsTrusted bool + Name string + StarCount int + type SearchResults struct + NumResults int + Query string + Results []SearchResult + type Service struct + Config *ServiceConfig + func NewService(options *Options) *Service + func (s *Service) Auth(authConfig *cliconfig.AuthConfig) (string, error) + func (s *Service) LookupPullEndpoints(repoName string) (endpoints []APIEndpoint, err error) + func (s *Service) LookupPushEndpoints(repoName string) (endpoints []APIEndpoint, err error) + func (s *Service) ResolveIndex(name string) (*IndexInfo, error) + func (s *Service) ResolveRepository(name string) (*RepositoryInfo, error) + func (s *Service) Search(term string, authConfig *cliconfig.AuthConfig, headers map[string][]string) (*SearchResults, error) + func (s *Service) TLSConfig(hostname string) (*tls.Config, error) + type ServiceConfig struct + IndexConfigs map[string]*IndexInfo + InsecureRegistryCIDRs []*netIPNet + Mirrors []string + func NewServiceConfig(options *Options) *ServiceConfig + func (config *ServiceConfig) NewIndexInfo(indexName string) (*IndexInfo, error) + func (config *ServiceConfig) NewRepositoryInfo(reposName string) (*RepositoryInfo, error) + type Session struct + func NewSession(client *http.Client, authConfig *cliconfig.AuthConfig, endpoint *Endpoint) (r *Session, err error) + func (r *Session) GetAuthConfig(withPasswd bool) *cliconfig.AuthConfig + func (r *Session) GetRemoteHistory(imgID, registry string) ([]string, error) + func (r *Session) GetRemoteImageJSON(imgID, registry string) ([]byte, int, error) + func (r *Session) GetRemoteImageLayer(imgID, registry string, imgSize int64) (io.ReadCloser, error) + func (r *Session) GetRemoteTag(registries []string, repository string, askedTag string) (string, error) + func (r *Session) GetRemoteTags(registries []string, repository string) (map[string]string, error) + func (r *Session) GetRepositoryData(remote string) (*RepositoryData, error) + func (r *Session) ID() string + func (r *Session) LookupRemoteImage(imgID, registry string) error + func (r *Session) PushImageChecksumRegistry(imgData *ImgData, registry string) error + func (r *Session) PushImageJSONIndex(remote string, imgList []*ImgData, validate bool, regs []string) (*RepositoryData, error) + func (r *Session) PushImageJSONRegistry(imgData *ImgData, jsonRaw []byte, registry string) error + func (r *Session) PushImageLayerRegistry(imgID string, layer io.Reader, registry string, jsonRaw []byte) (checksum string, checksumPayload string, err error) + func (r *Session) PushRegistryTag(remote, revision, tag, registry string) error + func (r *Session) SearchRepositories(term string) (*SearchResults, error)