helpers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCA

func GenerateCA(ca *x509.Certificate) (CAPEM, CAPrivateKey, error)

func GenerateServerCert

func GenerateServerCert(serverCert *x509.Certificate, caPem CAPEM, caPrivKeyPem CAPrivateKey) (ServerCertPEM, ServerPrivateKey, error)

func VerifyServerWithCA

func VerifyServerWithCA(caPem []byte, serverPem []byte) error

Types

type BIGIPHelper

type BIGIPHelper struct {
	BIGIP *f5_bigip.BIGIP
	// contains filtered or unexported fields
}

func NewBIGIPHelper

func NewBIGIPHelper(username, password, ipAddress string, port int) *BIGIPHelper

func (*BIGIPHelper) Check

func (bh *BIGIPHelper) Check(ctx context.Context, kind, name, partition, subfolder string, properties map[string]interface{}) error

func (*BIGIPHelper) Exist

func (bh *BIGIPHelper) Exist(ctx context.Context, kind, name, partition, subfolder string) error

func (*BIGIPHelper) Get

func (bh *BIGIPHelper) Get(ctx context.Context, kind, name, partition, subfolder string) (map[string]interface{}, error)

type CAPEM

type CAPEM []byte

type CAPrivateKey

type CAPrivateKey []byte

type Configs

type Configs []*unstructured.Unstructured

type ConnectHelper

type ConnectHelper struct {
	Client *http.Client
}

connection test helper for connection test.

type K8SHelper

type K8SHelper struct {
	// contains filtered or unexported fields
}

func NewK8SHelper

func NewK8SHelper(ctx context.Context, kubeconfig string) (*K8SHelper, error)

func (*K8SHelper) Apply

func (k *K8SHelper) Apply(ctx context.Context, configs Configs) error

func (*K8SHelper) Delete

func (k *K8SHelper) Delete(ctx context.Context, configs Configs) error

func (*K8SHelper) Load

func (k *K8SHelper) Load(ctx context.Context, fs io.Reader) (*Configs, error)

func (*K8SHelper) LoadAndRender

func (k *K8SHelper) LoadAndRender(ctx context.Context, fs io.Reader, data map[string]interface{}) (*Configs, error)

func (*K8SHelper) Loads

func (k *K8SHelper) Loads(ctx context.Context, yaml string) (*Configs, error)

type ServerCertPEM

type ServerCertPEM []byte

type ServerPrivateKey

type ServerPrivateKey []byte

type SuiteConfig

type SuiteConfig struct {
	KubeConfig  string `yaml:"kubeConfig"`
	BIGIPConfig struct {
		Username  string `yaml:"username"`
		Password  string `yaml:"password"`
		IPAddress string `yaml:"ipAddress"`
		Port      int    `yaml:"port"`
	} `yaml:"bigipConfig"`
}

func (*SuiteConfig) Load

func (sc *SuiteConfig) Load(filepath string) error

Jump to

Keyboard shortcuts

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