Documentation ¶
Index ¶
- type Repo
- func (r *Repo) Fetch(name string, version string) (string, error)
- func (r *Repo) GetChartDetails(name string, version string) (*types.ChartDetails, error)
- func (r *Repo) GetUploadURL() string
- func (r *Repo) Has(name string, version string) (bool, error)
- func (r *Repo) List() ([]string, error)
- func (r *Repo) ListChartVersions(name string) ([]string, error)
- func (r *Repo) Reload() error
- func (r *Repo) Upload(file string, _ *chart.Metadata) error
- type RepoTester
- func (rt *RepoTester) GetChart(w http.ResponseWriter, r *http.Request, chart string)
- func (rt *RepoTester) GetChartPackage(w http.ResponseWriter, r *http.Request, chartPackageName string)
- func (rt *RepoTester) GetIndex(w http.ResponseWriter, r *http.Request, emptyIndex bool, indexFile string)
- func (rt *RepoTester) GetURL() string
- func (rt *RepoTester) PostChart(w http.ResponseWriter, r *http.Request)
- func (rt *RepoTester) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo allows to operate a chart repository.
func (*Repo) GetChartDetails ¶
GetChartDetails returns the details of a chart
func (*Repo) GetUploadURL ¶
GetUploadURL returns the URL to upload a chart
func (*Repo) ListChartVersions ¶
ListChartVersions lists all versions of a chart
type RepoTester ¶
type RepoTester struct {
// contains filtered or unexported fields
}
RepoTester allows to unit test each repo implementation
func NewTester ¶
NewTester creates fake HTTP server to handle requests and return a RepoTester object with useful info for testing
func (*RepoTester) GetChart ¶
func (rt *RepoTester) GetChart(w http.ResponseWriter, r *http.Request, chart string)
GetChart returns the chart info from the index
func (*RepoTester) GetChartPackage ¶
func (rt *RepoTester) GetChartPackage(w http.ResponseWriter, r *http.Request, chartPackageName string)
GetChartPackage returns a packaged helm chart
func (*RepoTester) GetIndex ¶
func (rt *RepoTester) GetIndex(w http.ResponseWriter, r *http.Request, emptyIndex bool, indexFile string)
GetIndex returns an index file
func (*RepoTester) GetURL ¶
func (rt *RepoTester) GetURL() string
GetURL returns the URL of the server
func (*RepoTester) PostChart ¶
func (rt *RepoTester) PostChart(w http.ResponseWriter, r *http.Request)
PostChart push a packaged chart
func (*RepoTester) ServeHTTP ¶
func (rt *RepoTester) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the the http Handler type
Click to show internal directories.
Click to hide internal directories.