Documentation ¶
Index ¶
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentServer
- type ClusterList
- type Condition
- type Empty
- type Shoot
- func (*Shoot) Descriptor() ([]byte, []int)deprecated
- func (x *Shoot) GetAnnotations() map[string]string
- func (x *Shoot) GetCondition() Condition
- func (x *Shoot) GetLabels() map[string]string
- func (x *Shoot) GetName() string
- func (x *Shoot) GetNamespace() string
- func (*Shoot) ProtoMessage()
- func (x *Shoot) ProtoReflect() protoreflect.Message
- func (x *Shoot) Reset()
- func (x *Shoot) String() string
- type ShootList
- type UnimplementedAgentServer
- type UnsafeAgentServer
Constants ¶
This section is empty.
Variables ¶
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.
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)
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
func (Condition) Descriptor ¶
func (Condition) Descriptor() protoreflect.EnumDescriptor
func (Condition) EnumDescriptor
deprecated
func (Condition) Number ¶
func (x Condition) Number() protoreflect.EnumNumber
func (Condition) Type ¶
func (Condition) Type() protoreflect.EnumType
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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) GetAnnotations ¶
func (*Shoot) GetCondition ¶
func (*Shoot) GetNamespace ¶
func (*Shoot) ProtoMessage ¶
func (*Shoot) ProtoMessage()
func (*Shoot) ProtoReflect ¶
func (x *Shoot) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*ShootList) ProtoMessage()
func (*ShootList) ProtoReflect ¶
func (x *ShootList) ProtoReflect() protoreflect.Message
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServer) GCPClusters ¶
func (UnimplementedAgentServer) GCPClusters(context.Context, *Empty) (*ClusterList, error)
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.