chartRepo

package
v0.0.0-...-987a61a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CHART_REPO_DELETE_SUCCESS_RESP = "Chart repo deleted successfully."

Variables

Functions

This section is empty.

Types

type ChartBinary

type ChartBinary struct {
	Version        string         `json:"binaryVersion"  validate:"required"`
	BinaryFile     multipart.File `json:"binaryFile"  validate:"required"`
	BinaryFileName string         `json:"binaryFileName" validate:"required"`
}

type ChartRepositoryRestHandler

type ChartRepositoryRestHandler interface {
	GetChartRepoById(w http.ResponseWriter, r *http.Request)
	GetChartRepoList(w http.ResponseWriter, r *http.Request)
	CreateChartRepo(w http.ResponseWriter, r *http.Request)
	UpdateChartRepo(w http.ResponseWriter, r *http.Request)
	ValidateChartRepo(w http.ResponseWriter, r *http.Request)
	TriggerChartSyncManual(w http.ResponseWriter, r *http.Request)
	DeleteChartRepo(w http.ResponseWriter, r *http.Request)
}

type ChartRepositoryRestHandlerImpl

type ChartRepositoryRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewChartRepositoryRestHandlerImpl

func NewChartRepositoryRestHandlerImpl(Logger *zap.SugaredLogger, userAuthService user.UserService, chartRepositoryService chartRepo.ChartRepositoryService,
	enforcer casbin.Enforcer, validator *validator.Validate, deleteService delete2.DeleteService,
	chartRefRepository chartRepoRepository.ChartRefRepository, refChartDir chartRepoRepository.RefChartDir) *ChartRepositoryRestHandlerImpl

func (*ChartRepositoryRestHandlerImpl) CreateChartRepo

func (handler *ChartRepositoryRestHandlerImpl) CreateChartRepo(w http.ResponseWriter, r *http.Request)

func (*ChartRepositoryRestHandlerImpl) DeleteChartRepo

func (handler *ChartRepositoryRestHandlerImpl) DeleteChartRepo(w http.ResponseWriter, r *http.Request)

func (*ChartRepositoryRestHandlerImpl) GetChartRepoById

func (handler *ChartRepositoryRestHandlerImpl) GetChartRepoById(w http.ResponseWriter, r *http.Request)

func (*ChartRepositoryRestHandlerImpl) GetChartRepoList

func (handler *ChartRepositoryRestHandlerImpl) GetChartRepoList(w http.ResponseWriter, r *http.Request)

func (*ChartRepositoryRestHandlerImpl) TriggerChartSyncManual

func (handler *ChartRepositoryRestHandlerImpl) TriggerChartSyncManual(w http.ResponseWriter, r *http.Request)

func (*ChartRepositoryRestHandlerImpl) UpdateChartRepo

func (handler *ChartRepositoryRestHandlerImpl) UpdateChartRepo(w http.ResponseWriter, r *http.Request)

func (*ChartRepositoryRestHandlerImpl) ValidateChartRepo

func (handler *ChartRepositoryRestHandlerImpl) ValidateChartRepo(w http.ResponseWriter, r *http.Request)

type ChartRepositoryRouter

type ChartRepositoryRouter interface {
	Init(configRouter *mux.Router)
}

type ChartRepositoryRouterImpl

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

func NewChartRepositoryRouterImpl

func NewChartRepositoryRouterImpl(chartRepositoryRestHandler ChartRepositoryRestHandler) *ChartRepositoryRouterImpl

func (ChartRepositoryRouterImpl) Init

func (router ChartRepositoryRouterImpl) Init(configRouter *mux.Router)

Jump to

Keyboard shortcuts

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