operator

package
v0.0.0-...-fdd9b93 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HSMCONFIG = "hsmconfig"
	ALL       = "all"
)

Supported actions for Operator-related requests

Variables

This section is empty.

Functions

This section is empty.

Types

type IBPOperatorClient

type IBPOperatorClient interface {
	GetCR(namespace string, kind string, name string, cr runtime.Object) error
	GetAllCR(namespace string, kind string, crlist runtime.Object) error
	CreateCR(namespace string, kind string, cr interface{}) error
	DeleteCR(namespace string, kind string, name string) error
	UpdateCR(namespace string, kind string, name string, bytes []byte) error
	PatchCR(namespace string, kind string, name string, bytes []byte) error
}

type Kube

type Kube interface {
	GetService(namespace, name string) (*corev1.Service, error)
	GetConfigMap(namespace, name string) (*corev1.ConfigMap, error)
	GetPort(namespace, name string) (int32, error)
	GetPorts(namespace, name string) ([]corev1.ServicePort, error)
}

type Operator

type Operator struct {
	Kube   Kube
	Logger *zap.SugaredLogger
}

func New

func New(logger *zap.Logger, k8sClient Kube) *Operator

func (*Operator) Get

func (o *Operator) Get(section, namespace string) (*api.Response, int, error)

func (*Operator) GetHSMConfig

func (o *Operator) GetHSMConfig(namespace string) (interface{}, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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