core

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: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChart

func GetChart(name string) config.Chart

func JSONErr

func JSONErr(c *gin.Context, status int, obj interface{}, err error)

func OKErr

func OKErr(c *gin.Context, err error)

Types

type CoreHandler

type CoreHandler struct {
	Api api.ICoreManager
}

func NewCoreHandler

func NewCoreHandler() *CoreHandler

func (*CoreHandler) DeployChart

func (ch *CoreHandler) DeployChart(c *gin.Context)

func (*CoreHandler) DeployedCharts

func (ch *CoreHandler) DeployedCharts(c *gin.Context)

func (*CoreHandler) GetModuleDetail

func (ch *CoreHandler) GetModuleDetail(c *gin.Context)

func (*CoreHandler) ManagedChartDetail

func (C *CoreHandler) ManagedChartDetail(c *gin.Context)

func (*CoreHandler) ManagedChartVersions

func (C *CoreHandler) ManagedChartVersions(c *gin.Context)

func (*CoreHandler) ManagedCharts

func (C *CoreHandler) ManagedCharts(c *gin.Context)

func (*CoreHandler) RemoveRelease

func (ch *CoreHandler) RemoveRelease(c *gin.Context)

func (*CoreHandler) SetupRoute

func (C *CoreHandler) SetupRoute(router *gin.RouterGroup)

func (*CoreHandler) UpgradeRelease

func (ch *CoreHandler) UpgradeRelease(c *gin.Context)

type CoreManager

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

func (*CoreManager) DeployChart

func (cm *CoreManager) DeployChart(ctx context.Context, parameters api.DeployParameters) error

Actions

func (*CoreManager) DeployedCharts

func (cm *CoreManager) DeployedCharts(ctx context.Context) ([]api.SimpleRelease, error)

func (*CoreManager) GetModuleDetail

func (cm *CoreManager) GetModuleDetail(ctx context.Context, name string) (release.Release, error)

func (*CoreManager) InitHelmCli

func (cm *CoreManager) InitHelmCli()

func (*CoreManager) LocateChartFromId

func (cm *CoreManager) LocateChartFromId(name, version string) (*chart.Chart, error)

func (*CoreManager) ManagedChartDetail

func (cm *CoreManager) ManagedChartDetail(ctx context.Context, name string) (chart.Chart, error)

func (*CoreManager) ManagedChartVersions

func (cm *CoreManager) ManagedChartVersions(ctx context.Context, name string) ([]*repo.ChartVersion, error)

func (*CoreManager) ManagedCharts

func (cm *CoreManager) ManagedCharts(ctx context.Context) ([]chart.Metadata, error)

Get info

func (*CoreManager) RemoveRelease

func (cm *CoreManager) RemoveRelease(ctx context.Context, name string) error

func (*CoreManager) UpgradeRelease

func (cm *CoreManager) UpgradeRelease(ctx context.Context, name, version string, config map[string]interface{}) error

Jump to

Keyboard shortcuts

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