adminv2connect

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 (
	// 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 (
	// SwitchServiceGetProcedure is the fully-qualified name of the SwitchService's Get RPC.
	SwitchServiceGetProcedure = "/metalstack.admin.v2.SwitchService/Get"
	// SwitchServiceListProcedure is the fully-qualified name of the SwitchService's List RPC.
	SwitchServiceListProcedure = "/metalstack.admin.v2.SwitchService/List"
	// SwitchServiceUpdateProcedure is the fully-qualified name of the SwitchService's Update RPC.
	SwitchServiceUpdateProcedure = "/metalstack.admin.v2.SwitchService/Update"
	// SwitchServiceDeleteProcedure is the fully-qualified name of the SwitchService's Delete RPC.
	SwitchServiceDeleteProcedure = "/metalstack.admin.v2.SwitchService/Delete"
	// SwitchServiceMigrateProcedure is the fully-qualified name of the SwitchService's Migrate RPC.
	SwitchServiceMigrateProcedure = "/metalstack.admin.v2.SwitchService/Migrate"
	// SwitchServicePortProcedure is the fully-qualified name of the SwitchService's Port RPC.
	SwitchServicePortProcedure = "/metalstack.admin.v2.SwitchService/Port"
)

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"
	// TokenServiceCreateProcedure is the fully-qualified name of the TokenService's Create RPC.
	TokenServiceCreateProcedure = "/metalstack.admin.v2.TokenService/Create"
)

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 (
	// IPServiceListProcedure is the fully-qualified name of the IPService's List RPC.
	IPServiceListProcedure = "/metalstack.admin.v2.IPService/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 (
	// 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 (
	// ProjectServiceListProcedure is the fully-qualified name of the ProjectService's List RPC.
	ProjectServiceListProcedure = "/metalstack.admin.v2.ProjectService/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 (
	// ProjectServiceName is the fully-qualified name of the ProjectService service.
	ProjectServiceName = "metalstack.admin.v2.ProjectService"
)
View Source
const (
	// SizeServiceName is the fully-qualified name of the SizeService service.
	SizeServiceName = "metalstack.admin.v2.SizeService"
)
View Source
const (
	// SwitchServiceName is the fully-qualified name of the SwitchService service.
	SwitchServiceName = "metalstack.admin.v2.SwitchService"
)
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 NewProjectServiceHandler added in v0.0.35

func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewProjectServiceHandler 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 NewSwitchServiceHandler added in v0.0.23

func NewSwitchServiceHandler(svc SwitchServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSwitchServiceHandler 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, *v2.FilesystemServiceCreateRequest) (*v2.FilesystemServiceCreateResponse, error)
	// Update a filesystem
	Update(context.Context, *v2.FilesystemServiceUpdateRequest) (*v2.FilesystemServiceUpdateResponse, error)
	// Delete a filesystem
	Delete(context.Context, *v2.FilesystemServiceDeleteRequest) (*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, *v2.FilesystemServiceCreateRequest) (*v2.FilesystemServiceCreateResponse, error)
	// Update a filesystem
	Update(context.Context, *v2.FilesystemServiceUpdateRequest) (*v2.FilesystemServiceUpdateResponse, error)
	// Delete a filesystem
	Delete(context.Context, *v2.FilesystemServiceDeleteRequest) (*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, *v2.IPServiceListRequest) (*v2.IPServiceListResponse, 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, *v2.IPServiceListRequest) (*v2.IPServiceListResponse, 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

type ImageServiceHandler interface {
	// Create a image
	Create(context.Context, *v2.ImageServiceCreateRequest) (*v2.ImageServiceCreateResponse, error)
	// Update a image
	Update(context.Context, *v2.ImageServiceUpdateRequest) (*v2.ImageServiceUpdateResponse, error)
	// Delete a image
	Delete(context.Context, *v2.ImageServiceDeleteRequest) (*v2.ImageServiceDeleteResponse, error)
	// Usage of images
	Usage(context.Context, *v2.ImageServiceUsageRequest) (*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, *v2.MachineServiceGetRequest) (*v2.MachineServiceGetResponse, error)
	// List all machines
	List(context.Context, *v2.MachineServiceListRequest) (*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, *v2.MachineServiceGetRequest) (*v2.MachineServiceGetResponse, error)
	// List all machines
	List(context.Context, *v2.MachineServiceListRequest) (*v2.MachineServiceListResponse, error)
}

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

type PartitionServiceClient interface {
	// Create a partition
	Create(context.Context, *v2.PartitionServiceCreateRequest) (*v2.PartitionServiceCreateResponse, error)
	// Update a partition
	Update(context.Context, *v2.PartitionServiceUpdateRequest) (*v2.PartitionServiceUpdateResponse, error)
	// Delete a partition
	Delete(context.Context, *v2.PartitionServiceDeleteRequest) (*v2.PartitionServiceDeleteResponse, error)
	// Capacity of a partitions
	Capacity(context.Context, *v2.PartitionServiceCapacityRequest) (*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, *v2.PartitionServiceCreateRequest) (*v2.PartitionServiceCreateResponse, error)
	// Update a partition
	Update(context.Context, *v2.PartitionServiceUpdateRequest) (*v2.PartitionServiceUpdateResponse, error)
	// Delete a partition
	Delete(context.Context, *v2.PartitionServiceDeleteRequest) (*v2.PartitionServiceDeleteResponse, error)
	// Capacity of a partitions
	Capacity(context.Context, *v2.PartitionServiceCapacityRequest) (*v2.PartitionServiceCapacityResponse, error)
}

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

type ProjectServiceClient added in v0.0.35

type ProjectServiceClient interface {
	// List projects based on various filter criteria
	List(context.Context, *v2.ProjectServiceListRequest) (*v2.ProjectServiceListResponse, error)
}

ProjectServiceClient is a client for the metalstack.admin.v2.ProjectService service.

func NewProjectServiceClient added in v0.0.35

func NewProjectServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProjectServiceClient

NewProjectServiceClient constructs a client for the metalstack.admin.v2.ProjectService 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 ProjectServiceHandler added in v0.0.35

type ProjectServiceHandler interface {
	// List projects based on various filter criteria
	List(context.Context, *v2.ProjectServiceListRequest) (*v2.ProjectServiceListResponse, error)
}

ProjectServiceHandler is an implementation of the metalstack.admin.v2.ProjectService service.

type SizeServiceClient added in v0.0.2

type SizeServiceClient interface {
	// Create a size
	Create(context.Context, *v2.SizeServiceCreateRequest) (*v2.SizeServiceCreateResponse, error)
	// Update a size
	Update(context.Context, *v2.SizeServiceUpdateRequest) (*v2.SizeServiceUpdateResponse, error)
	// Delete a size
	Delete(context.Context, *v2.SizeServiceDeleteRequest) (*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, *v2.SizeServiceCreateRequest) (*v2.SizeServiceCreateResponse, error)
	// Update a size
	Update(context.Context, *v2.SizeServiceUpdateRequest) (*v2.SizeServiceUpdateResponse, error)
	// Delete a size
	Delete(context.Context, *v2.SizeServiceDeleteRequest) (*v2.SizeServiceDeleteResponse, error)
}

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

type SwitchServiceClient added in v0.0.23

type SwitchServiceClient interface {
	// Get a switch by ID.
	Get(context.Context, *v2.SwitchServiceGetRequest) (*v2.SwitchServiceGetResponse, error)
	// List switches.
	List(context.Context, *v2.SwitchServiceListRequest) (*v2.SwitchServiceListResponse, error)
	// Update a switch.
	Update(context.Context, *v2.SwitchServiceUpdateRequest) (*v2.SwitchServiceUpdateResponse, error)
	// Delete a switch.
	Delete(context.Context, *v2.SwitchServiceDeleteRequest) (*v2.SwitchServiceDeleteResponse, error)
	// Migrate a switch.
	Migrate(context.Context, *v2.SwitchServiceMigrateRequest) (*v2.SwitchServiceMigrateResponse, error)
	// Port set the port status of a switch port.
	Port(context.Context, *v2.SwitchServicePortRequest) (*v2.SwitchServicePortResponse, error)
}

SwitchServiceClient is a client for the metalstack.admin.v2.SwitchService service.

func NewSwitchServiceClient added in v0.0.23

func NewSwitchServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SwitchServiceClient

NewSwitchServiceClient constructs a client for the metalstack.admin.v2.SwitchService 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 SwitchServiceHandler added in v0.0.23

type SwitchServiceHandler interface {
	// Get a switch by ID.
	Get(context.Context, *v2.SwitchServiceGetRequest) (*v2.SwitchServiceGetResponse, error)
	// List switches.
	List(context.Context, *v2.SwitchServiceListRequest) (*v2.SwitchServiceListResponse, error)
	// Update a switch.
	Update(context.Context, *v2.SwitchServiceUpdateRequest) (*v2.SwitchServiceUpdateResponse, error)
	// Delete a switch.
	Delete(context.Context, *v2.SwitchServiceDeleteRequest) (*v2.SwitchServiceDeleteResponse, error)
	// Migrate a switch.
	Migrate(context.Context, *v2.SwitchServiceMigrateRequest) (*v2.SwitchServiceMigrateResponse, error)
	// Port set the port status of a switch port.
	Port(context.Context, *v2.SwitchServicePortRequest) (*v2.SwitchServicePortResponse, error)
}

SwitchServiceHandler is an implementation of the metalstack.admin.v2.SwitchService service.

type TenantServiceClient

type TenantServiceClient interface {
	// Create a tenant
	Create(context.Context, *v2.TenantServiceCreateRequest) (*v2.TenantServiceCreateResponse, error)
	// List all tenants
	List(context.Context, *v2.TenantServiceListRequest) (*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, *v2.TenantServiceCreateRequest) (*v2.TenantServiceCreateResponse, error)
	// List all tenants
	List(context.Context, *v2.TenantServiceListRequest) (*v2.TenantServiceListResponse, error)
}

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

type TokenServiceClient

type TokenServiceClient interface {
	// List tokens
	List(context.Context, *v2.TokenServiceListRequest) (*v2.TokenServiceListResponse, error)
	// Revoke a token
	Revoke(context.Context, *v2.TokenServiceRevokeRequest) (*v2.TokenServiceRevokeResponse, error)
	// Create a token to authenticate against the platform, the secret will be only visible in the response.
	// This service is suitable to create tokens for other users instead of deriving users from tokens directly.
	Create(context.Context, *v2.TokenServiceCreateRequest) (*v2.TokenServiceCreateResponse, 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, *v2.TokenServiceListRequest) (*v2.TokenServiceListResponse, error)
	// Revoke a token
	Revoke(context.Context, *v2.TokenServiceRevokeRequest) (*v2.TokenServiceRevokeResponse, error)
	// Create a token to authenticate against the platform, the secret will be only visible in the response.
	// This service is suitable to create tokens for other users instead of deriving users from tokens directly.
	Create(context.Context, *v2.TokenServiceCreateRequest) (*v2.TokenServiceCreateResponse, 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) List

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

func (UnimplementedMachineServiceHandler) List 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 UnimplementedProjectServiceHandler added in v0.0.35

type UnimplementedProjectServiceHandler struct{}

UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedProjectServiceHandler) List added in v0.0.35

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) Delete added in v0.0.2

func (UnimplementedSizeServiceHandler) Update added in v0.0.2

type UnimplementedSwitchServiceHandler added in v0.0.23

type UnimplementedSwitchServiceHandler struct{}

UnimplementedSwitchServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSwitchServiceHandler) Delete added in v0.0.23

func (UnimplementedSwitchServiceHandler) Get added in v0.0.23

func (UnimplementedSwitchServiceHandler) List added in v0.0.23

func (UnimplementedSwitchServiceHandler) Migrate added in v0.0.23

func (UnimplementedSwitchServiceHandler) Port added in v0.0.23

func (UnimplementedSwitchServiceHandler) Update added in v0.0.23

type UnimplementedTenantServiceHandler

type UnimplementedTenantServiceHandler struct{}

UnimplementedTenantServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedTokenServiceHandler

type UnimplementedTokenServiceHandler struct{}

UnimplementedTokenServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTokenServiceHandler) Create added in v0.0.32

Jump to

Keyboard shortcuts

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