api

package
v0.0.0-...-978fcca Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployParameters

type DeployParameters struct {
	Name         string                 `json:"name,omitempty"`
	Namespace    string                 `json:"namespace,omitempty"`
	ChartName    string                 `json:"chartName,omitempty"`
	ChartVersion string                 `json:"chartVersion,omitempty"`
	Flags        map[string]interface{} `json:"flags,omitempty"`
	Config       map[string]interface{} `json:"config,omitempty"`
}

type ICoreManager

type ICoreManager interface {
	//Get info on managed charts
	ManagedCharts(ctx context.Context) ([]chart.Metadata, error)
	ManagedChartDetail(ctx context.Context, id string) (chart.Chart, error)
	ManagedChartVersions(ctx context.Context, id string) ([]*repo.ChartVersion, error)

	// get info on deployed charts
	DeployedCharts(ctx context.Context) ([]SimpleRelease, error)
	GetModuleDetail(ctx context.Context, name string) (release.Release, error)

	//Actions
	DeployChart(ctx context.Context, parameters DeployParameters) error
	UpgradeRelease(ctx context.Context, name, version string, config map[string]interface{}) error
	RemoveRelease(ctx context.Context, name string) error
}

type SimpleRelease

type SimpleRelease struct {
	Name          string          `json:"name,omitempty"`
	Namespace     string          `json:"namespace,omitempty"`
	Version       int             `json:"version,omitempty"`
	ChartMetadata *chart.Metadata `json:"metadata,omitempty"`
}

Jump to

Keyboard shortcuts

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