Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAgentPoolsServer(s grpc.ServiceRegistrar, srv AgentPoolsServer)
- func RegisterInstancesServer(s grpc.ServiceRegistrar, srv InstancesServer)
- type AgentPoolsClient
- type AgentPoolsServer
- type InstanceRestartRequest
- func (x *InstanceRestartRequest) ClearId()
- func (x *InstanceRestartRequest) GetId() string
- func (x *InstanceRestartRequest) HasId() bool
- func (*InstanceRestartRequest) ProtoMessage()
- func (x *InstanceRestartRequest) ProtoReflect() protoreflect.Message
- func (x *InstanceRestartRequest) Reset()
- func (x *InstanceRestartRequest) SetId(v string)
- func (x *InstanceRestartRequest) String() string
- type InstanceRestartRequest_builder
- type InstanceRestartResponse
- type InstanceRestartResponse_builder
- type InstancesClient
- type InstancesServer
- type UnimplementedAgentPoolsServer
- func (UnimplementedAgentPoolsServer) CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
- func (UnimplementedAgentPoolsServer) Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
- func (UnimplementedAgentPoolsServer) Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
- func (UnimplementedAgentPoolsServer) List(context.Context, *api.ListRequest) (*api.ListResponse, error)
- type UnimplementedInstancesServer
- func (UnimplementedInstancesServer) CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
- func (UnimplementedInstancesServer) Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
- func (UnimplementedInstancesServer) Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
- func (UnimplementedInstancesServer) List(context.Context, *api.ListRequest) (*api.ListResponse, error)
- func (UnimplementedInstancesServer) Restart(context.Context, *InstanceRestartRequest) (*InstanceRestartResponse, error)
- type UnsafeAgentPoolsServer
- type UnsafeInstancesServer
Constants ¶
const ( AgentPools_CreateOrUpdate_FullMethodName = "/agentpools.AgentPools/CreateOrUpdate" AgentPools_List_FullMethodName = "/agentpools.AgentPools/List" AgentPools_Get_FullMethodName = "/agentpools.AgentPools/Get" AgentPools_Delete_FullMethodName = "/agentpools.AgentPools/Delete" )
const ( Instances_CreateOrUpdate_FullMethodName = "/agentpools.Instances/CreateOrUpdate" Instances_List_FullMethodName = "/agentpools.Instances/List" Instances_Get_FullMethodName = "/agentpools.Instances/Get" Instances_Delete_FullMethodName = "/agentpools.Instances/Delete" Instances_Restart_FullMethodName = "/agentpools.Instances/Restart" )
Variables ¶
var AgentPools_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agentpools.AgentPools", HandlerType: (*AgentPoolsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrUpdate", Handler: _AgentPools_CreateOrUpdate_Handler, }, { MethodName: "List", Handler: _AgentPools_List_Handler, }, { MethodName: "Get", Handler: _AgentPools_Get_Handler, }, { MethodName: "Delete", Handler: _AgentPools_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/pkg/services/agentpools/api/agentpools.proto", }
AgentPools_ServiceDesc is the grpc.ServiceDesc for AgentPools service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_plugin_pkg_services_agentpools_api_agentpools_proto protoreflect.FileDescriptor
var File_plugin_pkg_services_agentpools_api_instances_proto protoreflect.FileDescriptor
var Instances_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agentpools.Instances", HandlerType: (*InstancesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrUpdate", Handler: _Instances_CreateOrUpdate_Handler, }, { MethodName: "List", Handler: _Instances_List_Handler, }, { MethodName: "Get", Handler: _Instances_Get_Handler, }, { MethodName: "Delete", Handler: _Instances_Delete_Handler, }, { MethodName: "Restart", Handler: _Instances_Restart_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/pkg/services/agentpools/api/instances.proto", }
Instances_ServiceDesc is the grpc.ServiceDesc for Instances service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAgentPoolsServer ¶
func RegisterAgentPoolsServer(s grpc.ServiceRegistrar, srv AgentPoolsServer)
func RegisterInstancesServer ¶
func RegisterInstancesServer(s grpc.ServiceRegistrar, srv InstancesServer)
Types ¶
type AgentPoolsClient ¶
type AgentPoolsClient interface {
CreateOrUpdate(ctx context.Context, in *api.CreateOrUpdateRequest, opts ...grpc.CallOption) (*api.CreateOrUpdateResponse, error)
List(ctx context.Context, in *api.ListRequest, opts ...grpc.CallOption) (*api.ListResponse, error)
Get(ctx context.Context, in *api.GetRequest, opts ...grpc.CallOption) (*api.GetResponse, error)
Delete(ctx context.Context, in *api.DeleteRequest, opts ...grpc.CallOption) (*api.DeleteResponse, error)
}
AgentPoolsClient is the client API for AgentPools 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 NewAgentPoolsClient ¶
func NewAgentPoolsClient(cc grpc.ClientConnInterface) AgentPoolsClient
type AgentPoolsServer ¶
type AgentPoolsServer interface {
CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
List(context.Context, *api.ListRequest) (*api.ListResponse, error)
Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
// contains filtered or unexported methods
}
AgentPoolsServer is the server API for AgentPools service. All implementations must embed UnimplementedAgentPoolsServer for forward compatibility.
type InstanceRestartRequest ¶
type InstanceRestartRequest struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*InstanceRestartRequest) ClearId ¶
func (x *InstanceRestartRequest) ClearId()
func (*InstanceRestartRequest) GetId ¶
func (x *InstanceRestartRequest) GetId() string
func (*InstanceRestartRequest) HasId ¶
func (x *InstanceRestartRequest) HasId() bool
func (*InstanceRestartRequest) ProtoMessage ¶
func (*InstanceRestartRequest) ProtoMessage()
func (*InstanceRestartRequest) ProtoReflect ¶
func (x *InstanceRestartRequest) ProtoReflect() protoreflect.Message
func (*InstanceRestartRequest) Reset ¶
func (x *InstanceRestartRequest) Reset()
func (*InstanceRestartRequest) SetId ¶
func (x *InstanceRestartRequest) SetId(v string)
func (*InstanceRestartRequest) String ¶
func (x *InstanceRestartRequest) String() string
type InstanceRestartRequest_builder ¶
type InstanceRestartRequest_builder struct {
Id *string
// contains filtered or unexported fields
}
func (InstanceRestartRequest_builder) Build ¶
func (b0 InstanceRestartRequest_builder) Build() *InstanceRestartRequest
type InstanceRestartResponse ¶
type InstanceRestartResponse struct {
// contains filtered or unexported fields
}
func (*InstanceRestartResponse) ProtoMessage ¶
func (*InstanceRestartResponse) ProtoMessage()
func (*InstanceRestartResponse) ProtoReflect ¶
func (x *InstanceRestartResponse) ProtoReflect() protoreflect.Message
func (*InstanceRestartResponse) Reset ¶
func (x *InstanceRestartResponse) Reset()
func (*InstanceRestartResponse) String ¶
func (x *InstanceRestartResponse) String() string
type InstanceRestartResponse_builder ¶
type InstanceRestartResponse_builder struct {
// contains filtered or unexported fields
}
func (InstanceRestartResponse_builder) Build ¶
func (b0 InstanceRestartResponse_builder) Build() *InstanceRestartResponse
type InstancesClient ¶
type InstancesClient interface {
CreateOrUpdate(ctx context.Context, in *api.CreateOrUpdateRequest, opts ...grpc.CallOption) (*api.CreateOrUpdateResponse, error)
List(ctx context.Context, in *api.ListRequest, opts ...grpc.CallOption) (*api.ListResponse, error)
Get(ctx context.Context, in *api.GetRequest, opts ...grpc.CallOption) (*api.GetResponse, error)
Delete(ctx context.Context, in *api.DeleteRequest, opts ...grpc.CallOption) (*api.DeleteResponse, error)
Restart(ctx context.Context, in *InstanceRestartRequest, opts ...grpc.CallOption) (*InstanceRestartResponse, error)
}
InstancesClient is the client API for Instances 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 NewInstancesClient ¶
func NewInstancesClient(cc grpc.ClientConnInterface) InstancesClient
type InstancesServer ¶
type InstancesServer interface {
CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
List(context.Context, *api.ListRequest) (*api.ListResponse, error)
Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
Restart(context.Context, *InstanceRestartRequest) (*InstanceRestartResponse, error)
// contains filtered or unexported methods
}
InstancesServer is the server API for Instances service. All implementations must embed UnimplementedInstancesServer for forward compatibility.
type UnimplementedAgentPoolsServer ¶
type UnimplementedAgentPoolsServer struct{}
UnimplementedAgentPoolsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAgentPoolsServer) CreateOrUpdate ¶
func (UnimplementedAgentPoolsServer) CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
func (UnimplementedAgentPoolsServer) Delete ¶
func (UnimplementedAgentPoolsServer) Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
func (UnimplementedAgentPoolsServer) Get ¶
func (UnimplementedAgentPoolsServer) Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
func (UnimplementedAgentPoolsServer) List ¶
func (UnimplementedAgentPoolsServer) List(context.Context, *api.ListRequest) (*api.ListResponse, error)
type UnimplementedInstancesServer ¶
type UnimplementedInstancesServer struct{}
UnimplementedInstancesServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedInstancesServer) CreateOrUpdate ¶
func (UnimplementedInstancesServer) CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
func (UnimplementedInstancesServer) Delete ¶
func (UnimplementedInstancesServer) Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
func (UnimplementedInstancesServer) Get ¶
func (UnimplementedInstancesServer) Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
func (UnimplementedInstancesServer) List ¶
func (UnimplementedInstancesServer) List(context.Context, *api.ListRequest) (*api.ListResponse, error)
func (UnimplementedInstancesServer) Restart ¶
func (UnimplementedInstancesServer) Restart(context.Context, *InstanceRestartRequest) (*InstanceRestartResponse, error)
type UnsafeAgentPoolsServer ¶
type UnsafeAgentPoolsServer interface {
// contains filtered or unexported methods
}
UnsafeAgentPoolsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentPoolsServer will result in compilation errors.
type UnsafeInstancesServer ¶
type UnsafeInstancesServer interface {
// contains filtered or unexported methods
}
UnsafeInstancesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstancesServer will result in compilation errors.