Documentation ¶
Index ¶
- type Handler
- type Service
- func (s Service) CreateRepo(ctx context.Context, e *repo.Entry) (*model.RepositoryInfo, error)
- func (s Service) DeleteRepo(ctx context.Context, repoName string) (*model.RepositoryInfo, error)
- func (s Service) GetChart(ctx context.Context, repoName, chartName, chartVersion string) (*chart.Chart, error)
- func (s Service) GetChartData(ctx context.Context, repoName, chartName, chartVersion string) (*model.ChartData, error)
- func (s Service) GetRepo(ctx context.Context, repoName string) (*model.RepositoryInfo, error)
- func (s Service) ListCharts(ctx context.Context, repoName string) ([]model.ChartInfo, error)
- func (s Service) ListRepos(ctx context.Context) ([]model.RepositoryInfo, error)
- type Servicer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a http controller for a helm repositories.
func NewHandler ¶
NewHandler constructs a Handler for helm repositories.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages helm repositories.
func NewService ¶
NewService constructs a Service for helm repository.
func (Service) CreateRepo ¶
CreateRepo stores a helm repository in the provided storage.
func (Service) DeleteRepo ¶
DeleteRepo removes a helm repository from the storage by its name.
func (Service) GetChartData ¶
func (Service) ListCharts ¶
type Servicer ¶
type Servicer interface { CreateRepo(ctx context.Context, e *repo.Entry) (*model.RepositoryInfo, error) GetRepo(ctx context.Context, repoName string) (*model.RepositoryInfo, error) ListRepos(ctx context.Context) ([]model.RepositoryInfo, error) DeleteRepo(ctx context.Context, repoName string) (*model.RepositoryInfo, error) GetChartData(ctx context.Context, repoName, chartName, chartVersion string) (*model.ChartData, error) ListCharts(ctx context.Context, repoName string) ([]model.ChartInfo, error) GetChart(ctx context.Context, repoName, chartName, chartVersion string) (*chart.Chart, error) }
Servicer is an interface for the helm service.
Click to show internal directories.
Click to hide internal directories.