cnfconfig

package
v0.0.0-...-d5eb696 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Log       logging.Logger
	CrdClient *crdClientSet.Clientset
}

Handler implements the Handler interface for CRD<->KVDB Reflector, largely based on CustomConfiguration CRD from Contiv/VPP.

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 []contiv_kvdbreflector.KVData, err error)

CrdObjectToKVData converts the K8s representation of CNFConfiguration into the corresponding configuration for the destination CNF(s).

func (*Handler) IsCrdKeySuffix

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

IsCrdKeySuffix always returns true - the key prefix does not overlap with other CRDs

func (*Handler) IsExclusiveKVDB

func (h *Handler) IsExclusiveKVDB() bool

IsExclusiveKVDB returns true - configuration is passed to CNFs only through this CRD (at least for now)

func (*Handler) PublishCrdStatus

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

PublishCrdStatus updates the resource Status information.

Jump to

Keyboard shortcuts

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