sghelm

package
v2.0.0-rc.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

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

func NewHandler(svc *Service) *Handler

NewHandler constructs a Handler for helm repositories.

func (*Handler) Register

func (h *Handler) Register(r *mux.Router)

Register adds helm specific api to the main handler.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service manages helm repositories.

func NewService

func NewService(s storage.Interface) (*Service, error)

NewService constructs a Service for helm repository.

func (Service) CreateRepo

func (s Service) CreateRepo(ctx context.Context, e *repo.Entry) (*model.RepositoryInfo, error)

CreateRepo stores a helm repository in the provided storage.

func (Service) DeleteRepo

func (s Service) DeleteRepo(ctx context.Context, repoName string) (*model.RepositoryInfo, error)

DeleteRepo removes a helm repository from the storage by its name.

func (Service) GetChart

func (s Service) GetChart(ctx context.Context, repoName, chartName, chartVersion string) (*chart.Chart, error)

func (Service) GetChartData

func (s Service) GetChartData(ctx context.Context, repoName, chartName, chartVersion string) (*model.ChartData, error)

func (Service) GetRepo

func (s Service) GetRepo(ctx context.Context, repoName string) (*model.RepositoryInfo, error)

GetRepo retrieves the repository index file for provided nam.

func (Service) ListCharts

func (s Service) ListCharts(ctx context.Context, repoName string) ([]model.ChartInfo, error)

func (Service) ListRepos

func (s Service) ListRepos(ctx context.Context) ([]model.RepositoryInfo, error)

ListRepos retrieves all helm repositories from the storage.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL