Documentation ¶
Index ¶
- Variables
- func CleanRootCache(path string) error
- func InitRootCache(cacheMode bool, path string) error
- type Archive
- type GithubRepository
- func (r GithubRepository) CacheKey() string
- func (r GithubRepository) GetHTTPSURL() string
- func (r GithubRepository) GetOptions() options.UpstreamOptions
- func (r GithubRepository) GetSSHURL() string
- func (r GithubRepository) IsCacheable() bool
- func (r GithubRepository) IsWithinPackage() bool
- func (r GithubRepository) Pull(rootFs, fs billy.Filesystem, path string) error
- func (r GithubRepository) String() string
- type Puller
- type Registry
Constants ¶
This section is empty.
Variables ¶
var RootCache cacher = &noopCache{}
Functions ¶
func CleanRootCache ¶ added in v0.3.0
CleanRootCache removes any existing entries in the cache
func InitRootCache ¶ added in v0.3.0
InitRootCache initializes a cache at the repository's root to be used, if it does not currently exist
Types ¶
type Archive ¶
type Archive struct { // URL represents a download link for an archive URL string `yaml:"url"` // Subdirectory represents a specific directory within the upstream pointed to by the URL to treat as the root Subdirectory *string `yaml:"subdirectory"` }
Archive represents a URL pointing to a .tgz file
func (Archive) GetOptions ¶
func (u Archive) GetOptions() options.UpstreamOptions
GetOptions returns the path used to construct this upstream
func (Archive) IsWithinPackage ¶
IsWithinPackage returns whether this upstream already exists within the package
type GithubRepository ¶
type GithubRepository struct { // Subdirectory represents a specific directory within the upstream pointed to by the URL to treat as the root Subdirectory *string `yaml:"subdirectory"` // Commit represents a specific commit hash to treat as the head Commit *string `yaml:"commit"` // contains filtered or unexported fields }
GithubRepository represents a repository hosted on Github
func GetGithubRepository ¶
func GetGithubRepository(upstreamOptions options.UpstreamOptions, branch *string) (GithubRepository, error)
GetGithubRepository gets a GitHub repository from options
func (GithubRepository) CacheKey ¶ added in v0.3.0
func (r GithubRepository) CacheKey() string
func (GithubRepository) GetHTTPSURL ¶
func (r GithubRepository) GetHTTPSURL() string
GetHTTPSURL returns the HTTPS URL of the repository
func (GithubRepository) GetOptions ¶
func (r GithubRepository) GetOptions() options.UpstreamOptions
GetOptions returns the path used to construct this upstream
func (GithubRepository) GetSSHURL ¶
func (r GithubRepository) GetSSHURL() string
GetSSHURL returns the SSH URL of the repository
func (GithubRepository) IsCacheable ¶ added in v0.3.0
func (r GithubRepository) IsCacheable() bool
func (GithubRepository) IsWithinPackage ¶
func (r GithubRepository) IsWithinPackage() bool
IsWithinPackage returns whether this upstream already exists within the package
func (GithubRepository) Pull ¶
func (r GithubRepository) Pull(rootFs, fs billy.Filesystem, path string) error
Pull grabs the repository
func (GithubRepository) String ¶
func (r GithubRepository) String() string
type Puller ¶
type Puller interface { // Pull grabs the Helm chart and places it on a path in the filesystem Pull(rootFs, fs billy.Filesystem, path string) error // GetOptions returns the options used to construct this Upstream GetOptions() options.UpstreamOptions // IsWithinPackage returns whether this upstream already exists within the package IsWithinPackage() bool }
Puller represents an interface that is able to pull a directory from a remote source
type Registry ¶ added in v0.5.3
type Registry struct { // URL represents the link to the chart registry including the chart version URL string `yaml:"url"` }
func (Registry) GetOptions ¶ added in v0.5.3
func (r Registry) GetOptions() options.UpstreamOptions