dashboard

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(abortWeb ControlChan, data *DataLayer) *gin.Engine

func RevisionDiff added in v0.0.3

func RevisionDiff(functor SectionFn, ext string, namespace string, name string, revision1 int, revision2 int, flag bool) (string, error)

Types

type CmdError added in v0.0.7

type CmdError struct {
	Command   []string
	OrigError error
	StdErr    []byte
}

func (CmdError) Error added in v0.0.7

func (e CmdError) Error() string

type ControlChan

type ControlChan = chan struct{}

func StartServer

func StartServer() (string, ControlChan)

type DataLayer

type DataLayer struct {
	KubeContext string
	Helm        string
	Kubectl     string
}

func (*DataLayer) ChartHistory

func (d *DataLayer) ChartHistory(namespace string, chartName string) (res []*historyElement, err error)

func (*DataLayer) ChartRepoUpdate added in v0.0.4

func (d *DataLayer) ChartRepoUpdate(name string) error

func (*DataLayer) ChartRepoVersions

func (d *DataLayer) ChartRepoVersions(chartName string) (res []repoChartElement, err error)

func (*DataLayer) ChartUpgrade added in v0.0.4

func (d *DataLayer) ChartUpgrade(namespace string, name string, repoChart string, version string, justTemplate bool) (string, error)

func (*DataLayer) CheckConnectivity

func (d *DataLayer) CheckConnectivity() error

func (*DataLayer) DescribeResource added in v0.0.4

func (d *DataLayer) DescribeResource(namespace string, kind string, name string) (string, error)

func (*DataLayer) GetResource added in v0.0.3

func (d *DataLayer) GetResource(namespace string, def *GenericResource) (*GenericResource, error)

func (*DataLayer) ListContexts

func (d *DataLayer) ListContexts() (res []KubeContext, err error)

func (*DataLayer) ListInstalled

func (d *DataLayer) ListInstalled() (res []releaseElement, err error)

func (*DataLayer) Revert added in v0.0.4

func (d *DataLayer) Revert(namespace string, name string, rev int) error

func (*DataLayer) RevisionManifests

func (d *DataLayer) RevisionManifests(namespace string, chartName string, revision int, _ bool) (res string, err error)

func (*DataLayer) RevisionManifestsParsed added in v0.0.3

func (d *DataLayer) RevisionManifestsParsed(namespace string, chartName string, revision int) ([]*GenericResource, error)

func (*DataLayer) RevisionNotes added in v0.0.3

func (d *DataLayer) RevisionNotes(namespace string, chartName string, revision int, _ bool) (res string, err error)

func (*DataLayer) RevisionValues added in v0.0.3

func (d *DataLayer) RevisionValues(namespace string, chartName string, revision int, onlyUserDefined bool) (res string, err error)

func (*DataLayer) UninstallChart added in v0.0.4

func (d *DataLayer) UninstallChart(namespace string, name string) error

type GenericResource added in v0.0.3

type GenericResource = v1.Carp

type HelmHandler added in v0.0.4

type HelmHandler struct {
	Data *DataLayer
}

func (*HelmHandler) GetCharts added in v0.0.4

func (h *HelmHandler) GetCharts(c *gin.Context)

func (*HelmHandler) GetInfoSection added in v0.0.4

func (h *HelmHandler) GetInfoSection(c *gin.Context)

func (*HelmHandler) History added in v0.0.4

func (h *HelmHandler) History(c *gin.Context)

func (*HelmHandler) Install added in v0.0.4

func (h *HelmHandler) Install(c *gin.Context)

func (*HelmHandler) InstallPreview added in v0.0.4

func (h *HelmHandler) InstallPreview(c *gin.Context)

func (*HelmHandler) RepoSearch added in v0.0.4

func (h *HelmHandler) RepoSearch(c *gin.Context)

func (*HelmHandler) RepoUpdate added in v0.0.4

func (h *HelmHandler) RepoUpdate(c *gin.Context)

func (*HelmHandler) Resources added in v0.0.4

func (h *HelmHandler) Resources(c *gin.Context)

func (*HelmHandler) Rollback added in v0.0.4

func (h *HelmHandler) Rollback(c *gin.Context)

func (*HelmHandler) Uninstall added in v0.0.4

func (h *HelmHandler) Uninstall(c *gin.Context)

type KubeContext

type KubeContext struct {
	IsCurrent bool
	Name      string
	Cluster   string
	AuthInfo  string
	Namespace string
}

type KubeHandler added in v0.0.4

type KubeHandler struct {
	Data *DataLayer
}

func (*KubeHandler) Describe added in v0.0.4

func (h *KubeHandler) Describe(c *gin.Context)

func (*KubeHandler) GetContexts added in v0.0.4

func (h *KubeHandler) GetContexts(c *gin.Context)

func (*KubeHandler) GetResourceInfo added in v0.0.4

func (h *KubeHandler) GetResourceInfo(c *gin.Context)

type QueryProps added in v0.0.4

type QueryProps struct {
	Namespace string
	Name      string
	Revision  int
}

type SectionFn added in v0.0.3

type SectionFn = func(string, string, int, bool) (string, error) // TODO: rework it into struct-based argument?

Jump to

Keyboard shortcuts

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