customconfiguration

package
v3.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validation

Validation generates OpenAPIV3 validator for CustomConfiguration CRD

Types

type Handler

type Handler struct {
	Log       logging.Logger
	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 CustomConfiguration into the corresponding configuration for vpp-agent(s) running in the destination microservice(s).

func (*Handler) IsCrdKeySuffix

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

IsCrdKeySuffix excludes the KSR-reflected data.

func (*Handler) IsExclusiveKVDB

func (h *Handler) IsExclusiveKVDB() bool

IsExclusiveKVDB returns false - there can be multiple writers of the agent configuration in the database.

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