Versions in this module Expand all Collapse all v1 v1.2.1 Mar 8, 2016 Changes in this version + var ChartFormatMatcher = regexp.MustCompile("(.*)-(.*).tgz") + var GCSRegistryMatcher = regexp.MustCompile("gs://(.*)/(.*)") + var PackageRegistryMatcher = regexp.MustCompile("github.com/(.*)/(.*)/(.*)") + var TemplateRegistryMatcher = regexp.MustCompile("github.com/(.*)/(.*)/(.*)/(.*):(.*)") + var URLFormatMatcher = regexp.MustCompile("gs://(.*)") + func IsGCSShortType(t string) bool + func IsGithubShortPackageType(t string) bool + func IsGithubShortType(t string) bool + func NewFilebasedCredentialProvider(filename string) (common.CredentialProvider, error) + func NewInmemCredentialProvider() common.CredentialProvider + func NewInmemRegistryService() common.RegistryService + func NewSecretsCredentialProvider() common.CredentialProvider + func ParseRegistryFormat(rf common.RegistryFormat) map[common.RegistryFormat]bool + type DownloadResponse struct + Body string + Code int + Err error + type FilebasedCredentialProvider struct + func (fcp *FilebasedCredentialProvider) GetCredential(name string) (*common.RegistryCredential, error) + func (fcp *FilebasedCredentialProvider) SetCredential(name string, credential *common.RegistryCredential) error + type GCSRegistry struct + func NewGCSRegistry(name, shortURL string, httpClient *http.Client, gcsService *storage.Service) (*GCSRegistry, error) + func (g GCSRegistry) Do(req *http.Request) (resp *http.Response, err error) + func (g GCSRegistry) GetBucket() string + func (g GCSRegistry) GetDownloadURLs(t Type) ([]*url.URL, error) + func (g GCSRegistry) GetRegistryFormat() common.RegistryFormat + func (g GCSRegistry) GetRegistryName() string + func (g GCSRegistry) GetRegistryShortURL() string + func (g GCSRegistry) GetRegistryType() common.RegistryType + func (g GCSRegistry) ListTypes(regex *regexp.Regexp) ([]Type, error) + type GCSRegistryProvider interface + GetGCSRegistry func(cr common.Registry) (ObjectStorageRegistry, error) + func NewGCSRegistryProvider(cp common.CredentialProvider) GCSRegistryProvider + func NewTestGCSRegistryProvider(shortURL string, responses map[Type]TestURLAndError) GCSRegistryProvider + type GithubPackageRegistry struct + func NewGithubPackageRegistry(name, shortURL string, service GithubRepositoryService, ...) (*GithubPackageRegistry, error) + func (g GithubPackageRegistry) Do(req *http.Request) (resp *http.Response, err error) + func (g GithubPackageRegistry) GetDownloadURLs(t Type) ([]*url.URL, error) + func (g GithubPackageRegistry) GetRegistryFormat() common.RegistryFormat + func (g GithubPackageRegistry) GetRegistryName() string + func (g GithubPackageRegistry) GetRegistryOwner() string + func (g GithubPackageRegistry) GetRegistryPath() string + func (g GithubPackageRegistry) GetRegistryRepository() string + func (g GithubPackageRegistry) GetRegistryShortURL() string + func (g GithubPackageRegistry) GetRegistryType() common.RegistryType + func (g GithubPackageRegistry) ListTypes(regex *regexp.Regexp) ([]Type, error) + func (g GithubPackageRegistry) MakeRepositoryPath(t Type) (string, error) + type GithubRegistry interface + GetRegistryOwner func() string + GetRegistryPath func() string + GetRegistryRepository func() string + type GithubRegistryProvider interface + GetGithubRegistry func(cr common.Registry) (GithubRegistry, error) + func NewGithubRegistryProvider(cp common.CredentialProvider) GithubRegistryProvider + func NewTestGithubRegistryProvider(shortURL string, responses map[Type]TestURLAndError) GithubRegistryProvider + func NewTestGithubRegistryProviderWithDownloads(shortURL string, responses map[Type]TestURLAndError, ...) GithubRegistryProvider + type GithubRepositoryService interface + GetContents func(owner, repo, path string, opt *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, ...) + type GithubTemplateRegistry struct + func NewGithubTemplateRegistry(name, shortURL string, service GithubRepositoryService, ...) (*GithubTemplateRegistry, error) + func (g GithubTemplateRegistry) Do(req *http.Request) (resp *http.Response, err error) + func (g GithubTemplateRegistry) GetDownloadURLs(t Type) ([]*url.URL, error) + func (g GithubTemplateRegistry) GetRegistryFormat() common.RegistryFormat + func (g GithubTemplateRegistry) GetRegistryName() string + func (g GithubTemplateRegistry) GetRegistryOwner() string + func (g GithubTemplateRegistry) GetRegistryPath() string + func (g GithubTemplateRegistry) GetRegistryRepository() string + func (g GithubTemplateRegistry) GetRegistryShortURL() string + func (g GithubTemplateRegistry) GetRegistryType() common.RegistryType + func (g GithubTemplateRegistry) ListTypes(regex *regexp.Regexp) ([]Type, error) + func (g GithubTemplateRegistry) MakeRepositoryPath(t Type) (string, error) + type InmemCredentialProvider struct + func (fcp *InmemCredentialProvider) GetCredential(name string) (*common.RegistryCredential, error) + func (fcp *InmemCredentialProvider) SetCredential(name string, credential *common.RegistryCredential) error + type NamedRegistryCredential struct + Name string + type ObjectStorageRegistry interface + GetBucket func() string + type Registry interface + GetDownloadURLs func(t Type) ([]*url.URL, error) + GetRegistryFormat func() common.RegistryFormat + GetRegistryName func() string + GetRegistryShortURL func() string + GetRegistryType func() common.RegistryType + ListTypes func(regex *regexp.Regexp) ([]Type, error) + func GetDownloadURLs(rp RegistryProvider, t string) ([]string, Registry, error) + func ShortTypeToDownloadURLs(rp RegistryProvider, t string) ([]string, Registry, error) + func ShortTypeToGCSDownloadUrls(rp RegistryProvider, t string) ([]string, Registry, error) + func ShortTypeToPackageDownloadURLs(rp RegistryProvider, t string) ([]string, Registry, error) + type RegistryProvider interface + GetRegistryByName func(registryName string) (Registry, error) + GetRegistryByShortURL func(URL string) (Registry, error) + func NewDefaultRegistryProvider(cp common.CredentialProvider, rs common.RegistryService) RegistryProvider + func NewRegistryProvider(rs common.RegistryService, grp GithubRegistryProvider, ...) RegistryProvider + type SecretsCredentialProvider struct + func (scp *SecretsCredentialProvider) GetCredential(name string) (*common.RegistryCredential, error) + func (scp *SecretsCredentialProvider) SetCredential(name string, credential *common.RegistryCredential) error + type SemVer struct + Major uint + Minor uint + Patch uint + func ParseSemVer(version string) (SemVer, error) + func (s SemVer) IsZero() bool + func (s SemVer) String() string + type TestURLAndError struct + Err error + URL string + type Type struct + Collection string + Name string + Version SemVer + func NewType(collection, name, version string) (Type, error) + func NewTypeOrDie(collection, name, version string) Type + func ParseType(ts string) (Type, error) + func (t *Type) SetVersion(version string) error + func (t Type) GetVersion() string + func (t Type) String() string