customnetwork

package
v0.0.0-...-2d08fe4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validation

Validation generates OpenAPIV3 validator for custom network CRD

Types

type Handler

type Handler struct {
	CrdClient *crdClientSet.Clientset
}

Handler implements the Handler interface for CRD<->KVDB Reflector.

func (*Handler) CrdKeyPrefix

func (h *Handler) CrdKeyPrefix() (prefix string, underKsrPrefix bool)

CrdKeyPrefix returns the longest-common prefix under which the instances of the given CRD are reflected into KVDB.

func (*Handler) CrdName

func (h *Handler) CrdName() string

CrdName returns name of the CRD.

func (*Handler) CrdObjectToKVData

func (h *Handler) CrdObjectToKVData(obj interface{}) (data []kvdbreflector.KVData, err error)

CrdObjectToKVData converts the K8s representation of CustomNetwork into the corresponding proto message representation.

func (*Handler) IsCrdKeySuffix

func (h *Handler) IsCrdKeySuffix(keySuffix string) bool

IsCrdKeySuffix always returns true - the key prefix does not overlap with other CRDs or KSR-reflected K8s data.

func (*Handler) IsExclusiveKVDB

func (h *Handler) IsExclusiveKVDB() bool

IsExclusiveKVDB returns true - this is the only writer for CustomNetwork KVs in the database.

func (*Handler) PublishCrdStatus

func (h *Handler) PublishCrdStatus(obj interface{}, opRetval error) error

PublishCrdStatus updates the resource Status information.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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