v1

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is the identifier for the API which includes
	// the name of the group and the version of the API
	SchemeGroupVersion = schema.GroupVersion{
		Group:   contivppio.GroupName,
		Version: "v1",
	}
	// SchemeBuilder is the schema builder for the CRD API
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CustomNetwork

type CustomNetwork struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	meta_v1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object
	meta_v1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the custom resource spec
	Spec CustomNetworkSpec `json:"spec"`
}

CustomNetwork define custom network for contiv/vpp +genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CustomNetwork) DeepCopy

func (in *CustomNetwork) DeepCopy() *CustomNetwork

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

func (*CustomNetwork) DeepCopyInto

func (in *CustomNetwork) DeepCopyInto(out *CustomNetwork)

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

func (*CustomNetwork) DeepCopyObject

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

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

type CustomNetworkList

type CustomNetworkList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`

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

CustomNetworkList is a list of CustomNetwork resources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CustomNetworkList) DeepCopy

func (in *CustomNetworkList) DeepCopy() *CustomNetworkList

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

func (*CustomNetworkList) DeepCopyInto

func (in *CustomNetworkList) DeepCopyInto(out *CustomNetworkList)

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

func (*CustomNetworkList) DeepCopyObject

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

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

type CustomNetworkSpec

type CustomNetworkSpec struct {
	Type                   string              `json:"type"`
	SubnetCIDR             string              `json:"subnetCIDR"`
	SubnetOneNodePrefixLen uint32              `json:"subnetOneNodePrefixLen"`
	ExternalInterfaces     []ExternalInterface `json:"externalInterfaces"`
}

CustomNetworkSpec is the spec for custom network configuration resource

func (*CustomNetworkSpec) DeepCopy

func (in *CustomNetworkSpec) DeepCopy() *CustomNetworkSpec

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

func (*CustomNetworkSpec) DeepCopyInto

func (in *CustomNetworkSpec) DeepCopyInto(out *CustomNetworkSpec)

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

type ExternalInterface

type ExternalInterface struct {
	Name  string          `json:"name"`
	Nodes []NodeInterface `json:"nodes"`
}

ExternalInterface defines mapping between logical name and particular interfaces on nodes

func (*ExternalInterface) DeepCopy

func (in *ExternalInterface) DeepCopy() *ExternalInterface

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

func (*ExternalInterface) DeepCopyInto

func (in *ExternalInterface) DeepCopyInto(out *ExternalInterface)

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

type NodeInterface

type NodeInterface struct {
	Node             string `json:"node"`
	VppInterfaceName string `json:"vppInterfaceName"`
	IP               string `json:"IP"`
}

NodeInterface describe config for an interface referenced by logical name on a node

func (*NodeInterface) DeepCopy

func (in *NodeInterface) DeepCopy() *NodeInterface

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

func (*NodeInterface) DeepCopyInto

func (in *NodeInterface) DeepCopyInto(out *NodeInterface)

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

type ServiceFunction

type ServiceFunction struct {
	Name            string            `json:"name"`
	Type            string            `json:"type"`
	PodSelector     map[string]string `json:"podSelector"`
	InputInterface  string            `json:"inputInterface"`
	OutputInterface string            `json:"outputInterface"`
}

ServiceFunction describes single segment of the chain

func (*ServiceFunction) DeepCopy

func (in *ServiceFunction) DeepCopy() *ServiceFunction

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

func (*ServiceFunction) DeepCopyInto

func (in *ServiceFunction) DeepCopyInto(out *ServiceFunction)

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

type ServiceFunctionChain

type ServiceFunctionChain struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	meta_v1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object
	meta_v1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the custom resource spec
	Spec ServiceFunctionChainSpec `json:"spec"`
}

ServiceFunctionChain define service function chain crd for contiv/vpp +genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ServiceFunctionChain) DeepCopy

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

func (*ServiceFunctionChain) DeepCopyInto

func (in *ServiceFunctionChain) DeepCopyInto(out *ServiceFunctionChain)

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

func (*ServiceFunctionChain) DeepCopyObject

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

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

type ServiceFunctionChainList

type ServiceFunctionChainList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`

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

ServiceFunctionChainList is a list of ServiceFunctionChain resources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ServiceFunctionChainList) DeepCopy

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

func (*ServiceFunctionChainList) DeepCopyInto

func (in *ServiceFunctionChainList) DeepCopyInto(out *ServiceFunctionChainList)

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

func (*ServiceFunctionChainList) DeepCopyObject

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

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

type ServiceFunctionChainSpec

type ServiceFunctionChainSpec struct {
	Network string            `json:"network"`
	Chain   []ServiceFunction `json:"chain"`
}

ServiceFunctionChainSpec describe service function chain

func (*ServiceFunctionChainSpec) DeepCopy

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

func (*ServiceFunctionChainSpec) DeepCopyInto

func (in *ServiceFunctionChainSpec) DeepCopyInto(out *ServiceFunctionChainSpec)

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