utils

package
v0.0.0-...-dd67137 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MergePatchType is patch type
	MergePatchType = "application/merge-patch+json"
	// ResourceTypeDevices is plural of device resource in apiserver
	ResourceTypeDevices = "devices"
)
View Source
const (
	// AppID is our app id of wechat
	AppID = "AppID"
	// AppSecret is your app secret of wechat
	AppSecret = "AppSecret"
	// Token is your token of wechat
	Token = "Token"
	// EncodingAESKey is your encoding aes key of wechat
	EncodingAESKey = "EncodingAESKey"
)

Variables

View Source
var KubeBurst = 10
View Source
var KubeContentType = "application/vnd.kubernetes.protobuf"
View Source
var KubeMaster = ""
View Source
var KubeQPS = float32(5.000000)
View Source
var Kubeconfig = ""

Functions

func KubeConfig

func KubeConfig() (conf *rest.Config, err error)

KubeConfig from flags

func NewCRDClient

func NewCRDClient(cfg *rest.Config) (*rest.RESTClient, error)

NewCRDClient is used to create a restClient for crd

func ReadSecretKey

func ReadSecretKey(key string) (string, error)

ReadSecretKey is a helper function that will return the value of the key passed in as an argument. The keys in this case are secrets containing the WeChat credentials for authentication.

Types

This section is empty.

Jump to

Keyboard shortcuts

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