Documentation ¶
Index ¶
- func Validation() *apiextv1beta1.CustomResourceValidation
- type Handler
- func (h *Handler) CrdKeyPrefix() (prefix string, underKsrPrefix bool)
- func (h *Handler) CrdName() string
- func (h *Handler) CrdObjectToKVData(obj interface{}) (data []kvdbreflector.KVData, err error)
- func (h *Handler) IsCrdKeySuffix(keySuffix string) bool
- func (h *Handler) IsExclusiveKVDB() bool
- func (h *Handler) PublishCrdStatus(obj interface{}, opRetval error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validation ¶
func Validation() *apiextv1beta1.CustomResourceValidation
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 ¶
CrdKeyPrefix returns the longest-common prefix under which the instances of the given CRD are reflected into KVDB.
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 ¶
IsCrdKeySuffix always returns true - the key prefix does not overlap with other CRDs or KSR-reflected K8s data.
func (*Handler) IsExclusiveKVDB ¶
IsExclusiveKVDB returns true - this is the only writer for CustomNetwork KVs in the database.
func (*Handler) PublishCrdStatus ¶
PublishCrdStatus updates the resource Status information.
Click to show internal directories.
Click to hide internal directories.