service

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChartTemplate

func AddChartTemplate(name string, args *fs.DownloadFromSourceArgs, logger *zap.SugaredLogger) error

func GetFileContent

func GetFileContent(name, filePath, fileName string, logger *zap.SugaredLogger) ([]byte, error)

func RemoveChartTemplate

func RemoveChartTemplate(name string, logger *zap.SugaredLogger) error

func UpdateChartTemplate

func UpdateChartTemplate(name string, args *fs.DownloadFromSourceArgs, logger *zap.SugaredLogger) error

Types

type Chart

type Chart struct {
	Name       string `json:"name"`
	CodehostID int    `json:"codehostID"`
	Owner      string `json:"owner"`
	Repo       string `json:"repo"`
	Branch     string `json:"branch"`
	Path       string `json:"path"`

	Files []*fs.FileInfo `json:"files,omitempty"`
}

func GetChartTemplate

func GetChartTemplate(name string, logger *zap.SugaredLogger) (*Chart, error)

func ListChartTemplates

func ListChartTemplates(logger *zap.SugaredLogger) ([]*Chart, error)

Jump to

Keyboard shortcuts

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