Documentation ¶
Index ¶
Constants ¶
View Source
const APIVersionV1 = "v1"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ChartRepository ¶
type ChartRepository struct { Config *Entry ChartPaths []string Client getter.Getter IndexFile *IndexFile CachePath string }
func NewChartRepository ¶
func NewChartRepository(cfg *Entry, getters getter.Providers) (*ChartRepository, error)
func (*ChartRepository) DownloadIndexFile ¶
func (r *ChartRepository) DownloadIndexFile() (string, error)
type ChartVersion ¶
type ChartVersion struct { *chart.Metadata URLs []string `json:"urls"` Created time.Time `json:"created,omitempty"` Removed bool `json:"removed,omitempty"` Digest string `json:"digest,omitempty"` ChecksumDeprecated string `json:"checksum,omitempty"` EngineDeprecated string `json:"engine,omitempty"` TillerVersionDeprecated string `json:"tillerVersion,omitempty"` URLDeprecated string `json:"url,omitempty"` }
type ChartVersions ¶
type ChartVersions []*ChartVersion
func (ChartVersions) Len ¶
func (c ChartVersions) Len() int
func (ChartVersions) Less ¶
func (c ChartVersions) Less(a, b int) bool
func (ChartVersions) Swap ¶
func (c ChartVersions) Swap(i, j int)
type Entry ¶
type Entry struct { Name string `json:"name"` URL string `json:"url"` Username string `json:"username"` Password string `json:"password"` CertFile string `json:"certFile"` KeyFile string `json:"keyFile"` CAFile string `json:"caFile"` InsecureSkipTLSverify bool `json:"insecure_skip_tls_verify"` PassCredentialsAll bool `json:"pass_credentials_all"` }
Entry represents a collection of parameters for chart repository
type File ¶
type File struct { APIVersion string `json:"apiVersion"` Generated time.Time `json:"generated"` Repositories []*Entry `json:"repositories"` }
File represents the repositories.yaml file
func NewFile ¶
func NewFile() *File
NewFile generates an empty repositories file.
Generated and APIVersion are automatically set.
type IndexFile ¶
type IndexFile struct { ServerInfo map[string]interface{} `json:"serverInfo,omitempty"` APIVersion string `json:"apiVersion"` Generated time.Time `json:"generated"` Entries map[string]ChartVersions `json:"entries"` PublicKeys []string `json:"publicKeys,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
func LoadIndexFile ¶
func NewIndexFile ¶
func NewIndexFile() *IndexFile
func (IndexFile) SortEntries ¶
func (i IndexFile) SortEntries()
Click to show internal directories.
Click to hide internal directories.