customnetwork

package
v3.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 1 package

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 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