action

package
v0.0.0-...-c4ecbe4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectCluster

func ConnectCluster() *kubernetes.Clientset

Initiate communication with cluster

func GetClientSet

func GetClientSet(kubeconfigPath string) *kubernetes.Clientset

func GetClusterName

func GetClusterName() string

kubectl config --current-context

func GetKubeConfigPath

func GetKubeConfigPath() string

~/.kube/config

func GetUser

func GetUser(cluster string) (string, error)

func SanitizeConfigMap

func SanitizeConfigMap(configMap []byte) string

func TrimClusterName

func TrimClusterName(cluster []byte) string

Remove the line feed on the cluster Name

Types

type AppsExec

type AppsExec struct {
	Application string
	Command     string
	Config      map[string]string
}

func (*AppsExec) Run

func (c *AppsExec) Run() error

type AppsRun

type AppsRun struct {
	Application string
	Config      map[string]string
}

func (*AppsRun) Run

func (c *AppsRun) Run() error

type Connection

type Connection struct {
	KubeConfigPath string
	ClientSet      *kubernetes.Clientset
	Cluster        string
}

func (Connection) NewConnection

func (clusterConnection Connection) NewConnection() bool

type JobContext

type JobContext struct {
	Name      string
	Pod       string
	Container string
}

type JobYaml

type JobYaml struct {
	Metadata struct {
		Name string
	}
	Spec struct {
		Template struct {
			Spec struct {
				Containers []struct {
					Name string
				}
			}
		}
	}
}

type KubeContext

type KubeContext struct {
	Namespace   string
	Cluster     string
	Application string
}

type TemplateField

type TemplateField struct {
	Name     string
	Optional bool
	Default  string
}

func ListTemplateFields

func ListTemplateFields(t *template.Template) []TemplateField

func NewField

func NewField(node string) (TemplateField, error)

Jump to

Keyboard shortcuts

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