Documentation ¶
Index ¶
- Constants
- Variables
- func AbsoluteURL(address string, urls []string) []string
- func GetSecret() string
- func InjectConfig(root *chart.Chart, name, secret string) error
- func SetSecret(s string)
- type Driver
- type Index
- type Installer
- func (h Installer) Annotations() repository.Annotations
- func (h Installer) Brief() *repository.InstallerBrief
- func (h Installer) GetChart() *chart.Chart
- func (h Installer) Install(ops ...*repository.Option) error
- func (h Installer) Options() []*repository.Option
- func (h *Installer) SetChart(ch *chart.Chart)
- func (h *Installer) SetOption(ops ...*repository.Option) error
- func (h *Installer) SetPluginID(id string)
- func (h Installer) Uninstall() error
- func (h Installer) Upgrade(ops ...*repository.Option) error
- type PluginRes
- type PluginResList
- type Repo
- func (r *Repo) Close() error
- func (r Repo) Config() *helmAction.Configuration
- func (r *Repo) Get(name, version string) (repository.Installer, error)
- func (r Repo) GetDriver() Driver
- func (r *Repo) Info() *repository.Info
- func (r *Repo) Installed() ([]repository.Installer, error)
- func (r *Repo) Len() int
- func (r *Repo) Namespace() string
- func (r *Repo) Search(word string) ([]*repository.InstallerBrief, error)
- func (r *Repo) SetDriver(driver Driver) error
- func (r *Repo) SetInfo(info repository.Info)
- func (r *Repo) SetNamespace(namespace string) error
- func (r *Repo) Update() (bool, error)
Constants ¶
View Source
const ( ReadmeKey = "readme" ValuesFileName = "values.yaml" ChartFileName = "Chart.yaml" ChartDescKey = "Chart" ChartMetaDataKey = "_Tkeel_Chart_Metadata_" )
View Source
const ( PluginConfig = `` /* 748-byte string literal not displayed */ PluginOAuth2 = `` /* 775-byte string literal not displayed */ )
View Source
const LatestVersion = "latest"
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrNoValidURL = errors.New("no valid url") ErrNoChartInfoSet = errors.New("no chart info set in installer") )
View Source
var SecretContext = "changeme"
Functions ¶
func AbsoluteURL ¶ added in v1.0.0
Types ¶
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewHelmInstaller ¶
func NewHelmInstaller(id string, ch *chart.Chart, brief repository.InstallerBrief, namespace string, helmConfig *action.Configuration, ) Installer
func NewHelmInstallerQuick ¶
func NewHelmInstallerQuick(id, namespace string, config *action.Configuration) Installer
func (Installer) Annotations ¶
func (h Installer) Annotations() repository.Annotations
func (Installer) Brief ¶
func (h Installer) Brief() *repository.InstallerBrief
func (Installer) Options ¶
func (h Installer) Options() []*repository.Option
func (*Installer) SetPluginID ¶
type PluginRes ¶
type PluginRes struct { Name string `json:"name"` Version string `json:"version"` Repo string `json:"repository"` // nolint URLs []string `json:"urls"` //nolint Description string `json:"description"` ChartInfo *repo.ChartVersion `json:"chart_info"` }
func (PluginRes) ToInstallerBrief ¶
func (r PluginRes) ToInstallerBrief() *repository.InstallerBrief
type PluginResList ¶
type PluginResList []*PluginRes
func (*PluginResList) ToInstallerBrief ¶
func (r *PluginResList) ToInstallerBrief() []*repository.InstallerBrief
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo is the impl repository.Repository.
func NewHelmRepo ¶
func (Repo) Config ¶
func (r Repo) Config() *helmAction.Configuration
func (*Repo) Get ¶
func (r *Repo) Get(name, version string) (repository.Installer, error)
Get the Installer of the specified installable.
func (*Repo) Info ¶
func (r *Repo) Info() *repository.Info
func (*Repo) Search ¶
func (r *Repo) Search(word string) ([]*repository.InstallerBrief, error)
Search the word in repo, support "*" to get all installable in repo.
func (*Repo) SetInfo ¶
func (r *Repo) SetInfo(info repository.Info)
func (*Repo) SetNamespace ¶
Click to show internal directories.
Click to hide internal directories.