kube

package
v0.0.0-...-7c21e21 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 23 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 {
	Kubernetes struct {
		InCluster  bool   `yaml:"inCluster" json:"inCluster" default:"false"`
		ConfigPath string `yaml:"configPath" json:"configPath" default:"etc/baetyl/kube.yml"`
		AES        struct {
			Key string `yaml:"key" json:"key" default:"baetyl2020202020"`
		} `yaml:"aes" json:"aes" default:"{}"`
	} `yaml:"kubernetes" json:"kubernetes"`
}

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