Documentation
¶
Index ¶
- Constants
- func NewFilesystemServiceHandler(svc FilesystemServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewIPServiceHandler(svc IPServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewImageServiceHandler(svc ImageServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewMachineServiceHandler(svc MachineServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewNetworkServiceHandler(svc NetworkServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewPartitionServiceHandler(svc PartitionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewSizeServiceHandler(svc SizeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewTenantServiceHandler(svc TenantServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewTokenServiceHandler(svc TokenServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type FilesystemServiceClient
- type FilesystemServiceHandler
- type IPServiceClient
- type IPServiceHandler
- type ImageServiceClient
- type ImageServiceHandler
- type MachineServiceClient
- type MachineServiceHandler
- type NetworkServiceClient
- type NetworkServiceHandler
- type PartitionServiceClient
- type PartitionServiceHandler
- type SizeServiceClient
- type SizeServiceHandler
- type TenantServiceClient
- type TenantServiceHandler
- type TokenServiceClient
- type TokenServiceHandler
- type UnimplementedFilesystemServiceHandler
- func (UnimplementedFilesystemServiceHandler) Create(context.Context, *connect.Request[v2.FilesystemServiceCreateRequest]) (*connect.Response[v2.FilesystemServiceCreateResponse], error)
- func (UnimplementedFilesystemServiceHandler) Delete(context.Context, *connect.Request[v2.FilesystemServiceDeleteRequest]) (*connect.Response[v2.FilesystemServiceDeleteResponse], error)
- func (UnimplementedFilesystemServiceHandler) Update(context.Context, *connect.Request[v2.FilesystemServiceUpdateRequest]) (*connect.Response[v2.FilesystemServiceUpdateResponse], error)
- type UnimplementedIPServiceHandler
- func (UnimplementedIPServiceHandler) Issues(context.Context, *connect.Request[v2.IPServiceIssuesRequest]) (*connect.Response[v2.IPServiceIssuesResponse], error)
- func (UnimplementedIPServiceHandler) List(context.Context, *connect.Request[v2.IPServiceListRequest]) (*connect.Response[v2.IPServiceListResponse], error)
- type UnimplementedImageServiceHandler
- func (UnimplementedImageServiceHandler) Create(context.Context, *connect.Request[v2.ImageServiceCreateRequest]) (*connect.Response[v2.ImageServiceCreateResponse], error)
- func (UnimplementedImageServiceHandler) Delete(context.Context, *connect.Request[v2.ImageServiceDeleteRequest]) (*connect.Response[v2.ImageServiceDeleteResponse], error)
- func (UnimplementedImageServiceHandler) Update(context.Context, *connect.Request[v2.ImageServiceUpdateRequest]) (*connect.Response[v2.ImageServiceUpdateResponse], error)
- func (UnimplementedImageServiceHandler) Usage(context.Context, *connect.Request[v2.ImageServiceUsageRequest]) (*connect.Response[v2.ImageServiceUsageResponse], error)
- type UnimplementedMachineServiceHandler
- func (UnimplementedMachineServiceHandler) Get(context.Context, *connect.Request[v2.MachineServiceGetRequest]) (*connect.Response[v2.MachineServiceGetResponse], error)
- func (UnimplementedMachineServiceHandler) List(context.Context, *connect.Request[v2.MachineServiceListRequest]) (*connect.Response[v2.MachineServiceListResponse], error)
- type UnimplementedNetworkServiceHandler
- func (UnimplementedNetworkServiceHandler) Create(context.Context, *connect.Request[v2.NetworkServiceCreateRequest]) (*connect.Response[v2.NetworkServiceCreateResponse], error)
- func (UnimplementedNetworkServiceHandler) Delete(context.Context, *connect.Request[v2.NetworkServiceDeleteRequest]) (*connect.Response[v2.NetworkServiceDeleteResponse], error)
- func (UnimplementedNetworkServiceHandler) Get(context.Context, *connect.Request[v2.NetworkServiceGetRequest]) (*connect.Response[v2.NetworkServiceGetResponse], error)
- func (UnimplementedNetworkServiceHandler) List(context.Context, *connect.Request[v2.NetworkServiceListRequest]) (*connect.Response[v2.NetworkServiceListResponse], error)
- func (UnimplementedNetworkServiceHandler) Update(context.Context, *connect.Request[v2.NetworkServiceUpdateRequest]) (*connect.Response[v2.NetworkServiceUpdateResponse], error)
- type UnimplementedPartitionServiceHandler
- func (UnimplementedPartitionServiceHandler) Capacity(context.Context, *connect.Request[v2.PartitionServiceCapacityRequest]) (*connect.Response[v2.PartitionServiceCapacityResponse], error)
- func (UnimplementedPartitionServiceHandler) Create(context.Context, *connect.Request[v2.PartitionServiceCreateRequest]) (*connect.Response[v2.PartitionServiceCreateResponse], error)
- func (UnimplementedPartitionServiceHandler) Delete(context.Context, *connect.Request[v2.PartitionServiceDeleteRequest]) (*connect.Response[v2.PartitionServiceDeleteResponse], error)
- func (UnimplementedPartitionServiceHandler) Update(context.Context, *connect.Request[v2.PartitionServiceUpdateRequest]) (*connect.Response[v2.PartitionServiceUpdateResponse], error)
- type UnimplementedSizeServiceHandler
- func (UnimplementedSizeServiceHandler) Create(context.Context, *connect.Request[v2.SizeServiceCreateRequest]) (*connect.Response[v2.SizeServiceCreateResponse], error)
- func (UnimplementedSizeServiceHandler) Delete(context.Context, *connect.Request[v2.SizeServiceDeleteRequest]) (*connect.Response[v2.SizeServiceDeleteResponse], error)
- func (UnimplementedSizeServiceHandler) Update(context.Context, *connect.Request[v2.SizeServiceUpdateRequest]) (*connect.Response[v2.SizeServiceUpdateResponse], error)
- type UnimplementedTenantServiceHandler
- func (UnimplementedTenantServiceHandler) Create(context.Context, *connect.Request[v2.TenantServiceCreateRequest]) (*connect.Response[v2.TenantServiceCreateResponse], error)
- func (UnimplementedTenantServiceHandler) List(context.Context, *connect.Request[v2.TenantServiceListRequest]) (*connect.Response[v2.TenantServiceListResponse], error)
- type UnimplementedTokenServiceHandler
- func (UnimplementedTokenServiceHandler) List(context.Context, *connect.Request[v2.TokenServiceListRequest]) (*connect.Response[v2.TokenServiceListResponse], error)
- func (UnimplementedTokenServiceHandler) Revoke(context.Context, *connect.Request[v2.TokenServiceRevokeRequest]) (*connect.Response[v2.TokenServiceRevokeResponse], error)
Constants ¶
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.
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.
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.
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.
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.
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.
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.
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.
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.
const (
// FilesystemServiceName is the fully-qualified name of the FilesystemService service.
FilesystemServiceName = "metalstack.admin.v2.FilesystemService"
)
const (
// IPServiceName is the fully-qualified name of the IPService service.
IPServiceName = "metalstack.admin.v2.IPService"
)
const (
// ImageServiceName is the fully-qualified name of the ImageService service.
ImageServiceName = "metalstack.admin.v2.ImageService"
)
const (
// MachineServiceName is the fully-qualified name of the MachineService service.
MachineServiceName = "metalstack.admin.v2.MachineService"
)
const (
// NetworkServiceName is the fully-qualified name of the NetworkService service.
NetworkServiceName = "metalstack.admin.v2.NetworkService"
)
const (
// PartitionServiceName is the fully-qualified name of the PartitionService service.
PartitionServiceName = "metalstack.admin.v2.PartitionService"
)
const (
// SizeServiceName is the fully-qualified name of the SizeService service.
SizeServiceName = "metalstack.admin.v2.SizeService"
)
const (
// TenantServiceName is the fully-qualified name of the TenantService service.
TenantServiceName = "metalstack.admin.v2.TenantService"
)
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 ¶
type FilesystemServiceClient interface {
// Create a filesystem
Create(context.Context, *connect.Request[v2.FilesystemServiceCreateRequest]) (*connect.Response[v2.FilesystemServiceCreateResponse], error)
// Update a filesystem
Update(context.Context, *connect.Request[v2.FilesystemServiceUpdateRequest]) (*connect.Response[v2.FilesystemServiceUpdateResponse], error)
// Delete a filesystem
Delete(context.Context, *connect.Request[v2.FilesystemServiceDeleteRequest]) (*connect.Response[v2.FilesystemServiceDeleteResponse], error)
}
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 ¶
type FilesystemServiceHandler interface {
// Create a filesystem
Create(context.Context, *connect.Request[v2.FilesystemServiceCreateRequest]) (*connect.Response[v2.FilesystemServiceCreateResponse], error)
// Update a filesystem
Update(context.Context, *connect.Request[v2.FilesystemServiceUpdateRequest]) (*connect.Response[v2.FilesystemServiceUpdateResponse], error)
// Delete a filesystem
Delete(context.Context, *connect.Request[v2.FilesystemServiceDeleteRequest]) (*connect.Response[v2.FilesystemServiceDeleteResponse], error)
}
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 ¶
type ImageServiceClient interface {
// Create a image
Create(context.Context, *connect.Request[v2.ImageServiceCreateRequest]) (*connect.Response[v2.ImageServiceCreateResponse], error)
// Update a image
Update(context.Context, *connect.Request[v2.ImageServiceUpdateRequest]) (*connect.Response[v2.ImageServiceUpdateResponse], error)
// Delete a image
Delete(context.Context, *connect.Request[v2.ImageServiceDeleteRequest]) (*connect.Response[v2.ImageServiceDeleteResponse], error)
// Usage of images
Usage(context.Context, *connect.Request[v2.ImageServiceUsageRequest]) (*connect.Response[v2.ImageServiceUsageResponse], error)
}
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 ¶
type ImageServiceHandler interface {
// Create a image
Create(context.Context, *connect.Request[v2.ImageServiceCreateRequest]) (*connect.Response[v2.ImageServiceCreateResponse], error)
// Update a image
Update(context.Context, *connect.Request[v2.ImageServiceUpdateRequest]) (*connect.Response[v2.ImageServiceUpdateResponse], error)
// Delete a image
Delete(context.Context, *connect.Request[v2.ImageServiceDeleteRequest]) (*connect.Response[v2.ImageServiceDeleteResponse], error)
// Usage of images
Usage(context.Context, *connect.Request[v2.ImageServiceUsageRequest]) (*connect.Response[v2.ImageServiceUsageResponse], error)
}
ImageServiceHandler is an implementation of the metalstack.admin.v2.ImageService service.
type MachineServiceClient ¶ added in v0.0.12
type MachineServiceClient interface {
// Get a machine
Get(context.Context, *connect.Request[v2.MachineServiceGetRequest]) (*connect.Response[v2.MachineServiceGetResponse], error)
// List all machines
List(context.Context, *connect.Request[v2.MachineServiceListRequest]) (*connect.Response[v2.MachineServiceListResponse], error)
}
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
type MachineServiceHandler interface {
// Get a machine
Get(context.Context, *connect.Request[v2.MachineServiceGetRequest]) (*connect.Response[v2.MachineServiceGetResponse], error)
// List all machines
List(context.Context, *connect.Request[v2.MachineServiceListRequest]) (*connect.Response[v2.MachineServiceListResponse], error)
}
MachineServiceHandler is an implementation of the metalstack.admin.v2.MachineService service.
type NetworkServiceClient ¶
type NetworkServiceClient interface {
// Get a network
Get(context.Context, *connect.Request[v2.NetworkServiceGetRequest]) (*connect.Response[v2.NetworkServiceGetResponse], error)
// Create a network
Create(context.Context, *connect.Request[v2.NetworkServiceCreateRequest]) (*connect.Response[v2.NetworkServiceCreateResponse], error)
// Update a network
Update(context.Context, *connect.Request[v2.NetworkServiceUpdateRequest]) (*connect.Response[v2.NetworkServiceUpdateResponse], error)
// Delete a network
Delete(context.Context, *connect.Request[v2.NetworkServiceDeleteRequest]) (*connect.Response[v2.NetworkServiceDeleteResponse], error)
// List all networks
List(context.Context, *connect.Request[v2.NetworkServiceListRequest]) (*connect.Response[v2.NetworkServiceListResponse], error)
}
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 ¶
type NetworkServiceHandler interface {
// Get a network
Get(context.Context, *connect.Request[v2.NetworkServiceGetRequest]) (*connect.Response[v2.NetworkServiceGetResponse], error)
// Create a network
Create(context.Context, *connect.Request[v2.NetworkServiceCreateRequest]) (*connect.Response[v2.NetworkServiceCreateResponse], error)
// Update a network
Update(context.Context, *connect.Request[v2.NetworkServiceUpdateRequest]) (*connect.Response[v2.NetworkServiceUpdateResponse], error)
// Delete a network
Delete(context.Context, *connect.Request[v2.NetworkServiceDeleteRequest]) (*connect.Response[v2.NetworkServiceDeleteResponse], error)
// List all networks
List(context.Context, *connect.Request[v2.NetworkServiceListRequest]) (*connect.Response[v2.NetworkServiceListResponse], error)
}
NetworkServiceHandler is an implementation of the metalstack.admin.v2.NetworkService service.
type PartitionServiceClient ¶
type PartitionServiceClient interface {
// Create a partition
Create(context.Context, *connect.Request[v2.PartitionServiceCreateRequest]) (*connect.Response[v2.PartitionServiceCreateResponse], error)
// Update a partition
Update(context.Context, *connect.Request[v2.PartitionServiceUpdateRequest]) (*connect.Response[v2.PartitionServiceUpdateResponse], error)
// Delete a partition
Delete(context.Context, *connect.Request[v2.PartitionServiceDeleteRequest]) (*connect.Response[v2.PartitionServiceDeleteResponse], error)
// Capacity of a partitions
Capacity(context.Context, *connect.Request[v2.PartitionServiceCapacityRequest]) (*connect.Response[v2.PartitionServiceCapacityResponse], error)
}
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 ¶
type PartitionServiceHandler interface {
// Create a partition
Create(context.Context, *connect.Request[v2.PartitionServiceCreateRequest]) (*connect.Response[v2.PartitionServiceCreateResponse], error)
// Update a partition
Update(context.Context, *connect.Request[v2.PartitionServiceUpdateRequest]) (*connect.Response[v2.PartitionServiceUpdateResponse], error)
// Delete a partition
Delete(context.Context, *connect.Request[v2.PartitionServiceDeleteRequest]) (*connect.Response[v2.PartitionServiceDeleteResponse], error)
// Capacity of a partitions
Capacity(context.Context, *connect.Request[v2.PartitionServiceCapacityRequest]) (*connect.Response[v2.PartitionServiceCapacityResponse], error)
}
PartitionServiceHandler is an implementation of the metalstack.admin.v2.PartitionService service.
type SizeServiceClient ¶ added in v0.0.2
type SizeServiceClient interface {
// Create a size
Create(context.Context, *connect.Request[v2.SizeServiceCreateRequest]) (*connect.Response[v2.SizeServiceCreateResponse], error)
// Update a size
Update(context.Context, *connect.Request[v2.SizeServiceUpdateRequest]) (*connect.Response[v2.SizeServiceUpdateResponse], error)
// Delete a size
Delete(context.Context, *connect.Request[v2.SizeServiceDeleteRequest]) (*connect.Response[v2.SizeServiceDeleteResponse], error)
}
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
type SizeServiceHandler interface {
// Create a size
Create(context.Context, *connect.Request[v2.SizeServiceCreateRequest]) (*connect.Response[v2.SizeServiceCreateResponse], error)
// Update a size
Update(context.Context, *connect.Request[v2.SizeServiceUpdateRequest]) (*connect.Response[v2.SizeServiceUpdateResponse], error)
// Delete a size
Delete(context.Context, *connect.Request[v2.SizeServiceDeleteRequest]) (*connect.Response[v2.SizeServiceDeleteResponse], error)
}
SizeServiceHandler is an implementation of the metalstack.admin.v2.SizeService service.
type TenantServiceClient ¶
type TenantServiceClient interface {
// Create a tenant
Create(context.Context, *connect.Request[v2.TenantServiceCreateRequest]) (*connect.Response[v2.TenantServiceCreateResponse], error)
// List all tenants
List(context.Context, *connect.Request[v2.TenantServiceListRequest]) (*connect.Response[v2.TenantServiceListResponse], error)
}
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 ¶
type TenantServiceHandler interface {
// Create a tenant
Create(context.Context, *connect.Request[v2.TenantServiceCreateRequest]) (*connect.Response[v2.TenantServiceCreateResponse], error)
// List all tenants
List(context.Context, *connect.Request[v2.TenantServiceListRequest]) (*connect.Response[v2.TenantServiceListResponse], error)
}
TenantServiceHandler is an implementation of the metalstack.admin.v2.TenantService service.
type TokenServiceClient ¶
type TokenServiceClient interface {
// List tokens
List(context.Context, *connect.Request[v2.TokenServiceListRequest]) (*connect.Response[v2.TokenServiceListResponse], error)
// Revoke a token
Revoke(context.Context, *connect.Request[v2.TokenServiceRevokeRequest]) (*connect.Response[v2.TokenServiceRevokeResponse], error)
}
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 ¶
type TokenServiceHandler interface {
// List tokens
List(context.Context, *connect.Request[v2.TokenServiceListRequest]) (*connect.Response[v2.TokenServiceListResponse], error)
// Revoke a token
Revoke(context.Context, *connect.Request[v2.TokenServiceRevokeRequest]) (*connect.Response[v2.TokenServiceRevokeResponse], error)
}
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.
func (UnimplementedIPServiceHandler) Issues ¶
func (UnimplementedIPServiceHandler) Issues(context.Context, *connect.Request[v2.IPServiceIssuesRequest]) (*connect.Response[v2.IPServiceIssuesResponse], error)
func (UnimplementedIPServiceHandler) List ¶
func (UnimplementedIPServiceHandler) List(context.Context, *connect.Request[v2.IPServiceListRequest]) (*connect.Response[v2.IPServiceListResponse], error)
type UnimplementedImageServiceHandler ¶
type UnimplementedImageServiceHandler struct{}
UnimplementedImageServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedImageServiceHandler) Create ¶
func (UnimplementedImageServiceHandler) Create(context.Context, *connect.Request[v2.ImageServiceCreateRequest]) (*connect.Response[v2.ImageServiceCreateResponse], error)
func (UnimplementedImageServiceHandler) Delete ¶
func (UnimplementedImageServiceHandler) Delete(context.Context, *connect.Request[v2.ImageServiceDeleteRequest]) (*connect.Response[v2.ImageServiceDeleteResponse], error)
func (UnimplementedImageServiceHandler) Update ¶
func (UnimplementedImageServiceHandler) Update(context.Context, *connect.Request[v2.ImageServiceUpdateRequest]) (*connect.Response[v2.ImageServiceUpdateResponse], error)
type UnimplementedMachineServiceHandler ¶ added in v0.0.12
type UnimplementedMachineServiceHandler struct{}
UnimplementedMachineServiceHandler returns CodeUnimplemented from all methods.
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.
func (UnimplementedSizeServiceHandler) Create ¶ added in v0.0.2
func (UnimplementedSizeServiceHandler) Create(context.Context, *connect.Request[v2.SizeServiceCreateRequest]) (*connect.Response[v2.SizeServiceCreateResponse], error)
func (UnimplementedSizeServiceHandler) Delete ¶ added in v0.0.2
func (UnimplementedSizeServiceHandler) Delete(context.Context, *connect.Request[v2.SizeServiceDeleteRequest]) (*connect.Response[v2.SizeServiceDeleteResponse], error)
func (UnimplementedSizeServiceHandler) Update ¶ added in v0.0.2
func (UnimplementedSizeServiceHandler) Update(context.Context, *connect.Request[v2.SizeServiceUpdateRequest]) (*connect.Response[v2.SizeServiceUpdateResponse], error)
type UnimplementedTenantServiceHandler ¶
type UnimplementedTenantServiceHandler struct{}
UnimplementedTenantServiceHandler returns CodeUnimplemented from all methods.
type UnimplementedTokenServiceHandler ¶
type UnimplementedTokenServiceHandler struct{}
UnimplementedTokenServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedTokenServiceHandler) Revoke ¶
func (UnimplementedTokenServiceHandler) Revoke(context.Context, *connect.Request[v2.TokenServiceRevokeRequest]) (*connect.Response[v2.TokenServiceRevokeResponse], error)