cluster_agent

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Condition_name = map[int32]string{
		0: "EMPTY",
		1: "HEALTHY",
		2: "HIBERNATED",
		3: "UNKNOWN",
	}
	Condition_value = map[string]int32{
		"EMPTY":      0,
		"HEALTHY":    1,
		"HIBERNATED": 2,
		"UNKNOWN":    3,
	}
)

Enum value maps for Condition.

View Source
var Agent_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Agent",
	HandlerType: (*AgentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GardenerShoots",
			Handler:    _Agent_GardenerShoots_Handler,
		},
		{
			MethodName: "GCPClusters",
			Handler:    _Agent_GCPClusters_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/agent/proto/route.proto",
}

Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_agent_proto_route_proto protoreflect.FileDescriptor

Functions

func RegisterAgentServer

func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)

Types

type AgentClient

type AgentClient interface {
	GardenerShoots(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ShootList, error)
	GCPClusters(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ClusterList, error)
}

AgentClient is the client API for Agent service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAgentClient

func NewAgentClient(cc grpc.ClientConnInterface) AgentClient

type AgentServer

type AgentServer interface {
	GardenerShoots(context.Context, *Empty) (*ShootList, error)
	GCPClusters(context.Context, *Empty) (*ClusterList, error)
	// contains filtered or unexported methods
}

AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility

type ClusterList

type ClusterList struct {
	// contains filtered or unexported fields
}

func (*ClusterList) Descriptor deprecated

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

Deprecated: Use ClusterList.ProtoReflect.Descriptor instead.

func (*ClusterList) ProtoMessage

func (*ClusterList) ProtoMessage()

func (*ClusterList) ProtoReflect

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

func (*ClusterList) Reset

func (x *ClusterList) Reset()

func (*ClusterList) String

func (x *ClusterList) String() string

type Condition

type Condition int32
const (
	Condition_EMPTY      Condition = 0
	Condition_HEALTHY    Condition = 1
	Condition_HIBERNATED Condition = 2
	Condition_UNKNOWN    Condition = 3
)

func (Condition) Descriptor

func (Condition) Descriptor() protoreflect.EnumDescriptor

func (Condition) Enum

func (x Condition) Enum() *Condition

func (Condition) EnumDescriptor deprecated

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

Deprecated: Use Condition.Descriptor instead.

func (Condition) Number

func (x Condition) Number() protoreflect.EnumNumber

func (Condition) String

func (x Condition) String() string

func (Condition) Type

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Shoot

type Shoot struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace   string            `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels      map[string]string `` /* 153-byte string literal not displayed */
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	Condition   Condition         `protobuf:"varint,5,opt,name=condition,proto3,enum=Condition" json:"condition,omitempty"`
	// contains filtered or unexported fields
}

func (*Shoot) Descriptor deprecated

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

Deprecated: Use Shoot.ProtoReflect.Descriptor instead.

func (*Shoot) GetAnnotations

func (x *Shoot) GetAnnotations() map[string]string

func (*Shoot) GetCondition

func (x *Shoot) GetCondition() Condition

func (*Shoot) GetLabels

func (x *Shoot) GetLabels() map[string]string

func (*Shoot) GetName

func (x *Shoot) GetName() string

func (*Shoot) GetNamespace

func (x *Shoot) GetNamespace() string

func (*Shoot) ProtoMessage

func (*Shoot) ProtoMessage()

func (*Shoot) ProtoReflect

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

func (*Shoot) Reset

func (x *Shoot) Reset()

func (*Shoot) String

func (x *Shoot) String() string

type ShootList

type ShootList struct {
	Shoots []*Shoot `protobuf:"bytes,1,rep,name=shoots,proto3" json:"shoots,omitempty"`
	// contains filtered or unexported fields
}

func (*ShootList) Descriptor deprecated

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

Deprecated: Use ShootList.ProtoReflect.Descriptor instead.

func (*ShootList) GetShoots

func (x *ShootList) GetShoots() []*Shoot

func (*ShootList) ProtoMessage

func (*ShootList) ProtoMessage()

func (*ShootList) ProtoReflect

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

func (*ShootList) Reset

func (x *ShootList) Reset()

func (*ShootList) String

func (x *ShootList) String() string

type UnimplementedAgentServer

type UnimplementedAgentServer struct {
}

UnimplementedAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentServer) GCPClusters

func (UnimplementedAgentServer) GardenerShoots

type UnsafeAgentServer

type UnsafeAgentServer interface {
	// contains filtered or unexported methods
}

UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.

Jump to

Keyboard shortcuts

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