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 = "http://127.0.0.1:8080"
replace this with the K8s Master IP
View Source
var KubeQPS = float32(5.000000)
View Source
var Kubeconfig = ""
Functions ¶
func NewCRDClient ¶
func NewCRDClient(cfg *rest.Config) (*rest.RESTClient, error)
NewCRDClient is used to create a restClient for crd
func ReadSecretKey ¶
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.
Click to show internal directories.
Click to hide internal directories.