kube

package
v2.2.0-rc83 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext, key []byte) ([]byte, error)

func DecryptMap

func DecryptMap(data map[string][]byte, key []byte) (result map[string][]byte, err error)

func Encrypt

func Encrypt(plaintext, key []byte) ([]byte, error)

func EncryptMap

func EncryptMap(data map[string][]byte, key []byte) (result map[string][]byte, err error)

func New

func New() (plugin.Plugin, error)

New New

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

type CloudConfig

type CloudConfig struct {
	Kube struct {
		OutCluster bool   `yaml:"outCluster" json:"outCluster"`
		ConfigPath string `yaml:"configPath" json:"configPath" default:"etc/baetyl/kubeconfig.yml"`
		// TODO Remove from plugin
		AES struct {
			Key string `yaml:"key" json:"key" default:"baetyl2020202020"`
		} `yaml:"aes" json:"aes" default:"{}"`
	} `yaml:"kube" json:"kube"`
}

CloudConfig baetyl-cloud config

Directories

Path Synopsis
apis
client
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/cloud/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/cloud/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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