v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   networkcontroller.GroupName,
	Version: "v1",
}

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Action

type Action struct {
	SrcIP   string `json:"srcIP"`
	DstIP   string `json:"dstIP"`
	SrcPort int    `json:"srcPort"`
	DstPort int    `json:"dstPort"`
	Policy  string `json:"policy"`
}

func (*Action) DeepCopy

func (in *Action) DeepCopy() *Action

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

func (*Action) DeepCopyInto

func (in *Action) DeepCopyInto(out *Action)

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

type Backend

type Backend struct {
	BackendIP         string `json:"backendIP"`
	BackendPort       int    `json:"backendPort"`
	Weight            int    `json:"weight"`
	HealthCheckIP     string `json:"healthcheckIP"`
	HealthCheckPort   int    `json:"healthcheckPort"`
	HealthCheckMethod string `json:"healthcheckMethod"`
}

func (*Backend) DeepCopy

func (in *Backend) DeepCopy() *Backend

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

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

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

type FireWallRule

type FireWallRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   FireWallRuleSpec   `json:"spec"`
	Status FireWallRuleStatus `json:"status"`
}

FireWallRule is a specification for a FireWallRule resource

func (*FireWallRule) DeepCopy

func (in *FireWallRule) DeepCopy() *FireWallRule

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

func (*FireWallRule) DeepCopyInto

func (in *FireWallRule) DeepCopyInto(out *FireWallRule)

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

func (*FireWallRule) DeepCopyObject

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

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

type FireWallRuleList

type FireWallRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FireWallRule `json:"items"`
}

FireWallRuleList is a list of FireWallRule resources

func (*FireWallRuleList) DeepCopy

func (in *FireWallRuleList) DeepCopy() *FireWallRuleList

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

func (*FireWallRuleList) DeepCopyInto

func (in *FireWallRuleList) DeepCopyInto(out *FireWallRuleList)

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

func (*FireWallRuleList) DeepCopyObject

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

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

type FireWallRuleSpec

type FireWallRuleSpec struct {
	Rules []Rules `json:"rules"`
}

FireWallRuleSpec is the spec for a FireWallRule resource

func (*FireWallRuleSpec) DeepCopy

func (in *FireWallRuleSpec) DeepCopy() *FireWallRuleSpec

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

func (*FireWallRuleSpec) DeepCopyInto

func (in *FireWallRuleSpec) DeepCopyInto(out *FireWallRuleSpec)

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

type FireWallRuleStatus

type FireWallRuleStatus struct {
	Deployed string `json:"deployed"`
}

FireWallRuleSpec is the status for a FireWallRule resource

func (*FireWallRuleStatus) DeepCopy

func (in *FireWallRuleStatus) DeepCopy() *FireWallRuleStatus

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

func (*FireWallRuleStatus) DeepCopyInto

func (in *FireWallRuleStatus) DeepCopyInto(out *FireWallRuleStatus)

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

type LBRules

type LBRules struct {
	LoadBalancerIP   string    `json:"loadBalancerIP"`
	LoadBalancerPort int       `json:"loadBalancerPort"`
	Backends         []Backend `json:"backends"`
}

func (*LBRules) DeepCopy

func (in *LBRules) DeepCopy() *LBRules

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

func (*LBRules) DeepCopyInto

func (in *LBRules) DeepCopyInto(out *LBRules)

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

type LoadBalancerRule

type LoadBalancerRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LoadBalancerRuleSpec   `json:"spec"`
	Status LoadBalancerRuleStatus `json:"status"`
}

LoadBalancerRule is a specification for a LoadBalancerRule resource

func (*LoadBalancerRule) DeepCopy

func (in *LoadBalancerRule) DeepCopy() *LoadBalancerRule

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

func (*LoadBalancerRule) DeepCopyInto

func (in *LoadBalancerRule) DeepCopyInto(out *LoadBalancerRule)

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

func (*LoadBalancerRule) DeepCopyObject

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

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

type LoadBalancerRuleList

type LoadBalancerRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []LoadBalancerRule `json:"items"`
}

LoadBalancerRuleList is a list of LoadBalancerRule resources

func (*LoadBalancerRuleList) DeepCopy

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

func (*LoadBalancerRuleList) DeepCopyInto

func (in *LoadBalancerRuleList) DeepCopyInto(out *LoadBalancerRuleList)

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

func (*LoadBalancerRuleList) DeepCopyObject

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

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

type LoadBalancerRuleSpec

type LoadBalancerRuleSpec struct {
	Rules []LBRules `json:"rules"`
}

LoadBalancerRuleSpec is the spec for a LoadBalancerRule resource

func (*LoadBalancerRuleSpec) DeepCopy

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

func (*LoadBalancerRuleSpec) DeepCopyInto

func (in *LoadBalancerRuleSpec) DeepCopyInto(out *LoadBalancerRuleSpec)

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

type LoadBalancerRuleStatus

type LoadBalancerRuleStatus struct {
	Deployed string `json:"deployed"`
}

LoadBalancerRuleSpec is the spec for a LoadBalancerRule resource

func (*LoadBalancerRuleStatus) DeepCopy

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

func (*LoadBalancerRuleStatus) DeepCopyInto

func (in *LoadBalancerRuleStatus) DeepCopyInto(out *LoadBalancerRuleStatus)

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

type Match

type Match struct {
	SrcIP    string `json:"srcIP"`
	DstIP    string `json:"dstIP"`
	SrcPort  int    `json:"srcPort"`
	DstPort  int    `json:"dstPort"`
	Protocol string `json:"protocol"`
}

func (*Match) DeepCopy

func (in *Match) DeepCopy() *Match

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

func (*Match) DeepCopyInto

func (in *Match) DeepCopyInto(out *Match)

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

type NATRule

type NATRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NATRuleSpec   `json:"spec"`
	Status NATRuleStatus `json:"status"`
}

NATRule is a specification for a NATRule resource

func (*NATRule) DeepCopy

func (in *NATRule) DeepCopy() *NATRule

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

func (*NATRule) DeepCopyInto

func (in *NATRule) DeepCopyInto(out *NATRule)

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

func (*NATRule) DeepCopyObject

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

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

type NATRuleList

type NATRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []NATRule `json:"items"`
}

NATRuleList is a list of NATRule resources

func (*NATRuleList) DeepCopy

func (in *NATRuleList) DeepCopy() *NATRuleList

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

func (*NATRuleList) DeepCopyInto

func (in *NATRuleList) DeepCopyInto(out *NATRuleList)

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

func (*NATRuleList) DeepCopyObject

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

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

type NATRuleSpec

type NATRuleSpec struct {
	Rules []Rules `json:"rules"`
}

NATRuleSpec is the spec for a NATRule resource

func (*NATRuleSpec) DeepCopy

func (in *NATRuleSpec) DeepCopy() *NATRuleSpec

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

func (*NATRuleSpec) DeepCopyInto

func (in *NATRuleSpec) DeepCopyInto(out *NATRuleSpec)

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

type NATRuleStatus

type NATRuleStatus struct {
	Deployed string `json:"deployed"`

	OldSrcIP string
	OldDstIP string
}

NATRuleStatus is the status for a NATRule resource

func (*NATRuleStatus) DeepCopy

func (in *NATRuleStatus) DeepCopy() *NATRuleStatus

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

func (*NATRuleStatus) DeepCopyInto

func (in *NATRuleStatus) DeepCopyInto(out *NATRuleStatus)

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

type Rules

type Rules struct {
	Match  Match  `json:"match"`
	Action Action `json:"action"`
	Args   []string
}

func (*Rules) DeepCopy

func (in *Rules) DeepCopy() *Rules

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

func (*Rules) DeepCopyInto

func (in *Rules) DeepCopyInto(out *Rules)

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