event

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cluster_ClusterType_name = map[int32]string{
		0: "CLUSTER_TYPE_UNSPECIFIED",
		1: "CLUSTER_TYPE_KIND",
		2: "CLUSTER_TYPE_EXTERNAL",
		3: "CLUSTER_TYPE_KUBEADM",
	}
	Cluster_ClusterType_value = map[string]int32{
		"CLUSTER_TYPE_UNSPECIFIED": 0,
		"CLUSTER_TYPE_KIND":        1,
		"CLUSTER_TYPE_EXTERNAL":    2,
		"CLUSTER_TYPE_KUBEADM":     3,
	}
)

Enum value maps for Cluster_ClusterType.

View Source
var (
	Cluster_IngressType_name = map[int32]string{
		0: "INGRESS_TYPE_UNSPECIFIED",
		1: "INGRESS_TYPE_METALLB",
	}
	Cluster_IngressType_value = map[string]int32{
		"INGRESS_TYPE_UNSPECIFIED": 0,
		"INGRESS_TYPE_METALLB":     1,
	}
)

Enum value maps for Cluster_IngressType.

View Source
var (
	Cluster_CNIType_name = map[int32]string{
		0: "CNI_TYPE_UNSPECIFIED",
		1: "CNI_TYPE_MESHNET",
	}
	Cluster_CNIType_value = map[string]int32{
		"CNI_TYPE_UNSPECIFIED": 0,
		"CNI_TYPE_MESHNET":     1,
	}
)

Enum value maps for Cluster_CNIType.

View Source
var (
	Cluster_ControllerType_name = map[int32]string{
		0: "CONTROLLER_TYPE_UNSPECIFIED",
		1: "CONTROLLER_TYPE_IXIATG",
		2: "CONTROLLER_TYPE_SRLINUX",
		3: "CONTROLLER_TYPE_CEOSLAB",
		4: "CONTROLLER_TYPE_LEMMING",
		5: "CONTROLLER_TYPE_CDNOS",
	}
	Cluster_ControllerType_value = map[string]int32{
		"CONTROLLER_TYPE_UNSPECIFIED": 0,
		"CONTROLLER_TYPE_IXIATG":      1,
		"CONTROLLER_TYPE_SRLINUX":     2,
		"CONTROLLER_TYPE_CEOSLAB":     3,
		"CONTROLLER_TYPE_LEMMING":     4,
		"CONTROLLER_TYPE_CDNOS":       5,
	}
)

Enum value maps for Cluster_ControllerType.

View Source
var File_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Cluster     Cluster_ClusterType      `protobuf:"varint,1,opt,name=cluster,proto3,enum=event.Cluster_ClusterType" json:"cluster,omitempty"`
	Ingress     Cluster_IngressType      `protobuf:"varint,2,opt,name=ingress,proto3,enum=event.Cluster_IngressType" json:"ingress,omitempty"`
	Cni         Cluster_CNIType          `protobuf:"varint,3,opt,name=cni,proto3,enum=event.Cluster_CNIType" json:"cni,omitempty"`
	Controllers []Cluster_ControllerType `protobuf:"varint,4,rep,packed,name=controllers,proto3,enum=event.Cluster_ControllerType" json:"controllers,omitempty"`
	// contains filtered or unexported fields
}

Cluster holds information about a cluster.

func (*Cluster) Descriptor deprecated

func (*Cluster) Descriptor() ([]byte, []int)

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetCluster

func (x *Cluster) GetCluster() Cluster_ClusterType

func (*Cluster) GetCni

func (x *Cluster) GetCni() Cluster_CNIType

func (*Cluster) GetControllers

func (x *Cluster) GetControllers() []Cluster_ControllerType

func (*Cluster) GetIngress

func (x *Cluster) GetIngress() Cluster_IngressType

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

func (x *Cluster) ProtoReflect() protoreflect.Message

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type Cluster_CNIType

type Cluster_CNIType int32
const (
	Cluster_CNI_TYPE_UNSPECIFIED Cluster_CNIType = 0
	Cluster_CNI_TYPE_MESHNET     Cluster_CNIType = 1
)

func (Cluster_CNIType) Descriptor

func (Cluster_CNIType) Enum

func (x Cluster_CNIType) Enum() *Cluster_CNIType

func (Cluster_CNIType) EnumDescriptor deprecated

func (Cluster_CNIType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_CNIType.Descriptor instead.

func (Cluster_CNIType) Number

func (Cluster_CNIType) String

func (x Cluster_CNIType) String() string

func (Cluster_CNIType) Type

type Cluster_ClusterType

type Cluster_ClusterType int32
const (
	Cluster_CLUSTER_TYPE_UNSPECIFIED Cluster_ClusterType = 0
	Cluster_CLUSTER_TYPE_KIND        Cluster_ClusterType = 1
	Cluster_CLUSTER_TYPE_EXTERNAL    Cluster_ClusterType = 2
	Cluster_CLUSTER_TYPE_KUBEADM     Cluster_ClusterType = 3
)

func (Cluster_ClusterType) Descriptor

func (Cluster_ClusterType) Enum

func (Cluster_ClusterType) EnumDescriptor deprecated

func (Cluster_ClusterType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_ClusterType.Descriptor instead.

func (Cluster_ClusterType) Number

func (Cluster_ClusterType) String

func (x Cluster_ClusterType) String() string

func (Cluster_ClusterType) Type

type Cluster_ControllerType

type Cluster_ControllerType int32
const (
	Cluster_CONTROLLER_TYPE_UNSPECIFIED Cluster_ControllerType = 0
	Cluster_CONTROLLER_TYPE_IXIATG      Cluster_ControllerType = 1
	Cluster_CONTROLLER_TYPE_SRLINUX     Cluster_ControllerType = 2
	Cluster_CONTROLLER_TYPE_CEOSLAB     Cluster_ControllerType = 3
	Cluster_CONTROLLER_TYPE_LEMMING     Cluster_ControllerType = 4
	Cluster_CONTROLLER_TYPE_CDNOS       Cluster_ControllerType = 5
)

func (Cluster_ControllerType) Descriptor

func (Cluster_ControllerType) Enum

func (Cluster_ControllerType) EnumDescriptor deprecated

func (Cluster_ControllerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_ControllerType.Descriptor instead.

func (Cluster_ControllerType) Number

func (Cluster_ControllerType) String

func (x Cluster_ControllerType) String() string

func (Cluster_ControllerType) Type

type Cluster_IngressType

type Cluster_IngressType int32
const (
	Cluster_INGRESS_TYPE_UNSPECIFIED Cluster_IngressType = 0
	Cluster_INGRESS_TYPE_METALLB     Cluster_IngressType = 1
)

func (Cluster_IngressType) Descriptor

func (Cluster_IngressType) Enum

func (Cluster_IngressType) EnumDescriptor deprecated

func (Cluster_IngressType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_IngressType.Descriptor instead.

func (Cluster_IngressType) Number

func (Cluster_IngressType) String

func (x Cluster_IngressType) String() string

func (Cluster_IngressType) Type

type CreateTopologyEnd

type CreateTopologyEnd struct {

	// error is a string containing the error message that caused the topology
	// creation to end unsuccessfully. Empty string if no error.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

CreateTopologyEnd is an event indicating a topology creation was ended.

func (*CreateTopologyEnd) Descriptor deprecated

func (*CreateTopologyEnd) Descriptor() ([]byte, []int)

Deprecated: Use CreateTopologyEnd.ProtoReflect.Descriptor instead.

func (*CreateTopologyEnd) GetError

func (x *CreateTopologyEnd) GetError() string

func (*CreateTopologyEnd) ProtoMessage

func (*CreateTopologyEnd) ProtoMessage()

func (*CreateTopologyEnd) ProtoReflect

func (x *CreateTopologyEnd) ProtoReflect() protoreflect.Message

func (*CreateTopologyEnd) Reset

func (x *CreateTopologyEnd) Reset()

func (*CreateTopologyEnd) String

func (x *CreateTopologyEnd) String() string

type CreateTopologyStart

type CreateTopologyStart struct {
	Topology *Topology `protobuf:"bytes,1,opt,name=topology,proto3" json:"topology,omitempty"`
	// contains filtered or unexported fields
}

CreateTopologyStart is an event indicating a topology creation was started.

func (*CreateTopologyStart) Descriptor deprecated

func (*CreateTopologyStart) Descriptor() ([]byte, []int)

Deprecated: Use CreateTopologyStart.ProtoReflect.Descriptor instead.

func (*CreateTopologyStart) GetTopology

func (x *CreateTopologyStart) GetTopology() *Topology

func (*CreateTopologyStart) ProtoMessage

func (*CreateTopologyStart) ProtoMessage()

func (*CreateTopologyStart) ProtoReflect

func (x *CreateTopologyStart) ProtoReflect() protoreflect.Message

func (*CreateTopologyStart) Reset

func (x *CreateTopologyStart) Reset()

func (*CreateTopologyStart) String

func (x *CreateTopologyStart) String() string

type DeployClusterEnd

type DeployClusterEnd struct {

	// error is a string containing the error message that caused the cluster
	// deployment to end unsuccessfully. Empty string if no error.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

DeployClusterEnd is an event indicating a cluster deployment was ended.

func (*DeployClusterEnd) Descriptor deprecated

func (*DeployClusterEnd) Descriptor() ([]byte, []int)

Deprecated: Use DeployClusterEnd.ProtoReflect.Descriptor instead.

func (*DeployClusterEnd) GetError

func (x *DeployClusterEnd) GetError() string

func (*DeployClusterEnd) ProtoMessage

func (*DeployClusterEnd) ProtoMessage()

func (*DeployClusterEnd) ProtoReflect

func (x *DeployClusterEnd) ProtoReflect() protoreflect.Message

func (*DeployClusterEnd) Reset

func (x *DeployClusterEnd) Reset()

func (*DeployClusterEnd) String

func (x *DeployClusterEnd) String() string

type DeployClusterStart

type DeployClusterStart struct {
	Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// contains filtered or unexported fields
}

DeployClusterStart is an event indicating a cluster deployment was started.

func (*DeployClusterStart) Descriptor deprecated

func (*DeployClusterStart) Descriptor() ([]byte, []int)

Deprecated: Use DeployClusterStart.ProtoReflect.Descriptor instead.

func (*DeployClusterStart) GetCluster

func (x *DeployClusterStart) GetCluster() *Cluster

func (*DeployClusterStart) ProtoMessage

func (*DeployClusterStart) ProtoMessage()

func (*DeployClusterStart) ProtoReflect

func (x *DeployClusterStart) ProtoReflect() protoreflect.Message

func (*DeployClusterStart) Reset

func (x *DeployClusterStart) Reset()

func (*DeployClusterStart) String

func (x *DeployClusterStart) String() string

type KNEEvent

type KNEEvent struct {
	Uuid      string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Types that are assignable to Event:
	//
	//	*KNEEvent_DeployClusterStart
	//	*KNEEvent_DeployClusterEnd
	//	*KNEEvent_CreateTopologyStart
	//	*KNEEvent_CreateTopologyEnd
	Event isKNEEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

KNEEvent is a wrapper around a specific event with a unique ID and timestamp.

func (*KNEEvent) Descriptor deprecated

func (*KNEEvent) Descriptor() ([]byte, []int)

Deprecated: Use KNEEvent.ProtoReflect.Descriptor instead.

func (*KNEEvent) GetCreateTopologyEnd

func (x *KNEEvent) GetCreateTopologyEnd() *CreateTopologyEnd

func (*KNEEvent) GetCreateTopologyStart

func (x *KNEEvent) GetCreateTopologyStart() *CreateTopologyStart

func (*KNEEvent) GetDeployClusterEnd

func (x *KNEEvent) GetDeployClusterEnd() *DeployClusterEnd

func (*KNEEvent) GetDeployClusterStart

func (x *KNEEvent) GetDeployClusterStart() *DeployClusterStart

func (*KNEEvent) GetEvent

func (m *KNEEvent) GetEvent() isKNEEvent_Event

func (*KNEEvent) GetTimestamp

func (x *KNEEvent) GetTimestamp() *timestamppb.Timestamp

func (*KNEEvent) GetUuid

func (x *KNEEvent) GetUuid() string

func (*KNEEvent) ProtoMessage

func (*KNEEvent) ProtoMessage()

func (*KNEEvent) ProtoReflect

func (x *KNEEvent) ProtoReflect() protoreflect.Message

func (*KNEEvent) Reset

func (x *KNEEvent) Reset()

func (*KNEEvent) String

func (x *KNEEvent) String() string

type KNEEvent_CreateTopologyEnd

type KNEEvent_CreateTopologyEnd struct {
	CreateTopologyEnd *CreateTopologyEnd `protobuf:"bytes,6,opt,name=create_topology_end,json=createTopologyEnd,proto3,oneof"`
}

type KNEEvent_CreateTopologyStart

type KNEEvent_CreateTopologyStart struct {
	CreateTopologyStart *CreateTopologyStart `protobuf:"bytes,5,opt,name=create_topology_start,json=createTopologyStart,proto3,oneof"`
}

type KNEEvent_DeployClusterEnd

type KNEEvent_DeployClusterEnd struct {
	DeployClusterEnd *DeployClusterEnd `protobuf:"bytes,4,opt,name=deploy_cluster_end,json=deployClusterEnd,proto3,oneof"`
}

type KNEEvent_DeployClusterStart

type KNEEvent_DeployClusterStart struct {
	DeployClusterStart *DeployClusterStart `protobuf:"bytes,3,opt,name=deploy_cluster_start,json=deployClusterStart,proto3,oneof"`
}

type Node

type Node struct {

	// vendor is an enum of the node vendor.
	Vendor topo.Vendor `protobuf:"varint,1,opt,name=vendor,proto3,enum=topo.Vendor" json:"vendor,omitempty"`
	// model is the name of the model of the node.
	Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

Node holds information about a node in a topology. This is a simplified version of the topo.Node in an effort to include as little potentially identifying information as possible in reporting. The included fields will be used in aggregate to identify trends and determine reliability of certain node configurations.

func (*Node) Descriptor deprecated

func (*Node) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetModel

func (x *Node) GetModel() string

func (*Node) GetVendor

func (x *Node) GetVendor() topo.Vendor

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type Topology

type Topology struct {

	// nodes in the topology.
	Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// number of links in the topology. A count is sufficient here as the link
	// details are not needed in topology metrics, in an effort to include as
	// little potentially identifying information as possible in the reporting.
	LinkCount int64 `protobuf:"varint,2,opt,name=link_count,json=linkCount,proto3" json:"link_count,omitempty"`
	// contains filtered or unexported fields
}

Topology holds information about a topology.

func (*Topology) Descriptor deprecated

func (*Topology) Descriptor() ([]byte, []int)

Deprecated: Use Topology.ProtoReflect.Descriptor instead.

func (*Topology) GetLinkCount

func (x *Topology) GetLinkCount() int64

func (*Topology) GetNodes

func (x *Topology) GetNodes() []*Node

func (*Topology) ProtoMessage

func (*Topology) ProtoMessage()

func (*Topology) ProtoReflect

func (x *Topology) ProtoReflect() protoreflect.Message

func (*Topology) Reset

func (x *Topology) Reset()

func (*Topology) String

func (x *Topology) String() string

Jump to

Keyboard shortcuts

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