adminv2connect

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// FilesystemServiceCreateProcedure is the fully-qualified name of the FilesystemService's Create
	// RPC.
	FilesystemServiceCreateProcedure = "/metalstack.admin.v2.FilesystemService/Create"
	// FilesystemServiceUpdateProcedure is the fully-qualified name of the FilesystemService's Update
	// RPC.
	FilesystemServiceUpdateProcedure = "/metalstack.admin.v2.FilesystemService/Update"
	// FilesystemServiceDeleteProcedure is the fully-qualified name of the FilesystemService's Delete
	// RPC.
	FilesystemServiceDeleteProcedure = "/metalstack.admin.v2.FilesystemService/Delete"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ImageServiceCreateProcedure is the fully-qualified name of the ImageService's Create RPC.
	ImageServiceCreateProcedure = "/metalstack.admin.v2.ImageService/Create"
	// ImageServiceUpdateProcedure is the fully-qualified name of the ImageService's Update RPC.
	ImageServiceUpdateProcedure = "/metalstack.admin.v2.ImageService/Update"
	// ImageServiceDeleteProcedure is the fully-qualified name of the ImageService's Delete RPC.
	ImageServiceDeleteProcedure = "/metalstack.admin.v2.ImageService/Delete"
	// ImageServiceUsageProcedure is the fully-qualified name of the ImageService's Usage RPC.
	ImageServiceUsageProcedure = "/metalstack.admin.v2.ImageService/Usage"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// IPServiceListProcedure is the fully-qualified name of the IPService's List RPC.
	IPServiceListProcedure = "/metalstack.admin.v2.IPService/List"
	// IPServiceIssuesProcedure is the fully-qualified name of the IPService's Issues RPC.
	IPServiceIssuesProcedure = "/metalstack.admin.v2.IPService/Issues"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// MachineServiceGetProcedure is the fully-qualified name of the MachineService's Get RPC.
	MachineServiceGetProcedure = "/metalstack.admin.v2.MachineService/Get"
	// MachineServiceListProcedure is the fully-qualified name of the MachineService's List RPC.
	MachineServiceListProcedure = "/metalstack.admin.v2.MachineService/List"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// NetworkServiceGetProcedure is the fully-qualified name of the NetworkService's Get RPC.
	NetworkServiceGetProcedure = "/metalstack.admin.v2.NetworkService/Get"
	// NetworkServiceCreateProcedure is the fully-qualified name of the NetworkService's Create RPC.
	NetworkServiceCreateProcedure = "/metalstack.admin.v2.NetworkService/Create"
	// NetworkServiceUpdateProcedure is the fully-qualified name of the NetworkService's Update RPC.
	NetworkServiceUpdateProcedure = "/metalstack.admin.v2.NetworkService/Update"
	// NetworkServiceDeleteProcedure is the fully-qualified name of the NetworkService's Delete RPC.
	NetworkServiceDeleteProcedure = "/metalstack.admin.v2.NetworkService/Delete"
	// NetworkServiceListProcedure is the fully-qualified name of the NetworkService's List RPC.
	NetworkServiceListProcedure = "/metalstack.admin.v2.NetworkService/List"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// PartitionServiceCreateProcedure is the fully-qualified name of the PartitionService's Create RPC.
	PartitionServiceCreateProcedure = "/metalstack.admin.v2.PartitionService/Create"
	// PartitionServiceUpdateProcedure is the fully-qualified name of the PartitionService's Update RPC.
	PartitionServiceUpdateProcedure = "/metalstack.admin.v2.PartitionService/Update"
	// PartitionServiceDeleteProcedure is the fully-qualified name of the PartitionService's Delete RPC.
	PartitionServiceDeleteProcedure = "/metalstack.admin.v2.PartitionService/Delete"
	// PartitionServiceCapacityProcedure is the fully-qualified name of the PartitionService's Capacity
	// RPC.
	PartitionServiceCapacityProcedure = "/metalstack.admin.v2.PartitionService/Capacity"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SizeServiceCreateProcedure is the fully-qualified name of the SizeService's Create RPC.
	SizeServiceCreateProcedure = "/metalstack.admin.v2.SizeService/Create"
	// SizeServiceUpdateProcedure is the fully-qualified name of the SizeService's Update RPC.
	SizeServiceUpdateProcedure = "/metalstack.admin.v2.SizeService/Update"
	// SizeServiceDeleteProcedure is the fully-qualified name of the SizeService's Delete RPC.
	SizeServiceDeleteProcedure = "/metalstack.admin.v2.SizeService/Delete"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// TenantServiceCreateProcedure is the fully-qualified name of the TenantService's Create RPC.
	TenantServiceCreateProcedure = "/metalstack.admin.v2.TenantService/Create"
	// TenantServiceListProcedure is the fully-qualified name of the TenantService's List RPC.
	TenantServiceListProcedure = "/metalstack.admin.v2.TenantService/List"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// TokenServiceListProcedure is the fully-qualified name of the TokenService's List RPC.
	TokenServiceListProcedure = "/metalstack.admin.v2.TokenService/List"
	// TokenServiceRevokeProcedure is the fully-qualified name of the TokenService's Revoke RPC.
	TokenServiceRevokeProcedure = "/metalstack.admin.v2.TokenService/Revoke"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// FilesystemServiceName is the fully-qualified name of the FilesystemService service.
	FilesystemServiceName = "metalstack.admin.v2.FilesystemService"
)
View Source
const (
	// IPServiceName is the fully-qualified name of the IPService service.
	IPServiceName = "metalstack.admin.v2.IPService"
)
View Source
const (
	// ImageServiceName is the fully-qualified name of the ImageService service.
	ImageServiceName = "metalstack.admin.v2.ImageService"
)
View Source
const (
	// MachineServiceName is the fully-qualified name of the MachineService service.
	MachineServiceName = "metalstack.admin.v2.MachineService"
)
View Source
const (
	// NetworkServiceName is the fully-qualified name of the NetworkService service.
	NetworkServiceName = "metalstack.admin.v2.NetworkService"
)
View Source
const (
	// PartitionServiceName is the fully-qualified name of the PartitionService service.
	PartitionServiceName = "metalstack.admin.v2.PartitionService"
)
View Source
const (
	// SizeServiceName is the fully-qualified name of the SizeService service.
	SizeServiceName = "metalstack.admin.v2.SizeService"
)
View Source
const (
	// TenantServiceName is the fully-qualified name of the TenantService service.
	TenantServiceName = "metalstack.admin.v2.TenantService"
)
View Source
const (
	// TokenServiceName is the fully-qualified name of the TokenService service.
	TokenServiceName = "metalstack.admin.v2.TokenService"
)

Variables

This section is empty.

Functions

func NewFilesystemServiceHandler

func NewFilesystemServiceHandler(svc FilesystemServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewFilesystemServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewIPServiceHandler

func NewIPServiceHandler(svc IPServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewIPServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewImageServiceHandler

func NewImageServiceHandler(svc ImageServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewImageServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewMachineServiceHandler added in v0.0.12

func NewMachineServiceHandler(svc MachineServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMachineServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewNetworkServiceHandler

func NewNetworkServiceHandler(svc NetworkServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewNetworkServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewPartitionServiceHandler

func NewPartitionServiceHandler(svc PartitionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewPartitionServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewSizeServiceHandler added in v0.0.2

func NewSizeServiceHandler(svc SizeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSizeServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewTenantServiceHandler

func NewTenantServiceHandler(svc TenantServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewTenantServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewTokenServiceHandler

func NewTokenServiceHandler(svc TokenServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewTokenServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type FilesystemServiceClient

FilesystemServiceClient is a client for the metalstack.admin.v2.FilesystemService service.

func NewFilesystemServiceClient

func NewFilesystemServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) FilesystemServiceClient

NewFilesystemServiceClient constructs a client for the metalstack.admin.v2.FilesystemService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type FilesystemServiceHandler

FilesystemServiceHandler is an implementation of the metalstack.admin.v2.FilesystemService service.

type IPServiceClient

type IPServiceClient interface {
	// List all ips
	List(context.Context, *connect.Request[v2.IPServiceListRequest]) (*connect.Response[v2.IPServiceListResponse], error)
	// Show issues with ips
	Issues(context.Context, *connect.Request[v2.IPServiceIssuesRequest]) (*connect.Response[v2.IPServiceIssuesResponse], error)
}

IPServiceClient is a client for the metalstack.admin.v2.IPService service.

func NewIPServiceClient

func NewIPServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IPServiceClient

NewIPServiceClient constructs a client for the metalstack.admin.v2.IPService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type IPServiceHandler

type IPServiceHandler interface {
	// List all ips
	List(context.Context, *connect.Request[v2.IPServiceListRequest]) (*connect.Response[v2.IPServiceListResponse], error)
	// Show issues with ips
	Issues(context.Context, *connect.Request[v2.IPServiceIssuesRequest]) (*connect.Response[v2.IPServiceIssuesResponse], error)
}

IPServiceHandler is an implementation of the metalstack.admin.v2.IPService service.

type ImageServiceClient

ImageServiceClient is a client for the metalstack.admin.v2.ImageService service.

func NewImageServiceClient

func NewImageServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ImageServiceClient

NewImageServiceClient constructs a client for the metalstack.admin.v2.ImageService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ImageServiceHandler

ImageServiceHandler is an implementation of the metalstack.admin.v2.ImageService service.

type MachineServiceClient added in v0.0.12

MachineServiceClient is a client for the metalstack.admin.v2.MachineService service.

func NewMachineServiceClient added in v0.0.12

func NewMachineServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MachineServiceClient

NewMachineServiceClient constructs a client for the metalstack.admin.v2.MachineService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type MachineServiceHandler added in v0.0.12

MachineServiceHandler is an implementation of the metalstack.admin.v2.MachineService service.

type NetworkServiceClient

NetworkServiceClient is a client for the metalstack.admin.v2.NetworkService service.

func NewNetworkServiceClient

func NewNetworkServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) NetworkServiceClient

NewNetworkServiceClient constructs a client for the metalstack.admin.v2.NetworkService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type NetworkServiceHandler

NetworkServiceHandler is an implementation of the metalstack.admin.v2.NetworkService service.

type PartitionServiceClient

PartitionServiceClient is a client for the metalstack.admin.v2.PartitionService service.

func NewPartitionServiceClient

func NewPartitionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PartitionServiceClient

NewPartitionServiceClient constructs a client for the metalstack.admin.v2.PartitionService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type PartitionServiceHandler

PartitionServiceHandler is an implementation of the metalstack.admin.v2.PartitionService service.

type SizeServiceClient added in v0.0.2

SizeServiceClient is a client for the metalstack.admin.v2.SizeService service.

func NewSizeServiceClient added in v0.0.2

func NewSizeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SizeServiceClient

NewSizeServiceClient constructs a client for the metalstack.admin.v2.SizeService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type SizeServiceHandler added in v0.0.2

SizeServiceHandler is an implementation of the metalstack.admin.v2.SizeService service.

type TenantServiceClient

TenantServiceClient is a client for the metalstack.admin.v2.TenantService service.

func NewTenantServiceClient

func NewTenantServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TenantServiceClient

NewTenantServiceClient constructs a client for the metalstack.admin.v2.TenantService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type TenantServiceHandler

TenantServiceHandler is an implementation of the metalstack.admin.v2.TenantService service.

type TokenServiceClient

TokenServiceClient is a client for the metalstack.admin.v2.TokenService service.

func NewTokenServiceClient

func NewTokenServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TokenServiceClient

NewTokenServiceClient constructs a client for the metalstack.admin.v2.TokenService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type TokenServiceHandler

TokenServiceHandler is an implementation of the metalstack.admin.v2.TokenService service.

type UnimplementedFilesystemServiceHandler

type UnimplementedFilesystemServiceHandler struct{}

UnimplementedFilesystemServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedIPServiceHandler

type UnimplementedIPServiceHandler struct{}

UnimplementedIPServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedImageServiceHandler

type UnimplementedImageServiceHandler struct{}

UnimplementedImageServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedMachineServiceHandler added in v0.0.12

type UnimplementedMachineServiceHandler struct{}

UnimplementedMachineServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedMachineServiceHandler) Get added in v0.0.12

type UnimplementedNetworkServiceHandler

type UnimplementedNetworkServiceHandler struct{}

UnimplementedNetworkServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedPartitionServiceHandler

type UnimplementedPartitionServiceHandler struct{}

UnimplementedPartitionServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSizeServiceHandler added in v0.0.2

type UnimplementedSizeServiceHandler struct{}

UnimplementedSizeServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedTenantServiceHandler

type UnimplementedTenantServiceHandler struct{}

UnimplementedTenantServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedTokenServiceHandler

type UnimplementedTokenServiceHandler struct{}

UnimplementedTokenServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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