cluster_agent

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 9 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) (*GardenerResponse, 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) (*GardenerResponse, 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 GardenerResponse added in v0.5.0

type GardenerResponse struct {
	ShootList    map[string]*ShootList `` /* 159-byte string literal not displayed */
	GeneralError string                `protobuf:"bytes,2,opt,name=generalError,proto3" json:"generalError,omitempty"`
	// contains filtered or unexported fields
}

func (*GardenerResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use GardenerResponse.ProtoReflect.Descriptor instead.

func (*GardenerResponse) GetGeneralError added in v0.5.0

func (x *GardenerResponse) GetGeneralError() string

func (*GardenerResponse) GetShootList added in v0.5.0

func (x *GardenerResponse) GetShootList() map[string]*ShootList

func (*GardenerResponse) ProtoMessage added in v0.5.0

func (*GardenerResponse) ProtoMessage()

func (*GardenerResponse) ProtoReflect added in v0.5.0

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

func (*GardenerResponse) Reset added in v0.5.0

func (x *GardenerResponse) Reset()

func (*GardenerResponse) String added in v0.5.0

func (x *GardenerResponse) 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"`
	LastTransitionTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"`
	CreationTimestamp  *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=creationTimestamp,proto3" json:"creationTimestamp,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) GetCreationTimestamp added in v0.7.0

func (x *Shoot) GetCreationTimestamp() *timestamppb.Timestamp

func (*Shoot) GetLabels

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

func (*Shoot) GetLastTransitionTime added in v0.7.0

func (x *Shoot) GetLastTransitionTime() *timestamppb.Timestamp

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"`
	Error  string                 `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Time   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*ShootList) Descriptor deprecated

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

Deprecated: Use ShootList.ProtoReflect.Descriptor instead.

func (*ShootList) GetError added in v0.5.0

func (x *ShootList) GetError() string

func (*ShootList) GetShoots

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

func (*ShootList) GetTime added in v0.5.0

func (x *ShootList) GetTime() *timestamppb.Timestamp

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