utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepo

func AddRepo(namespace string, repoConfig *RepoConfig) error

AddRepo add repo

func CheckExist added in v1.0.0

func CheckExist(namespace string, repoConfig *RepoConfig) bool

func ListChart

func ListChart(namespace string, repoConfig *RepoConfig, listOpts *ListOptions) (*paginator.Page, error)

func RepoUpdate

func RepoUpdate() error

Types

type ChartDetail

type ChartDetail struct {
	ChartSummary
	Values   string   `json:"values,omitempty"`
	Readme   string   `json:"readme,omitempty"`
	Versions []string `json:"versions,omitempty"`
}

func ShowDetail

func ShowDetail(namespace string, repoConfig *RepoConfig, showOpts *ShowOptions) (*ChartDetail, error)

ShowDetail show chart details with multiple versions

type ChartSummary

type ChartSummary struct {
	Name string `json:"name,omitempty"`
	// A SemVer 2 conformant version string of the chart
	Version string `json:"version,omitempty"`
	// The version of the application enclosed inside of this chart.
	AppVersion string `json:"appVersion,omitempty"`
	// A one-sentence description of the chart
	Description string `json:"description,omitempty"`
	// The URL to an icon file.
	Icon string `json:"icon,omitempty"`
}

type ListOptions

type ListOptions struct {
	NameKeyword string `json:"nameKeyword,omitempty"`
	Page        int    `json:"page,omitempty"`
	Size        int    `json:"size,omitempty"`
}

type RepoAddOptions

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

RepoAddOptions repo add options

type RepoConfig

type RepoConfig struct {
	Name     string
	Url      string
	Username string
	Password string
	NoUpdate bool
}

RepoConfig repo config to add

type SearchRepoOptions

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

type ShowOptions

type ShowOptions struct {
	Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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