v1

package
v0.0.0-...-fa73266 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CRDPlural   string = "unifiednetworkpolicies"
	CRDGroup    string = "nimbess.com"
	CRDVersion  string = "v1"
	FullCRDName string = CRDPlural + "." + CRDGroup
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "nimbess.com", Version: "v1"}

Functions

func CreateCRD

func CreateCRD(clientset *clientset.Clientset) error

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type DefaultPolicy

type DefaultPolicy struct {
	Action string `json:"action,omitempty"`
}

func (*DefaultPolicy) DeepCopy

func (in *DefaultPolicy) DeepCopy() *DefaultPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultPolicy.

func (*DefaultPolicy) DeepCopyInto

func (in *DefaultPolicy) DeepCopyInto(out *DefaultPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type L7Policy

type L7Policy struct {
	Default   DefaultPolicy `json:"default,omitempty"`
	UrlFilter URLFilter     `json:"urlFilter,omitempty"`
}

func (*L7Policy) DeepCopy

func (in *L7Policy) DeepCopy() *L7Policy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L7Policy.

func (*L7Policy) DeepCopyInto

func (in *L7Policy) DeepCopyInto(out *L7Policy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type URLFilter

type URLFilter struct {
	Urls        []string             `json:"urls,omitempty"`
	Action      string               `json:"action,omitempty"`
	PodSelector metav1.LabelSelector `json:"podSelector,omitempty"`
	Network     string               `json:"network,omitempty"`
}

func (*URLFilter) DeepCopy

func (in *URLFilter) DeepCopy() *URLFilter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new URLFilter.

func (*URLFilter) DeepCopyInto

func (in *URLFilter) DeepCopyInto(out *URLFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UnifiedNetworkPolicy

type UnifiedNetworkPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              UnifiedNetworkPolicySpec   `json:"spec"`
	Status            UnifiedNetworkPolicyStatus `json:"status,omitempty"`
}

func (*UnifiedNetworkPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnifiedNetworkPolicy.

func (*UnifiedNetworkPolicy) DeepCopyInto

func (in *UnifiedNetworkPolicy) DeepCopyInto(out *UnifiedNetworkPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UnifiedNetworkPolicy) DeepCopyObject

func (in *UnifiedNetworkPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UnifiedNetworkPolicyList

type UnifiedNetworkPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []UnifiedNetworkPolicy `json:"items"`
}

func (*UnifiedNetworkPolicyList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnifiedNetworkPolicyList.

func (*UnifiedNetworkPolicyList) DeepCopyInto

func (in *UnifiedNetworkPolicyList) DeepCopyInto(out *UnifiedNetworkPolicyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UnifiedNetworkPolicyList) DeepCopyObject

func (in *UnifiedNetworkPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UnifiedNetworkPolicySpec

type UnifiedNetworkPolicySpec struct {
	L7Policies  []L7Policy           `json:"l7Policies"`
	PodSelector metav1.LabelSelector `json:"podSelector"`
	Network     string               `json:"network"`
	Attributes  string               `json:"attributes"`
}

func (*UnifiedNetworkPolicySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnifiedNetworkPolicySpec.

func (*UnifiedNetworkPolicySpec) DeepCopyInto

func (in *UnifiedNetworkPolicySpec) DeepCopyInto(out *UnifiedNetworkPolicySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UnifiedNetworkPolicyStatus

type UnifiedNetworkPolicyStatus struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

func (*UnifiedNetworkPolicyStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnifiedNetworkPolicyStatus.

func (*UnifiedNetworkPolicyStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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