models

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadServingConditionInfoConfiguration

func LoadServingConditionInfoConfiguration() map[string][]ConditionInfo

func LoadServingKeyInfoConfiguration

func LoadServingKeyInfoConfiguration() map[string][]string

Types

type CRNode

type CRNode struct {
	Name            string
	GVR             schema.GroupVersionResource
	GetResourceName func(string) string
	GetListOptions  func([]string) metav1.ListOptions
	Leaves          []*CRNode
}

func NewCRNode

func NewCRNode(name string, gvr schema.GroupVersionResource, f ...func(string) string) *CRNode

func (*CRNode) AddLeafNode

func (t *CRNode) AddLeafNode(leaf *CRNode)

func (*CRNode) SetListOptions

func (t *CRNode) SetListOptions(f func([]string) metav1.ListOptions)

type ConditionInfo

type ConditionInfo struct {
	Type     string `json:"type"`
	Expected string `json:"expected"`
}

type ConditionInfoConfig

type ConditionInfoConfig struct {
	Name           string          `json:"name"`
	ConditionInfos []ConditionInfo `json:"conditionInfos"`
}

type KeyInfoConfiguration

type KeyInfoConfiguration struct {
	Name     string   `json:"name"`
	KeyInfos []string `json:"keyInfos"`
}

type ObjectNode

type ObjectNode struct {
	CRName     string
	ObjectName string
	Object     *unstructured.Unstructured
	Leaves     []*ObjectNode
}

func NewObjectNode

func NewObjectNode(crName, objectName string, object *unstructured.Unstructured) *ObjectNode

func (*ObjectNode) AddLeafNode

func (t *ObjectNode) AddLeafNode(leaf *ObjectNode)

Jump to

Keyboard shortcuts

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