Documentation ¶
Index ¶
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentServer
- type ClusterList
- type Condition
- type Empty
- type GardenerResponse
- func (*GardenerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GardenerResponse) GetGeneralError() string
- func (x *GardenerResponse) GetShootList() map[string]*ShootList
- func (*GardenerResponse) ProtoMessage()
- func (x *GardenerResponse) ProtoReflect() protoreflect.Message
- func (x *GardenerResponse) Reset()
- func (x *GardenerResponse) String() string
- type Shoot
- func (*Shoot) Descriptor() ([]byte, []int)deprecated
- func (x *Shoot) GetAnnotations() map[string]string
- func (x *Shoot) GetCondition() Condition
- func (x *Shoot) GetCreationTimestamp() *timestamppb.Timestamp
- func (x *Shoot) GetLabels() map[string]string
- func (x *Shoot) GetLastTransitionTime() *timestamppb.Timestamp
- 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
- func (*ShootList) Descriptor() ([]byte, []int)deprecated
- func (x *ShootList) GetError() string
- func (x *ShootList) GetShoots() []*Shoot
- func (x *ShootList) GetTime() *timestamppb.Timestamp
- func (*ShootList) ProtoMessage()
- func (x *ShootList) ProtoReflect() protoreflect.Message
- func (x *ShootList) Reset()
- func (x *ShootList) String() string
- 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) (*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
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 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) GetAnnotations ¶
func (*Shoot) GetCondition ¶
func (*Shoot) GetCreationTimestamp ¶ added in v0.7.0
func (x *Shoot) GetCreationTimestamp() *timestamppb.Timestamp
func (*Shoot) GetLastTransitionTime ¶ added in v0.7.0
func (x *Shoot) GetLastTransitionTime() *timestamppb.Timestamp
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"` 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) 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
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 ¶
func (UnimplementedAgentServer) GardenerShoots(context.Context, *Empty) (*GardenerResponse, error)
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.