internal

package
v0.0.0-...-f4a1023 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *config

Functions

func NewConfig

func NewConfig() (*config, error)

Types

type Backend

type Backend interface {
	GetTemplate(c *gin.Context, name string)
}

type BackendType

type BackendType string
var (
	BackendTypeKubernetes BackendType = "kubernetes"
	BackendTypeManageIQ   BackendType = "manageIQ"
)

type Kubernetes

type Kubernetes struct {
	// kubeconfig file with the context to talk to kubernetes cluster
	Kubeconfig string `mapstructure:"kubeconfig"`
	ClientSet  *kubernetes.Clientset
	Config     *restclient.Config
}

func (*Kubernetes) AdminContext

func (k *Kubernetes) AdminContext() *kubernetes.Clientset

func (*Kubernetes) GetTemplate

func (k *Kubernetes) GetTemplate(c *gin.Context, name string)

func (*Kubernetes) UserContext

func (k *Kubernetes) UserContext(c *gin.Context) (*kubernetes.Clientset, error)

type ManageIQ

type ManageIQ struct {
}

Jump to

Keyboard shortcuts

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