tools

package
v0.0.0-...-96b04c8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeValueMap

func MergeValueMap(source map[string]interface{}) (map[string]interface{}, error)

Types

type Chartmuseum

type Chartmuseum struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
}

func NewChartmuseum

func NewChartmuseum(cluster *Cluster, tool *model.ClusterTool) (*Chartmuseum, error)

func (Chartmuseum) Install

func (c Chartmuseum) Install(toolDetail model.ClusterToolDetail) error

func (Chartmuseum) Uninstall

func (c Chartmuseum) Uninstall() error

func (Chartmuseum) Upgrade

func (c Chartmuseum) Upgrade(toolDetail model.ClusterToolDetail) error

type Cluster

type Cluster struct {
	OldNamespace string
	Namespace    string
	model.Cluster

	HelmClient helm.Interface
	KubeClient *kubernetes.Clientset
	// contains filtered or unexported fields
}

func NewHelmHelper

func NewHelmHelper(cluster model.Cluster, availableHost string, oldNamespace, namespace string) (*Cluster, error)

type Dashboard

type Dashboard struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
}

func NewDashboard

func NewDashboard(cluster *Cluster, tool *model.ClusterTool) (*Dashboard, error)

func (Dashboard) Install

func (d Dashboard) Install(toolDetail model.ClusterToolDetail) error

func (Dashboard) Uninstall

func (d Dashboard) Uninstall() error

func (Dashboard) Upgrade

func (d Dashboard) Upgrade(toolDetail model.ClusterToolDetail) error

type EFK

type EFK struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
}

func NewEFK

func NewEFK(cluster *Cluster, tool *model.ClusterTool) (*EFK, error)

func (EFK) Install

func (e EFK) Install(toolDetail model.ClusterToolDetail) error

func (EFK) Uninstall

func (e EFK) Uninstall() error

func (EFK) Upgrade

func (e EFK) Upgrade(toolDetail model.ClusterToolDetail) error

type Gatekeeper

type Gatekeeper struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
}

func NewGatekeeper

func NewGatekeeper(cluster *Cluster, tool *model.ClusterTool) (*Gatekeeper, error)

func (Gatekeeper) Install

func (k Gatekeeper) Install(toolDetail model.ClusterToolDetail) error

func (Gatekeeper) Uninstall

func (k Gatekeeper) Uninstall() error

func (Gatekeeper) Upgrade

func (k Gatekeeper) Upgrade(toolDetail model.ClusterToolDetail) error

type Grafana

type Grafana struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
	// contains filtered or unexported fields
}

func NewGrafana

func NewGrafana(cluster *Cluster, tool *model.ClusterTool, prometheusNs, lokiNs string) (*Grafana, error)

func (Grafana) Install

func (g Grafana) Install(toolDetail model.ClusterToolDetail) error

func (Grafana) Uninstall

func (g Grafana) Uninstall() error

func (Grafana) Upgrade

func (g Grafana) Upgrade(toolDetail model.ClusterToolDetail) error

type Ingress

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

type Interface

type Interface interface {
	Install(toolDetail model.ClusterToolDetail) error
	Upgrade(toolDetail model.ClusterToolDetail) error
	Uninstall() error
}

func NewClusterTool

func NewClusterTool(tool *model.ClusterTool, cluster model.Cluster, availableHost string, oldNamespace, namespace string, enable bool) (Interface, error)

type Kubeapps

type Kubeapps struct {
	Tool                *model.ClusterTool
	Cluster             *Cluster
	LocalHostName       string
	LocalRepositoryPort int
}

func NewKubeapps

func NewKubeapps(cluster *Cluster, tool *model.ClusterTool) (*Kubeapps, error)

func (Kubeapps) Install

func (k Kubeapps) Install(toolDetail model.ClusterToolDetail) error

func (Kubeapps) Uninstall

func (k Kubeapps) Uninstall() error

func (Kubeapps) Upgrade

func (k Kubeapps) Upgrade(toolDetail model.ClusterToolDetail) error

type Loki

type Loki struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
}

func NewLoki

func NewLoki(cluster *Cluster, tool *model.ClusterTool) (*Loki, error)

func (Loki) Install

func (l Loki) Install(toolDetail model.ClusterToolDetail) error

func (Loki) Uninstall

func (l Loki) Uninstall() error

func (Loki) Upgrade

func (l Loki) Upgrade(toolDetail model.ClusterToolDetail) error

type Prometheus

type Prometheus struct {
	Tool                *model.ClusterTool
	Cluster             *Cluster
	LocalHostName       string
	LocalRepositoryPort int
}

func NewPrometheus

func NewPrometheus(cluster *Cluster, tool *model.ClusterTool) (*Prometheus, error)

func (Prometheus) Install

func (p Prometheus) Install(toolDetail model.ClusterToolDetail) error

func (Prometheus) Uninstall

func (p Prometheus) Uninstall() error

func (Prometheus) Upgrade

func (p Prometheus) Upgrade(toolDetail model.ClusterToolDetail) error

type Registry

type Registry struct {
	Cluster             *Cluster
	Tool                *model.ClusterTool
	LocalHostName       string
	LocalRepositoryPort int
}

func NewRegistry

func NewRegistry(cluster *Cluster, tool *model.ClusterTool) (*Registry, error)

func (Registry) Install

func (r Registry) Install(toolDetail model.ClusterToolDetail) error

func (Registry) Uninstall

func (r Registry) Uninstall() error

func (Registry) Upgrade

func (r Registry) Upgrade(toolDetail model.ClusterToolDetail) error

Jump to

Keyboard shortcuts

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