Documentation
¶
Overview ¶
+groupName=network.openshift.io Package api is the internal version of the API.
Index ¶
- Constants
- Variables
- func DeepCopy_network_ClusterNetwork(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_ClusterNetworkEntry(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_ClusterNetworkList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_EgressNetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_EgressNetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_EgressNetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_EgressNetworkPolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_EgressNetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_HostSubnet(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_HostSubnetList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_NetNamespace(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_network_NetNamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error
- func IsKindOrLegacy(kind string, gk schema.GroupKind) bool
- func IsResourceOrLegacy(resource string, gr schema.GroupResource) bool
- func Kind(kind string) schema.GroupKind
- func LegacyKind(kind string) schema.GroupKind
- func LegacyResource(resource string) schema.GroupResource
- func RegisterDeepCopies(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type ClusterNetwork
- type ClusterNetworkEntry
- type ClusterNetworkList
- type EgressNetworkPolicy
- type EgressNetworkPolicyList
- type EgressNetworkPolicyPeer
- type EgressNetworkPolicyRule
- type EgressNetworkPolicyRuleType
- type EgressNetworkPolicySpec
- type HostSubnet
- type HostSubnetList
- type NetNamespace
- type NetNamespaceList
Constants ¶
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" )
const ( GroupName = "network.openshift.io" LegacyGroupName = "" )
const ( ClusterNetworkDefault = "default" EgressNetworkPolicyMaxRules = 50 )
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} LegacySchemeGroupVersion = schema.GroupVersion{Group: LegacyGroupName, Version: runtime.APIVersionInternal} LegacySchemeBuilder = runtime.NewSchemeBuilder(addLegacyKnownTypes) AddToSchemeInCoreGroup = LegacySchemeBuilder.AddToScheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
SchemeGroupVersion is group version used to register these objects
Functions ¶
func DeepCopy_network_ClusterNetwork ¶
func DeepCopy_network_ClusterNetwork(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_ClusterNetwork is an autogenerated deepcopy function.
func DeepCopy_network_ClusterNetworkEntry ¶
func DeepCopy_network_ClusterNetworkEntry(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_ClusterNetworkEntry is an autogenerated deepcopy function.
func DeepCopy_network_ClusterNetworkList ¶
func DeepCopy_network_ClusterNetworkList(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_ClusterNetworkList is an autogenerated deepcopy function.
func DeepCopy_network_EgressNetworkPolicy ¶
func DeepCopy_network_EgressNetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_EgressNetworkPolicy is an autogenerated deepcopy function.
func DeepCopy_network_EgressNetworkPolicyList ¶
func DeepCopy_network_EgressNetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_EgressNetworkPolicyList is an autogenerated deepcopy function.
func DeepCopy_network_EgressNetworkPolicyPeer ¶
func DeepCopy_network_EgressNetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_EgressNetworkPolicyPeer is an autogenerated deepcopy function.
func DeepCopy_network_EgressNetworkPolicyRule ¶
func DeepCopy_network_EgressNetworkPolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_EgressNetworkPolicyRule is an autogenerated deepcopy function.
func DeepCopy_network_EgressNetworkPolicySpec ¶
func DeepCopy_network_EgressNetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_EgressNetworkPolicySpec is an autogenerated deepcopy function.
func DeepCopy_network_HostSubnet ¶
func DeepCopy_network_HostSubnet(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_HostSubnet is an autogenerated deepcopy function.
func DeepCopy_network_HostSubnetList ¶
func DeepCopy_network_HostSubnetList(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_HostSubnetList is an autogenerated deepcopy function.
func DeepCopy_network_NetNamespace ¶
func DeepCopy_network_NetNamespace(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_NetNamespace is an autogenerated deepcopy function.
func DeepCopy_network_NetNamespaceList ¶
func DeepCopy_network_NetNamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_network_NetNamespaceList is an autogenerated deepcopy function.
func IsKindOrLegacy ¶
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 ¶
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func LegacyKind ¶
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 ¶
RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.
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
}
type ClusterNetworkList ¶
type ClusterNetworkList struct {
metav1.TypeMeta
metav1.ListMeta
Items []ClusterNetwork
}
type EgressNetworkPolicy ¶
type EgressNetworkPolicy struct {
metav1.TypeMeta
metav1.ObjectMeta
Spec EgressNetworkPolicySpec
}
EgressNetworkPolicy describes the current egress network policy
type EgressNetworkPolicyList ¶
type EgressNetworkPolicyList struct {
metav1.TypeMeta
metav1.ListMeta
Items []EgressNetworkPolicy
}
EgressNetworkPolicyList is a collection of EgressNetworkPolicy
type EgressNetworkPolicyPeer ¶
EgressNetworkPolicyPeer specifies a target to apply egress policy to
type EgressNetworkPolicyRule ¶
type EgressNetworkPolicyRule struct {
Type EgressNetworkPolicyRuleType
To EgressNetworkPolicyPeer
}
EgressNetworkPolicyRule contains a single egress network policy rule
type EgressNetworkPolicyRuleType ¶
type EgressNetworkPolicyRuleType string
EgressNetworkPolicyRuleType gives the type of an EgressNetworkPolicyRule
const ( EgressNetworkPolicyRuleAllow EgressNetworkPolicyRuleType = "Allow" EgressNetworkPolicyRuleDeny EgressNetworkPolicyRuleType = "Deny" )
type EgressNetworkPolicySpec ¶
type EgressNetworkPolicySpec struct {
Egress []EgressNetworkPolicyRule
}
EgressNetworkPolicySpec provides a list of policies on outgoing traffic
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
type HostSubnetList ¶
type HostSubnetList struct {
metav1.TypeMeta
metav1.ListMeta
Items []HostSubnet
}
HostSubnetList is a collection of HostSubnets
Source Files
¶
- doc.go
- plugin.go
- register.go
- types.go
- zz_generated.deepcopy.go
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. |