stats

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package stats is the internal version of the Antrea Stats API. Refer to https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api_changes.md doc for more information.

Index

Constants

View Source
const GroupName = "stats.antrea.tanzu.vmware.com"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder points to a list of functions added to Scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

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 AntreaClusterNetworkPolicyStats

type AntreaClusterNetworkPolicyStats struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// The traffic stats of the Antrea ClusterNetworkPolicy.
	TrafficStats TrafficStats
}

AntreaClusterNetworkPolicyStats is the statistics of a Antrea ClusterNetworkPolicy.

func (*AntreaClusterNetworkPolicyStats) DeepCopy

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

func (*AntreaClusterNetworkPolicyStats) DeepCopyInto

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

func (*AntreaClusterNetworkPolicyStats) DeepCopyObject

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

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

type AntreaClusterNetworkPolicyStatsList

type AntreaClusterNetworkPolicyStatsList struct {
	metav1.TypeMeta
	metav1.ListMeta

	// List of AntreaClusterNetworkPolicyStats.
	Items []AntreaClusterNetworkPolicyStats
}

AntreaClusterNetworkPolicyStatsList is a list of AntreaClusterNetworkPolicyStats.

func (*AntreaClusterNetworkPolicyStatsList) DeepCopy

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

func (*AntreaClusterNetworkPolicyStatsList) DeepCopyInto

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

func (*AntreaClusterNetworkPolicyStatsList) DeepCopyObject

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

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

type AntreaNetworkPolicyStats

type AntreaNetworkPolicyStats struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// The traffic stats of the Antrea NetworkPolicy.
	TrafficStats TrafficStats
}

AntreaNetworkPolicyStats is the statistics of a Antrea NetworkPolicy.

func (*AntreaNetworkPolicyStats) DeepCopy

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

func (*AntreaNetworkPolicyStats) DeepCopyInto

func (in *AntreaNetworkPolicyStats) DeepCopyInto(out *AntreaNetworkPolicyStats)

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

func (*AntreaNetworkPolicyStats) DeepCopyObject

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

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

type AntreaNetworkPolicyStatsList

type AntreaNetworkPolicyStatsList struct {
	metav1.TypeMeta
	metav1.ListMeta

	// List of AntreaNetworkPolicyStats.
	Items []AntreaNetworkPolicyStats
}

AntreaNetworkPolicyStatsList is a list of AntreaNetworkPolicyStats.

func (*AntreaNetworkPolicyStatsList) DeepCopy

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

func (*AntreaNetworkPolicyStatsList) DeepCopyInto

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

func (*AntreaNetworkPolicyStatsList) DeepCopyObject

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

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

type NetworkPolicyStats

type NetworkPolicyStats struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// The traffic stats of the K8s NetworkPolicy.
	TrafficStats TrafficStats
}

NetworkPolicyStats is the statistics of a K8s NetworkPolicy.

func (*NetworkPolicyStats) DeepCopy

func (in *NetworkPolicyStats) DeepCopy() *NetworkPolicyStats

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

func (*NetworkPolicyStats) DeepCopyInto

func (in *NetworkPolicyStats) DeepCopyInto(out *NetworkPolicyStats)

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

func (*NetworkPolicyStats) DeepCopyObject

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

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

type NetworkPolicyStatsList

type NetworkPolicyStatsList struct {
	metav1.TypeMeta
	metav1.ListMeta

	// List of NetworkPolicyStats.
	Items []NetworkPolicyStats
}

NetworkPolicyStatsList is a list of NetworkPolicyStats.

func (*NetworkPolicyStatsList) DeepCopy

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

func (*NetworkPolicyStatsList) DeepCopyInto

func (in *NetworkPolicyStatsList) DeepCopyInto(out *NetworkPolicyStatsList)

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

func (*NetworkPolicyStatsList) DeepCopyObject

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

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

type TrafficStats

type TrafficStats struct {
	// Packets is the packets count hit by the NetworkPolicy.
	Packets int64
	// Bytes is the bytes count hit by the NetworkPolicy.
	Bytes int64
	// Sessions is the sessions count hit by the NetworkPolicy.
	Sessions int64
}

TrafficStats contains the traffic stats of a NetworkPolicy.

func (*TrafficStats) DeepCopy

func (in *TrafficStats) DeepCopy() *TrafficStats

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

func (*TrafficStats) DeepCopyInto

func (in *TrafficStats) DeepCopyInto(out *TrafficStats)

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

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the Antrea Stats API.
Package v1alpha1 is the v1alpha1 version of the Antrea Stats API.

Jump to

Keyboard shortcuts

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