export

package
v0.7.4-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chart

func Chart(b []byte, logger *logrus.Logger) error

func GetResult

func GetResult(b []byte, logger *logrus.Logger, cmd string) ([]runner.ShellResult, error)

func Item

func Item(b []byte, logger *logrus.Logger, cmd string) error

func LocalImageList

func LocalImageList()

Types

type ChartExecutor

type ChartExecutor struct {
	Config ChartRepoConfig
	Logger *logrus.Logger
}

func (ChartExecutor) ChartList

func (executor ChartExecutor) ChartList() ([]ChartItem, error)

ChartList 获取chart列表

func (ChartExecutor) Save

func (executor ChartExecutor) Save(list []ChartItem)

Save 保存chart列表

func (ChartExecutor) SaveChart

func (executor ChartExecutor) SaveChart(dst string, src io.Reader)

type ChartItem

type ChartItem struct {
	Name          string    `json:"name"`
	TotalVersions int       `json:"total_versions"`
	LatestVersion string    `json:"latest_version"`
	Created       time.Time `json:"created"`
	Updated       time.Time `json:"updated"`
	Icon          string    `json:"icon"`
	Home          string    `json:"home"`
	Deprecated    bool      `json:"deprecated"`
}

type ChartRepoConfig

type ChartRepoConfig struct {
	HelmRepo HelmRepo `yaml:"helm-repo"`
}

ChartRepoConfig chart仓库实体

func ParseHelmRepoConfig

func ParseHelmRepoConfig(b []byte, logger *logrus.Logger) (ChartRepoConfig, error)

type HelmRepo

type HelmRepo struct {
	Endpoint    string `yaml:"endpoint"`
	Username    string `yaml:"username"`
	Password    string `yaml:"password"`
	PreserveDir string `yaml:"preserveDir"`
	Package     bool   `yaml:"package"`
	RepoName    string `yaml:"repo-name"`
}

Jump to

Keyboard shortcuts

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