policyrecipenetworkcommonmodel

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V1alpha1CommonPolicySpecNetworkV1CustomRules

type V1alpha1CommonPolicySpecNetworkV1CustomRules struct {

	// List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. Default is this rule matches all ports (traffic not restricted by port).
	Ports *[]V1alpha1CommonPolicySpecNetworkV1CustomRulesPorts `json:"ports,omitempty"`

	// List of destinations/sources which should be able to access the pods selected for this rule. Default is the rule matches all destinations/ sources.
	// List of items of type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0 OR V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec1
	RuleSpec []interface{} `json:"ruleSpec,omitempty"`
}

V1alpha1CommonPolicySpecNetworkV1CustomRules defines model for V1alpha1CommonPolicySpecNetworkV1Custom.rules.Item.

func (*V1alpha1CommonPolicySpecNetworkV1CustomRules) MarshalBinary

MarshalBinary interface implementation

func (*V1alpha1CommonPolicySpecNetworkV1CustomRules) UnmarshalBinary

UnmarshalBinary interface implementation

type V1alpha1CommonPolicySpecNetworkV1CustomRulesPorts

type V1alpha1CommonPolicySpecNetworkV1CustomRulesPorts struct {
	// The port on the given protocol. This can either be a numerical or named port on a pod.
	Port *string `json:"port,omitempty"`

	// The protocol (TCP or UDP) which traffic must match.
	Protocol *V1alpha1CommonPolicySpecNetworkV1CustomRulesPortsProtocol `json:"protocol,omitempty"`
}

V1alpha1CommonPolicySpecNetworkV1CustomRulesPorts defines model for V1alpha1CommonPolicySpecNetworkV1Custom.rules.Item.Port

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesPorts) MarshalBinary

MarshalBinary interface implementation

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesPorts) UnmarshalBinary

UnmarshalBinary interface implementation

type V1alpha1CommonPolicySpecNetworkV1CustomRulesPortsProtocol

type V1alpha1CommonPolicySpecNetworkV1CustomRulesPortsProtocol string

V1alpha1CommonPolicySpecNetworkV1CustomRulesPortsProtocol The protocol (TCP or UDP) which traffic must match

Defines values for V1alpha1CommonPolicySpecNetworkV1CustomRulesPortsProtocol.

type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0

type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0 struct {
	// IPBlock defines policy on a particular IPBlock. If this field is set then neither of the namespaceSelector and PodSelector can be set.
	IpBlock *V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0IpBlock `json:"ipBlock,omitempty"`
}

V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0 defines model for V1alpha1CommonPolicySpecNetworkV1Custom.rules.Item.RuleSpec0.

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0) MarshalBinary

MarshalBinary interface implementation

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0) UnmarshalBinary

UnmarshalBinary interface implementation

type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0IpBlock

type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0IpBlock struct {

	// CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
	Cidr string `json:"cidr"`

	// Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range
	Except *[]string `json:"except,omitempty"`
}

V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0IpBlock defines model for V1alpha1CommonPolicySpecNetworkV1Custom.rules.Item.RuleSpec0.IpBlock.

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0IpBlock) MarshalBinary

MarshalBinary interface implementation

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec0IpBlock) UnmarshalBinary

UnmarshalBinary interface implementation

type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec1

type V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec1 struct {

	// Use a label selector to identify the namespaces to allow as egress destinations or ingress sources.
	NamespaceSelector *[]V1alpha1CommonPolicySpecNetworkV1Labels `json:"namespaceSelector,omitempty"`

	// Use a label selector to identify the pods to allow as egress destinations or ingress sources.
	PodSelector *[]V1alpha1CommonPolicySpecNetworkV1Labels `json:"podSelector,omitempty"`
}

V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec1 defines model for V1alpha1CommonPolicySpecNetworkV1Custom.rules.Item.RuleSpec1.

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec1) MarshalBinary

MarshalBinary interface implementation

func (*V1alpha1CommonPolicySpecNetworkV1CustomRulesRuleSpec1) UnmarshalBinary

UnmarshalBinary interface implementation

type V1alpha1CommonPolicySpecNetworkV1Labels

type V1alpha1CommonPolicySpecNetworkV1Labels struct {

	// Label Key
	// Required: true
	// Max Length: 316
	// Pattern: ^([[:alnum:]][[:alnum:]-]*[[:alnum:]](.[[:alnum:]][[:alnum:]-]*[[:alnum:]])*/)?[[:alnum:]][[:alnum:]._-]{0,61}[[:alnum:]]$
	Key string `json:"key"`

	// Label Value
	// Required: true
	// Max Length: 63
	// Pattern: ^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$
	Value string `json:"value"`
}

V1alpha1CommonPolicySpecNetworkV1Labels Label Key-Value Pair

swagger:model V1alpha1CommonPolicySpecNetworkV1Labels

func (*V1alpha1CommonPolicySpecNetworkV1Labels) MarshalBinary

func (m *V1alpha1CommonPolicySpecNetworkV1Labels) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1alpha1CommonPolicySpecNetworkV1Labels) UnmarshalBinary

func (m *V1alpha1CommonPolicySpecNetworkV1Labels) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

Jump to

Keyboard shortcuts

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