json_patch

package
v0.0.0-...-ca213ee Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (*ColorPolicy) Merge

func (p *ColorPolicy) Merge(policy machinery.Policy) machinery.Policy

type ColorSpec

type ColorSpec struct {
	TargetRef gwapi.LocalPolicyTargetReferenceWithSectionName `json:"targetRef"`

	Defaults  *ColorSpecProper `json:"defaults,omitempty"`
	Overrides *ColorSpecProper `json:"overrides,omitempty"`

	ColorSpecProper `json:""`
}

func (*ColorSpec) DeepCopy

func (s *ColorSpec) DeepCopy() *ColorSpec

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

Jump to

Keyboard shortcuts

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