tools

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Kubeconfig string
View Source
var Vmipaddr string
View Source
var Vmipaddr2 string

Functions

func CreatCR

func CreatCR()

func DoCmd added in v0.1.1

func DoCmd(cmd exec.Cmd) (bytes.Buffer, bytes.Buffer)

func DoErrCmd added in v0.2.2

func DoErrCmd(cmd exec.Cmd) (bytes.Buffer, bytes.Buffer)

func FlagParse

func FlagParse()

func GetKuBeanPath

func GetKuBeanPath() string

func UpdateBackoffLimit added in v0.2.1

func UpdateBackoffLimit(content int, filePath string)

func UpdateOpsYml

func UpdateOpsYml(content string, filePath string)

Types

type KubeanOpsYml

type KubeanOpsYml struct {
	ApiVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name   string `yaml:"name"`
		Labels struct {
			ClusterName string `yaml:"clusterName"`
		}
	}
	Spec struct {
		KuBeanCluster string `yaml:"kuBeanCluster"`
		Image         string `yaml:"image"`
		BackoffLimit  int    `yaml:"backoffLimit"`
		ActionType    string `yaml:"actionType"`
		Action        string `yaml:"action"`
	}
}

Jump to

Keyboard shortcuts

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