api

package
v0.0.0-...-8fd779a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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

View Source
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)

View Source
var File_plugin_pkg_services_agentpools_api_agentpools_proto protoreflect.FileDescriptor
View Source
var File_plugin_pkg_services_agentpools_api_instances_proto protoreflect.FileDescriptor
View Source
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

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

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) Delete

func (UnimplementedAgentPoolsServer) Get

func (UnimplementedAgentPoolsServer) List

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) Delete

func (UnimplementedInstancesServer) Get

func (UnimplementedInstancesServer) List

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.

Directories

Path Synopsis
features
arc
gpu

Jump to

Keyboard shortcuts

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