Versions in this module Expand all Collapse all v0 v0.11.0 Aug 22, 2014 v0.10.0 Jul 24, 2014 Changes in this version + const CONFIGFILE + const INDEXSERVER + var ErrAlreadyExists = errors.New("Image already exists") + var ErrConfigFileMissing = errors.New("The Auth config file is missing") + var ErrInvalidRepositoryName = errors.New("Invalid repository name (ex: \"registry.domain.tld/myrepos\")") + func AddRequiredHeadersToRedirectedRequests(req *http.Request, via []*http.Request) error + func ExpandAndVerifyRegistryUrl(hostname string) (string, error) + func HTTPRequestFactory(metaHeaders map[string][]string) *utils.HTTPRequestFactory + func IndexServerAddress() string + func Login(authConfig *AuthConfig, factory *utils.HTTPRequestFactory) (string, error) + func ResolveRepositoryName(reposName string) (string, string, error) + func SaveConfig(configFile *ConfigFile) error + type AuthConfig struct + Auth string + Email string + Password string + ServerAddress string + Username string + type ConfigFile struct + Configs map[string]AuthConfig + func LoadConfig(rootPath string) (*ConfigFile, error) + func (config *ConfigFile) ResolveAuthConfig(hostname string) AuthConfig + type ImgData struct + Checksum string + ChecksumPayload string + ID string + Tag string + type Registry struct + func NewRegistry(authConfig *AuthConfig, factory *utils.HTTPRequestFactory, ...) (r *Registry, err error) + func (r *Registry) GetAuthConfig(withPasswd bool) *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, imgSize int64) (io.ReadCloser, 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, token []string) bool + func (r *Registry) PushImageChecksumRegistry(imgData *ImgData, registry string, token []string) error + func (r *Registry) PushImageJSONIndex(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, jsonRaw []byte) (checksum string, checksumPayload string, err error) + func (r *Registry) PushRegistryTag(remote, revision, tag, registry string, token []string) error + func (r *Registry) SearchRepositories(term string) (*SearchResults, error) + type RegistryInfo struct + Standalone bool + Version string + type RepositoryData struct + Endpoints []string + ImgList map[string]*ImgData + Tokens []string + type SearchResult struct + Description string + IsOfficial bool + IsTrusted bool + Name string + StarCount int + type SearchResults struct + NumResults int + Query string + Results []SearchResult