network

package
v3.8.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+groupName=network.openshift.io Package api is the internal version of the API.

Index

Constants

View Source
const (
	// Pod annotations
	IngressBandwidthAnnotation = "kubernetes.io/ingress-bandwidth"
	EgressBandwidthAnnotation  = "kubernetes.io/egress-bandwidth"
	AssignMacvlanAnnotation    = "pod.network.openshift.io/assign-macvlan"

	// HostSubnet annotations. (Note: should be "hostsubnet.network.openshift.io/", but the incorrect name is now part of the API.)
	AssignHostSubnetAnnotation = "pod.network.openshift.io/assign-subnet"
	FixedVNIDHostAnnotation    = "pod.network.openshift.io/fixed-vnid-host"

	// NetNamespace annotations
	MulticastEnabledAnnotation = "netnamespace.network.openshift.io/multicast-enabled"
)
View Source
const (
	GroupName       = "network.openshift.io"
	LegacyGroupName = ""
)
View Source
const (
	ClusterNetworkDefault       = "default"
	EgressNetworkPolicyMaxRules = 50
)

Variables

View Source
var (
	SchemeGroupVersion       = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
	LegacySchemeGroupVersion = schema.GroupVersion{Group: LegacyGroupName, Version: runtime.APIVersionInternal}

	LegacySchemeBuilder    = runtime.NewSchemeBuilder(addLegacyKnownTypes, RegisterDeepCopies)
	AddToSchemeInCoreGroup = LegacySchemeBuilder.AddToScheme

	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

SchemeGroupVersion is group version used to register these objects

Functions

func IsKindOrLegacy

func IsKindOrLegacy(kind string, gk schema.GroupKind) bool

IsKindOrLegacy checks if the provided GroupKind matches with the given kind by looking up the API group and also the legacy API.

func IsResourceOrLegacy

func IsResourceOrLegacy(resource string, gr schema.GroupResource) bool

IsResourceOrLegacy checks if the provided GroupResources matches with the given resource by looking up the API group and also the legacy API.

func Kind

func Kind(kind string) schema.GroupKind

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

func LegacyKind

func LegacyKind(kind string) schema.GroupKind

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

func LegacyResource

func LegacyResource(resource string) schema.GroupResource

LegacyResource takes an unqualified resource and returns back a Group qualified GroupResource

func RegisterDeepCopies deprecated

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type ClusterNetwork

type ClusterNetwork struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	ClusterNetworks  []ClusterNetworkEntry
	Network          string
	HostSubnetLength uint32
	ServiceNetwork   string
	PluginName       string
}

func (*ClusterNetwork) DeepCopy

func (in *ClusterNetwork) DeepCopy() *ClusterNetwork

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

func (*ClusterNetwork) DeepCopyInto

func (in *ClusterNetwork) DeepCopyInto(out *ClusterNetwork)

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

func (*ClusterNetwork) DeepCopyObject

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

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

type ClusterNetworkEntry

type ClusterNetworkEntry struct {
	CIDR             string
	HostSubnetLength uint32
}

func (*ClusterNetworkEntry) DeepCopy

func (in *ClusterNetworkEntry) DeepCopy() *ClusterNetworkEntry

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

func (*ClusterNetworkEntry) DeepCopyInto

func (in *ClusterNetworkEntry) DeepCopyInto(out *ClusterNetworkEntry)

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

type ClusterNetworkList

type ClusterNetworkList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []ClusterNetwork
}

func (*ClusterNetworkList) DeepCopy

func (in *ClusterNetworkList) DeepCopy() *ClusterNetworkList

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

func (*ClusterNetworkList) DeepCopyInto

func (in *ClusterNetworkList) DeepCopyInto(out *ClusterNetworkList)

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

func (*ClusterNetworkList) DeepCopyObject

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

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

type EgressNetworkPolicy

type EgressNetworkPolicy struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec EgressNetworkPolicySpec
}

EgressNetworkPolicy describes the current egress network policy

func (*EgressNetworkPolicy) DeepCopy

func (in *EgressNetworkPolicy) DeepCopy() *EgressNetworkPolicy

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

func (*EgressNetworkPolicy) DeepCopyInto

func (in *EgressNetworkPolicy) DeepCopyInto(out *EgressNetworkPolicy)

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

func (*EgressNetworkPolicy) DeepCopyObject

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

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

type EgressNetworkPolicyList

type EgressNetworkPolicyList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []EgressNetworkPolicy
}

EgressNetworkPolicyList is a collection of EgressNetworkPolicy

func (*EgressNetworkPolicyList) DeepCopy

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

func (*EgressNetworkPolicyList) DeepCopyInto

func (in *EgressNetworkPolicyList) DeepCopyInto(out *EgressNetworkPolicyList)

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

func (*EgressNetworkPolicyList) DeepCopyObject

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

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

type EgressNetworkPolicyPeer

type EgressNetworkPolicyPeer struct {
	CIDRSelector string
	DNSName      string
}

EgressNetworkPolicyPeer specifies a target to apply egress policy to

func (*EgressNetworkPolicyPeer) DeepCopy

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

func (*EgressNetworkPolicyPeer) DeepCopyInto

func (in *EgressNetworkPolicyPeer) DeepCopyInto(out *EgressNetworkPolicyPeer)

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

type EgressNetworkPolicyRule

type EgressNetworkPolicyRule struct {
	Type EgressNetworkPolicyRuleType
	To   EgressNetworkPolicyPeer
}

EgressNetworkPolicyRule contains a single egress network policy rule

func (*EgressNetworkPolicyRule) DeepCopy

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

func (*EgressNetworkPolicyRule) DeepCopyInto

func (in *EgressNetworkPolicyRule) DeepCopyInto(out *EgressNetworkPolicyRule)

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

type EgressNetworkPolicyRuleType

type EgressNetworkPolicyRuleType string

EgressNetworkPolicyRuleType gives the type of an EgressNetworkPolicyRule

const (
	EgressNetworkPolicyRuleAllow EgressNetworkPolicyRuleType = "Allow"
	EgressNetworkPolicyRuleDeny  EgressNetworkPolicyRuleType = "Deny"
)

func (*EgressNetworkPolicyRuleType) DeepCopy

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

func (*EgressNetworkPolicyRuleType) DeepCopyInto

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

type EgressNetworkPolicySpec

type EgressNetworkPolicySpec struct {
	Egress []EgressNetworkPolicyRule
}

EgressNetworkPolicySpec provides a list of policies on outgoing traffic

func (*EgressNetworkPolicySpec) DeepCopy

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

func (*EgressNetworkPolicySpec) DeepCopyInto

func (in *EgressNetworkPolicySpec) DeepCopyInto(out *EgressNetworkPolicySpec)

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

type HostSubnet

type HostSubnet struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// host may just be an IP address, resolvable hostname or a complete DNS
	Host   string
	HostIP string
	Subnet string

	EgressIPs []string
}

HostSubnet encapsulates the inputs needed to define the container subnet network on a node

func (*HostSubnet) DeepCopy

func (in *HostSubnet) DeepCopy() *HostSubnet

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

func (*HostSubnet) DeepCopyInto

func (in *HostSubnet) DeepCopyInto(out *HostSubnet)

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

func (*HostSubnet) DeepCopyObject

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

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

type HostSubnetList

type HostSubnetList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []HostSubnet
}

HostSubnetList is a collection of HostSubnets

func (*HostSubnetList) DeepCopy

func (in *HostSubnetList) DeepCopy() *HostSubnetList

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

func (*HostSubnetList) DeepCopyInto

func (in *HostSubnetList) DeepCopyInto(out *HostSubnetList)

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

func (*HostSubnetList) DeepCopyObject

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

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

type NetNamespace

type NetNamespace struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	NetName string
	NetID   uint32

	EgressIPs []string
}

NetNamespace holds information about the SDN configuration of a Namespace

func (*NetNamespace) DeepCopy

func (in *NetNamespace) DeepCopy() *NetNamespace

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

func (*NetNamespace) DeepCopyInto

func (in *NetNamespace) DeepCopyInto(out *NetNamespace)

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

func (*NetNamespace) DeepCopyObject

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

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

type NetNamespaceList

type NetNamespaceList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetNamespace
}

NetNamespaceList is a collection of NetNamespaces

func (*NetNamespaceList) DeepCopy

func (in *NetNamespaceList) DeepCopy() *NetNamespaceList

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

func (*NetNamespaceList) DeepCopyInto

func (in *NetNamespaceList) DeepCopyInto(out *NetNamespaceList)

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

func (*NetNamespaceList) DeepCopyObject

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

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

Directories

Path Synopsis
+groupName=network.openshift.io Package v1 is the v1 version of the API.
+groupName=network.openshift.io Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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