Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorPolicy ¶
type ColorPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ColorSpec `json:"spec"` }
func (*ColorPolicy) DeepCopy ¶
func (p *ColorPolicy) DeepCopy() *ColorPolicy
func (*ColorPolicy) GetLocator ¶
func (p *ColorPolicy) GetLocator() string
func (*ColorPolicy) GetMergeStrategy ¶
func (p *ColorPolicy) GetMergeStrategy() machinery.MergeStrategy
func (*ColorPolicy) GetTargetRefs ¶
func (p *ColorPolicy) GetTargetRefs() []machinery.PolicyTargetReference
type ColorSpec ¶
type ColorSpec struct { TargetRef gwapi.LocalPolicyTargetReferenceWithSectionName `json:"targetRef"` Defaults *ColorSpecProper `json:"defaults,omitempty"` Overrides *ColorSpecProper `json:"overrides,omitempty"` ColorSpecProper `json:""` }
func (*ColorSpec) Proper ¶
func (s *ColorSpec) Proper() *ColorSpecProper
type ColorSpecProper ¶
type ColorSpecProper struct {
Rules map[string]ColorValue `json:"rules,omitempty"`
}
type ColorValue ¶
type ColorValue string
const ( Black ColorValue = "black" Blue ColorValue = "blue" Green ColorValue = "green" Orange ColorValue = "orange" Purple ColorValue = "purple" Red ColorValue = "red" White ColorValue = "white" Yellow ColorValue = "yellow" )
Click to show internal directories.
Click to hide internal directories.