apiv2connect

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 6 Imported by: 18

Documentation

Index

Constants

View Source
const (
	// AuditServiceGetProcedure is the fully-qualified name of the AuditService's Get RPC.
	AuditServiceGetProcedure = "/metalstack.api.v2.AuditService/Get"
	// AuditServiceListProcedure is the fully-qualified name of the AuditService's List RPC.
	AuditServiceListProcedure = "/metalstack.api.v2.AuditService/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 (
	// FilesystemServiceGetProcedure is the fully-qualified name of the FilesystemService's Get RPC.
	FilesystemServiceGetProcedure = "/metalstack.api.v2.FilesystemService/Get"
	// FilesystemServiceListProcedure is the fully-qualified name of the FilesystemService's List RPC.
	FilesystemServiceListProcedure = "/metalstack.api.v2.FilesystemService/List"
	// FilesystemServiceMatchProcedure is the fully-qualified name of the FilesystemService's Match RPC.
	FilesystemServiceMatchProcedure = "/metalstack.api.v2.FilesystemService/Match"
)

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 (
	// ImageServiceGetProcedure is the fully-qualified name of the ImageService's Get RPC.
	ImageServiceGetProcedure = "/metalstack.api.v2.ImageService/Get"
	// ImageServiceListProcedure is the fully-qualified name of the ImageService's List RPC.
	ImageServiceListProcedure = "/metalstack.api.v2.ImageService/List"
	// ImageServiceLatestProcedure is the fully-qualified name of the ImageService's Latest RPC.
	ImageServiceLatestProcedure = "/metalstack.api.v2.ImageService/Latest"
)

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 (
	// IPServiceGetProcedure is the fully-qualified name of the IPService's Get RPC.
	IPServiceGetProcedure = "/metalstack.api.v2.IPService/Get"
	// IPServiceCreateProcedure is the fully-qualified name of the IPService's Create RPC.
	IPServiceCreateProcedure = "/metalstack.api.v2.IPService/Create"
	// IPServiceUpdateProcedure is the fully-qualified name of the IPService's Update RPC.
	IPServiceUpdateProcedure = "/metalstack.api.v2.IPService/Update"
	// IPServiceListProcedure is the fully-qualified name of the IPService's List RPC.
	IPServiceListProcedure = "/metalstack.api.v2.IPService/List"
	// IPServiceDeleteProcedure is the fully-qualified name of the IPService's Delete RPC.
	IPServiceDeleteProcedure = "/metalstack.api.v2.IPService/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 (
	// MachineServiceGetProcedure is the fully-qualified name of the MachineService's Get RPC.
	MachineServiceGetProcedure = "/metalstack.api.v2.MachineService/Get"
	// MachineServiceCreateProcedure is the fully-qualified name of the MachineService's Create RPC.
	MachineServiceCreateProcedure = "/metalstack.api.v2.MachineService/Create"
	// MachineServiceUpdateProcedure is the fully-qualified name of the MachineService's Update RPC.
	MachineServiceUpdateProcedure = "/metalstack.api.v2.MachineService/Update"
	// MachineServiceListProcedure is the fully-qualified name of the MachineService's List RPC.
	MachineServiceListProcedure = "/metalstack.api.v2.MachineService/List"
	// MachineServiceDeleteProcedure is the fully-qualified name of the MachineService's Delete RPC.
	MachineServiceDeleteProcedure = "/metalstack.api.v2.MachineService/Delete"
	// MachineServiceBMCCommandProcedure is the fully-qualified name of the MachineService's BMCCommand
	// RPC.
	MachineServiceBMCCommandProcedure = "/metalstack.api.v2.MachineService/BMCCommand"
	// MachineServiceGetBMCProcedure is the fully-qualified name of the MachineService's GetBMC RPC.
	MachineServiceGetBMCProcedure = "/metalstack.api.v2.MachineService/GetBMC"
)

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 (
	// MethodServiceListProcedure is the fully-qualified name of the MethodService's List RPC.
	MethodServiceListProcedure = "/metalstack.api.v2.MethodService/List"
	// MethodServiceTokenScopedListProcedure is the fully-qualified name of the MethodService's
	// TokenScopedList RPC.
	MethodServiceTokenScopedListProcedure = "/metalstack.api.v2.MethodService/TokenScopedList"
)

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.api.v2.NetworkService/Get"
	// NetworkServiceCreateProcedure is the fully-qualified name of the NetworkService's Create RPC.
	NetworkServiceCreateProcedure = "/metalstack.api.v2.NetworkService/Create"
	// NetworkServiceUpdateProcedure is the fully-qualified name of the NetworkService's Update RPC.
	NetworkServiceUpdateProcedure = "/metalstack.api.v2.NetworkService/Update"
	// NetworkServiceListProcedure is the fully-qualified name of the NetworkService's List RPC.
	NetworkServiceListProcedure = "/metalstack.api.v2.NetworkService/List"
	// NetworkServiceListBaseNetworksProcedure is the fully-qualified name of the NetworkService's
	// ListBaseNetworks RPC.
	NetworkServiceListBaseNetworksProcedure = "/metalstack.api.v2.NetworkService/ListBaseNetworks"
	// NetworkServiceDeleteProcedure is the fully-qualified name of the NetworkService's Delete RPC.
	NetworkServiceDeleteProcedure = "/metalstack.api.v2.NetworkService/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 (
	// PartitionServiceGetProcedure is the fully-qualified name of the PartitionService's Get RPC.
	PartitionServiceGetProcedure = "/metalstack.api.v2.PartitionService/Get"
	// PartitionServiceListProcedure is the fully-qualified name of the PartitionService's List RPC.
	PartitionServiceListProcedure = "/metalstack.api.v2.PartitionService/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 (
	// ProjectServiceListProcedure is the fully-qualified name of the ProjectService's List RPC.
	ProjectServiceListProcedure = "/metalstack.api.v2.ProjectService/List"
	// ProjectServiceGetProcedure is the fully-qualified name of the ProjectService's Get RPC.
	ProjectServiceGetProcedure = "/metalstack.api.v2.ProjectService/Get"
	// ProjectServiceCreateProcedure is the fully-qualified name of the ProjectService's Create RPC.
	ProjectServiceCreateProcedure = "/metalstack.api.v2.ProjectService/Create"
	// ProjectServiceDeleteProcedure is the fully-qualified name of the ProjectService's Delete RPC.
	ProjectServiceDeleteProcedure = "/metalstack.api.v2.ProjectService/Delete"
	// ProjectServiceUpdateProcedure is the fully-qualified name of the ProjectService's Update RPC.
	ProjectServiceUpdateProcedure = "/metalstack.api.v2.ProjectService/Update"
	// ProjectServiceLeaveProcedure is the fully-qualified name of the ProjectService's Leave RPC.
	ProjectServiceLeaveProcedure = "/metalstack.api.v2.ProjectService/Leave"
	// ProjectServiceRemoveMemberProcedure is the fully-qualified name of the ProjectService's
	// RemoveMember RPC.
	ProjectServiceRemoveMemberProcedure = "/metalstack.api.v2.ProjectService/RemoveMember"
	// ProjectServiceUpdateMemberProcedure is the fully-qualified name of the ProjectService's
	// UpdateMember RPC.
	ProjectServiceUpdateMemberProcedure = "/metalstack.api.v2.ProjectService/UpdateMember"
	// ProjectServiceInviteProcedure is the fully-qualified name of the ProjectService's Invite RPC.
	ProjectServiceInviteProcedure = "/metalstack.api.v2.ProjectService/Invite"
	// ProjectServiceInviteAcceptProcedure is the fully-qualified name of the ProjectService's
	// InviteAccept RPC.
	ProjectServiceInviteAcceptProcedure = "/metalstack.api.v2.ProjectService/InviteAccept"
	// ProjectServiceInviteDeleteProcedure is the fully-qualified name of the ProjectService's
	// InviteDelete RPC.
	ProjectServiceInviteDeleteProcedure = "/metalstack.api.v2.ProjectService/InviteDelete"
	// ProjectServiceInvitesListProcedure is the fully-qualified name of the ProjectService's
	// InvitesList RPC.
	ProjectServiceInvitesListProcedure = "/metalstack.api.v2.ProjectService/InvitesList"
	// ProjectServiceInviteGetProcedure is the fully-qualified name of the ProjectService's InviteGet
	// RPC.
	ProjectServiceInviteGetProcedure = "/metalstack.api.v2.ProjectService/InviteGet"
)

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 (
	// SizeServiceGetProcedure is the fully-qualified name of the SizeService's Get RPC.
	SizeServiceGetProcedure = "/metalstack.api.v2.SizeService/Get"
	// SizeServiceListProcedure is the fully-qualified name of the SizeService's List RPC.
	SizeServiceListProcedure = "/metalstack.api.v2.SizeService/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 (
	// SizeReservationServiceGetProcedure is the fully-qualified name of the SizeReservationService's
	// Get RPC.
	SizeReservationServiceGetProcedure = "/metalstack.api.v2.SizeReservationService/Get"
	// SizeReservationServiceListProcedure is the fully-qualified name of the SizeReservationService's
	// List RPC.
	SizeReservationServiceListProcedure = "/metalstack.api.v2.SizeReservationService/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 (
	// TenantServiceCreateProcedure is the fully-qualified name of the TenantService's Create RPC.
	TenantServiceCreateProcedure = "/metalstack.api.v2.TenantService/Create"
	// TenantServiceListProcedure is the fully-qualified name of the TenantService's List RPC.
	TenantServiceListProcedure = "/metalstack.api.v2.TenantService/List"
	// TenantServiceGetProcedure is the fully-qualified name of the TenantService's Get RPC.
	TenantServiceGetProcedure = "/metalstack.api.v2.TenantService/Get"
	// TenantServiceUpdateProcedure is the fully-qualified name of the TenantService's Update RPC.
	TenantServiceUpdateProcedure = "/metalstack.api.v2.TenantService/Update"
	// TenantServiceDeleteProcedure is the fully-qualified name of the TenantService's Delete RPC.
	TenantServiceDeleteProcedure = "/metalstack.api.v2.TenantService/Delete"
	// TenantServiceLeaveProcedure is the fully-qualified name of the TenantService's Leave RPC.
	TenantServiceLeaveProcedure = "/metalstack.api.v2.TenantService/Leave"
	// TenantServiceRemoveMemberProcedure is the fully-qualified name of the TenantService's
	// RemoveMember RPC.
	TenantServiceRemoveMemberProcedure = "/metalstack.api.v2.TenantService/RemoveMember"
	// TenantServiceUpdateMemberProcedure is the fully-qualified name of the TenantService's
	// UpdateMember RPC.
	TenantServiceUpdateMemberProcedure = "/metalstack.api.v2.TenantService/UpdateMember"
	// TenantServiceInviteProcedure is the fully-qualified name of the TenantService's Invite RPC.
	TenantServiceInviteProcedure = "/metalstack.api.v2.TenantService/Invite"
	// TenantServiceInviteAcceptProcedure is the fully-qualified name of the TenantService's
	// InviteAccept RPC.
	TenantServiceInviteAcceptProcedure = "/metalstack.api.v2.TenantService/InviteAccept"
	// TenantServiceInviteDeleteProcedure is the fully-qualified name of the TenantService's
	// InviteDelete RPC.
	TenantServiceInviteDeleteProcedure = "/metalstack.api.v2.TenantService/InviteDelete"
	// TenantServiceInvitesListProcedure is the fully-qualified name of the TenantService's InvitesList
	// RPC.
	TenantServiceInvitesListProcedure = "/metalstack.api.v2.TenantService/InvitesList"
	// TenantServiceInviteGetProcedure is the fully-qualified name of the TenantService's InviteGet RPC.
	TenantServiceInviteGetProcedure = "/metalstack.api.v2.TenantService/InviteGet"
)

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 (
	// TokenServiceGetProcedure is the fully-qualified name of the TokenService's Get RPC.
	TokenServiceGetProcedure = "/metalstack.api.v2.TokenService/Get"
	// TokenServiceCreateProcedure is the fully-qualified name of the TokenService's Create RPC.
	TokenServiceCreateProcedure = "/metalstack.api.v2.TokenService/Create"
	// TokenServiceUpdateProcedure is the fully-qualified name of the TokenService's Update RPC.
	TokenServiceUpdateProcedure = "/metalstack.api.v2.TokenService/Update"
	// TokenServiceListProcedure is the fully-qualified name of the TokenService's List RPC.
	TokenServiceListProcedure = "/metalstack.api.v2.TokenService/List"
	// TokenServiceRevokeProcedure is the fully-qualified name of the TokenService's Revoke RPC.
	TokenServiceRevokeProcedure = "/metalstack.api.v2.TokenService/Revoke"
	// TokenServiceRefreshProcedure is the fully-qualified name of the TokenService's Refresh RPC.
	TokenServiceRefreshProcedure = "/metalstack.api.v2.TokenService/Refresh"
)

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 (
	// AuditServiceName is the fully-qualified name of the AuditService service.
	AuditServiceName = "metalstack.api.v2.AuditService"
)
View Source
const (
	// FilesystemServiceName is the fully-qualified name of the FilesystemService service.
	FilesystemServiceName = "metalstack.api.v2.FilesystemService"
)
View Source
const (
	// HealthServiceGetProcedure is the fully-qualified name of the HealthService's Get RPC.
	HealthServiceGetProcedure = "/metalstack.api.v2.HealthService/Get"
)

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 (
	// HealthServiceName is the fully-qualified name of the HealthService service.
	HealthServiceName = "metalstack.api.v2.HealthService"
)
View Source
const (
	// IPServiceName is the fully-qualified name of the IPService service.
	IPServiceName = "metalstack.api.v2.IPService"
)
View Source
const (
	// ImageServiceName is the fully-qualified name of the ImageService service.
	ImageServiceName = "metalstack.api.v2.ImageService"
)
View Source
const (
	// MachineServiceName is the fully-qualified name of the MachineService service.
	MachineServiceName = "metalstack.api.v2.MachineService"
)
View Source
const (
	// MethodServiceName is the fully-qualified name of the MethodService service.
	MethodServiceName = "metalstack.api.v2.MethodService"
)
View Source
const (
	// NetworkServiceName is the fully-qualified name of the NetworkService service.
	NetworkServiceName = "metalstack.api.v2.NetworkService"
)
View Source
const (
	// PartitionServiceName is the fully-qualified name of the PartitionService service.
	PartitionServiceName = "metalstack.api.v2.PartitionService"
)
View Source
const (
	// ProjectServiceName is the fully-qualified name of the ProjectService service.
	ProjectServiceName = "metalstack.api.v2.ProjectService"
)
View Source
const (
	// SizeImageConstraintServiceName is the fully-qualified name of the SizeImageConstraintService
	// service.
	SizeImageConstraintServiceName = "metalstack.api.v2.SizeImageConstraintService"
)
View Source
const (
	// SizeImageConstraintServiceTryProcedure is the fully-qualified name of the
	// SizeImageConstraintService's Try RPC.
	SizeImageConstraintServiceTryProcedure = "/metalstack.api.v2.SizeImageConstraintService/Try"
)

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 (
	// SizeReservationServiceName is the fully-qualified name of the SizeReservationService service.
	SizeReservationServiceName = "metalstack.api.v2.SizeReservationService"
)
View Source
const (
	// SizeServiceName is the fully-qualified name of the SizeService service.
	SizeServiceName = "metalstack.api.v2.SizeService"
)
View Source
const (
	// TenantServiceName is the fully-qualified name of the TenantService service.
	TenantServiceName = "metalstack.api.v2.TenantService"
)
View Source
const (
	// TokenServiceName is the fully-qualified name of the TokenService service.
	TokenServiceName = "metalstack.api.v2.TokenService"
)
View Source
const (
	// UserServiceGetProcedure is the fully-qualified name of the UserService's Get RPC.
	UserServiceGetProcedure = "/metalstack.api.v2.UserService/Get"
)

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 (
	// UserServiceName is the fully-qualified name of the UserService service.
	UserServiceName = "metalstack.api.v2.UserService"
)
View Source
const (
	// VersionServiceGetProcedure is the fully-qualified name of the VersionService's Get RPC.
	VersionServiceGetProcedure = "/metalstack.api.v2.VersionService/Get"
)

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 (
	// VersionServiceName is the fully-qualified name of the VersionService service.
	VersionServiceName = "metalstack.api.v2.VersionService"
)

Variables

This section is empty.

Functions

func NewAuditServiceHandler added in v0.0.55

func NewAuditServiceHandler(svc AuditServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAuditServiceHandler 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 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 NewHealthServiceHandler

func NewHealthServiceHandler(svc HealthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewHealthServiceHandler 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.9

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 NewMethodServiceHandler

func NewMethodServiceHandler(svc MethodServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMethodServiceHandler 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

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 NewSizeImageConstraintServiceHandler added in v0.0.52

func NewSizeImageConstraintServiceHandler(svc SizeImageConstraintServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSizeImageConstraintServiceHandler 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 NewSizeReservationServiceHandler added in v0.0.47

func NewSizeReservationServiceHandler(svc SizeReservationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSizeReservationServiceHandler 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.

func NewUserServiceHandler

func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUserServiceHandler 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 NewVersionServiceHandler

func NewVersionServiceHandler(svc VersionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewVersionServiceHandler 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 AuditServiceClient added in v0.0.55

type AuditServiceClient interface {
	// Returns the audit trace with the specified UUID.
	Get(context.Context, *v2.AuditServiceGetRequest) (*v2.AuditServiceGetResponse, error)
	// Returns the list of audit traces.
	List(context.Context, *v2.AuditServiceListRequest) (*v2.AuditServiceListResponse, error)
}

AuditServiceClient is a client for the metalstack.api.v2.AuditService service.

func NewAuditServiceClient added in v0.0.55

func NewAuditServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuditServiceClient

NewAuditServiceClient constructs a client for the metalstack.api.v2.AuditService 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 AuditServiceHandler added in v0.0.55

type AuditServiceHandler interface {
	// Returns the audit trace with the specified UUID.
	Get(context.Context, *v2.AuditServiceGetRequest) (*v2.AuditServiceGetResponse, error)
	// Returns the list of audit traces.
	List(context.Context, *v2.AuditServiceListRequest) (*v2.AuditServiceListResponse, error)
}

AuditServiceHandler is an implementation of the metalstack.api.v2.AuditService service.

type FilesystemServiceClient

type FilesystemServiceClient interface {
	// Returns the filesystem with the specified ID.
	Get(context.Context, *v2.FilesystemServiceGetRequest) (*v2.FilesystemServiceGetResponse, error)
	// Returns the list of all filesystems.
	List(context.Context, *v2.FilesystemServiceListRequest) (*v2.FilesystemServiceListResponse, error)
	// Matches a filesystem to a size and image or machine.
	Match(context.Context, *v2.FilesystemServiceMatchRequest) (*v2.FilesystemServiceMatchResponse, error)
}

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

func NewFilesystemServiceClient

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

NewFilesystemServiceClient constructs a client for the metalstack.api.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 {
	// Returns the filesystem with the specified ID.
	Get(context.Context, *v2.FilesystemServiceGetRequest) (*v2.FilesystemServiceGetResponse, error)
	// Returns the list of all filesystems.
	List(context.Context, *v2.FilesystemServiceListRequest) (*v2.FilesystemServiceListResponse, error)
	// Matches a filesystem to a size and image or machine.
	Match(context.Context, *v2.FilesystemServiceMatchRequest) (*v2.FilesystemServiceMatchResponse, error)
}

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

type HealthServiceClient

type HealthServiceClient interface {
	// Returns the health status of the platform.
	Get(context.Context, *v2.HealthServiceGetRequest) (*v2.HealthServiceGetResponse, error)
}

HealthServiceClient is a client for the metalstack.api.v2.HealthService service.

func NewHealthServiceClient

func NewHealthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HealthServiceClient

NewHealthServiceClient constructs a client for the metalstack.api.v2.HealthService 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 HealthServiceHandler

type HealthServiceHandler interface {
	// Returns the health status of the platform.
	Get(context.Context, *v2.HealthServiceGetRequest) (*v2.HealthServiceGetResponse, error)
}

HealthServiceHandler is an implementation of the metalstack.api.v2.HealthService service.

type IPServiceClient

type IPServiceClient interface {
	// Returns the IP address with the specified IP.
	Get(context.Context, *v2.IPServiceGetRequest) (*v2.IPServiceGetResponse, error)
	// Creates a new IP address.
	Create(context.Context, *v2.IPServiceCreateRequest) (*v2.IPServiceCreateResponse, error)
	// Updates an IP address.
	Update(context.Context, *v2.IPServiceUpdateRequest) (*v2.IPServiceUpdateResponse, error)
	// Returns the list of all IP addresses.
	List(context.Context, *v2.IPServiceListRequest) (*v2.IPServiceListResponse, error)
	// Deletes an IP address.
	Delete(context.Context, *v2.IPServiceDeleteRequest) (*v2.IPServiceDeleteResponse, error)
}

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

func NewIPServiceClient

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

NewIPServiceClient constructs a client for the metalstack.api.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 {
	// Returns the IP address with the specified IP.
	Get(context.Context, *v2.IPServiceGetRequest) (*v2.IPServiceGetResponse, error)
	// Creates a new IP address.
	Create(context.Context, *v2.IPServiceCreateRequest) (*v2.IPServiceCreateResponse, error)
	// Updates an IP address.
	Update(context.Context, *v2.IPServiceUpdateRequest) (*v2.IPServiceUpdateResponse, error)
	// Returns the list of all IP addresses.
	List(context.Context, *v2.IPServiceListRequest) (*v2.IPServiceListResponse, error)
	// Deletes an IP address.
	Delete(context.Context, *v2.IPServiceDeleteRequest) (*v2.IPServiceDeleteResponse, error)
}

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

type ImageServiceClient

type ImageServiceClient interface {
	// Returns the image with the specified ID.
	Get(context.Context, *v2.ImageServiceGetRequest) (*v2.ImageServiceGetResponse, error)
	// Returns the list of all images.
	List(context.Context, *v2.ImageServiceListRequest) (*v2.ImageServiceListResponse, error)
	// Returns the latest image for a specific operating system.
	Latest(context.Context, *v2.ImageServiceLatestRequest) (*v2.ImageServiceLatestResponse, error)
}

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

func NewImageServiceClient

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

NewImageServiceClient constructs a client for the metalstack.api.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 {
	// Returns the image with the specified ID.
	Get(context.Context, *v2.ImageServiceGetRequest) (*v2.ImageServiceGetResponse, error)
	// Returns the list of all images.
	List(context.Context, *v2.ImageServiceListRequest) (*v2.ImageServiceListResponse, error)
	// Returns the latest image for a specific operating system.
	Latest(context.Context, *v2.ImageServiceLatestRequest) (*v2.ImageServiceLatestResponse, error)
}

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

type MachineServiceClient added in v0.0.9

type MachineServiceClient interface {
	// Returns the machine with the specified UUID.
	Get(context.Context, *v2.MachineServiceGetRequest) (*v2.MachineServiceGetResponse, error)
	// Creates a new machine.
	Create(context.Context, *v2.MachineServiceCreateRequest) (*v2.MachineServiceCreateResponse, error)
	// Updates a machine.
	Update(context.Context, *v2.MachineServiceUpdateRequest) (*v2.MachineServiceUpdateResponse, error)
	// Returns the list of all machines.
	List(context.Context, *v2.MachineServiceListRequest) (*v2.MachineServiceListResponse, error)
	// Deletes a machine.
	Delete(context.Context, *v2.MachineServiceDeleteRequest) (*v2.MachineServiceDeleteResponse, error)
	// BMCCommand sends a command to the BMC of a machine.
	BMCCommand(context.Context, *v2.MachineServiceBMCCommandRequest) (*v2.MachineServiceBMCCommandResponse, error)
	// Returns the BMC details of a machine.
	GetBMC(context.Context, *v2.MachineServiceGetBMCRequest) (*v2.MachineServiceGetBMCResponse, error)
}

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

func NewMachineServiceClient added in v0.0.9

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

NewMachineServiceClient constructs a client for the metalstack.api.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.9

type MachineServiceHandler interface {
	// Returns the machine with the specified UUID.
	Get(context.Context, *v2.MachineServiceGetRequest) (*v2.MachineServiceGetResponse, error)
	// Creates a new machine.
	Create(context.Context, *v2.MachineServiceCreateRequest) (*v2.MachineServiceCreateResponse, error)
	// Updates a machine.
	Update(context.Context, *v2.MachineServiceUpdateRequest) (*v2.MachineServiceUpdateResponse, error)
	// Returns the list of all machines.
	List(context.Context, *v2.MachineServiceListRequest) (*v2.MachineServiceListResponse, error)
	// Deletes a machine.
	Delete(context.Context, *v2.MachineServiceDeleteRequest) (*v2.MachineServiceDeleteResponse, error)
	// BMCCommand sends a command to the BMC of a machine.
	BMCCommand(context.Context, *v2.MachineServiceBMCCommandRequest) (*v2.MachineServiceBMCCommandResponse, error)
	// Returns the BMC details of a machine.
	GetBMC(context.Context, *v2.MachineServiceGetBMCRequest) (*v2.MachineServiceGetBMCResponse, error)
}

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

type MethodServiceClient

type MethodServiceClient interface {
	// Returns the list of all public visible methods.
	List(context.Context, *v2.MethodServiceListRequest) (*v2.MethodServiceListResponse, error)
	// TokenScopedList returns all methods callable with the token present in the request.
	TokenScopedList(context.Context, *v2.MethodServiceTokenScopedListRequest) (*v2.MethodServiceTokenScopedListResponse, error)
}

MethodServiceClient is a client for the metalstack.api.v2.MethodService service.

func NewMethodServiceClient

func NewMethodServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MethodServiceClient

NewMethodServiceClient constructs a client for the metalstack.api.v2.MethodService 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 MethodServiceHandler

type MethodServiceHandler interface {
	// Returns the list of all public visible methods.
	List(context.Context, *v2.MethodServiceListRequest) (*v2.MethodServiceListResponse, error)
	// TokenScopedList returns all methods callable with the token present in the request.
	TokenScopedList(context.Context, *v2.MethodServiceTokenScopedListRequest) (*v2.MethodServiceTokenScopedListResponse, error)
}

MethodServiceHandler is an implementation of the metalstack.api.v2.MethodService service.

type NetworkServiceClient

type NetworkServiceClient interface {
	// Returns the network with the specified ID.
	Get(context.Context, *v2.NetworkServiceGetRequest) (*v2.NetworkServiceGetResponse, error)
	// Creates a child network from a super network.
	Create(context.Context, *v2.NetworkServiceCreateRequest) (*v2.NetworkServiceCreateResponse, error)
	// Updates a network.
	Update(context.Context, *v2.NetworkServiceUpdateRequest) (*v2.NetworkServiceUpdateResponse, error)
	// Returns the list of all project networks.
	List(context.Context, *v2.NetworkServiceListRequest) (*v2.NetworkServiceListResponse, error)
	// ListBaseNetworks returns all base networks that can be used for either child network or IP allocation.
	ListBaseNetworks(context.Context, *v2.NetworkServiceListBaseNetworksRequest) (*v2.NetworkServiceListBaseNetworksResponse, error)
	// Deletes a network.
	Delete(context.Context, *v2.NetworkServiceDeleteRequest) (*v2.NetworkServiceDeleteResponse, error)
}

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

func NewNetworkServiceClient

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

NewNetworkServiceClient constructs a client for the metalstack.api.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 {
	// Returns the network with the specified ID.
	Get(context.Context, *v2.NetworkServiceGetRequest) (*v2.NetworkServiceGetResponse, error)
	// Creates a child network from a super network.
	Create(context.Context, *v2.NetworkServiceCreateRequest) (*v2.NetworkServiceCreateResponse, error)
	// Updates a network.
	Update(context.Context, *v2.NetworkServiceUpdateRequest) (*v2.NetworkServiceUpdateResponse, error)
	// Returns the list of all project networks.
	List(context.Context, *v2.NetworkServiceListRequest) (*v2.NetworkServiceListResponse, error)
	// ListBaseNetworks returns all base networks that can be used for either child network or IP allocation.
	ListBaseNetworks(context.Context, *v2.NetworkServiceListBaseNetworksRequest) (*v2.NetworkServiceListBaseNetworksResponse, error)
	// Deletes a network.
	Delete(context.Context, *v2.NetworkServiceDeleteRequest) (*v2.NetworkServiceDeleteResponse, error)
}

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

type PartitionServiceClient

type PartitionServiceClient interface {
	// Returns the partition with the specified ID.
	Get(context.Context, *v2.PartitionServiceGetRequest) (*v2.PartitionServiceGetResponse, error)
	// Returns the list of all partitions.
	List(context.Context, *v2.PartitionServiceListRequest) (*v2.PartitionServiceListResponse, error)
}

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

func NewPartitionServiceClient

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

NewPartitionServiceClient constructs a client for the metalstack.api.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 {
	// Returns the partition with the specified ID.
	Get(context.Context, *v2.PartitionServiceGetRequest) (*v2.PartitionServiceGetResponse, error)
	// Returns the list of all partitions.
	List(context.Context, *v2.PartitionServiceListRequest) (*v2.PartitionServiceListResponse, error)
}

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

type ProjectServiceClient

type ProjectServiceClient interface {
	// Returns the list of all accessible projects.
	List(context.Context, *v2.ProjectServiceListRequest) (*v2.ProjectServiceListResponse, error)
	// Returns the project with the specified UUID.
	Get(context.Context, *v2.ProjectServiceGetRequest) (*v2.ProjectServiceGetResponse, error)
	// Create a project
	Create(context.Context, *v2.ProjectServiceCreateRequest) (*v2.ProjectServiceCreateResponse, error)
	// Delete a project
	Delete(context.Context, *v2.ProjectServiceDeleteRequest) (*v2.ProjectServiceDeleteResponse, error)
	// Update a project
	Update(context.Context, *v2.ProjectServiceUpdateRequest) (*v2.ProjectServiceUpdateResponse, error)
	// Leave project
	Leave(context.Context, *v2.ProjectServiceLeaveRequest) (*v2.ProjectServiceLeaveResponse, error)
	// RemoveMember remove a user from a project
	RemoveMember(context.Context, *v2.ProjectServiceRemoveMemberRequest) (*v2.ProjectServiceRemoveMemberResponse, error)
	// UpdateMember update a user for a project
	UpdateMember(context.Context, *v2.ProjectServiceUpdateMemberRequest) (*v2.ProjectServiceUpdateMemberResponse, error)
	// Invite a user to a project
	Invite(context.Context, *v2.ProjectServiceInviteRequest) (*v2.ProjectServiceInviteResponse, error)
	// InviteAccept is called from a user to accept a invitation
	InviteAccept(context.Context, *v2.ProjectServiceInviteAcceptRequest) (*v2.ProjectServiceInviteAcceptResponse, error)
	// InviteDelete deletes a pending invitation
	InviteDelete(context.Context, *v2.ProjectServiceInviteDeleteRequest) (*v2.ProjectServiceInviteDeleteResponse, error)
	// InvitesList list all invites to a project
	InvitesList(context.Context, *v2.ProjectServiceInvitesListRequest) (*v2.ProjectServiceInvitesListResponse, error)
	// InviteGet get an invite
	InviteGet(context.Context, *v2.ProjectServiceInviteGetRequest) (*v2.ProjectServiceInviteGetResponse, error)
}

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

func NewProjectServiceClient

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

NewProjectServiceClient constructs a client for the metalstack.api.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

type ProjectServiceHandler interface {
	// Returns the list of all accessible projects.
	List(context.Context, *v2.ProjectServiceListRequest) (*v2.ProjectServiceListResponse, error)
	// Returns the project with the specified UUID.
	Get(context.Context, *v2.ProjectServiceGetRequest) (*v2.ProjectServiceGetResponse, error)
	// Create a project
	Create(context.Context, *v2.ProjectServiceCreateRequest) (*v2.ProjectServiceCreateResponse, error)
	// Delete a project
	Delete(context.Context, *v2.ProjectServiceDeleteRequest) (*v2.ProjectServiceDeleteResponse, error)
	// Update a project
	Update(context.Context, *v2.ProjectServiceUpdateRequest) (*v2.ProjectServiceUpdateResponse, error)
	// Leave project
	Leave(context.Context, *v2.ProjectServiceLeaveRequest) (*v2.ProjectServiceLeaveResponse, error)
	// RemoveMember remove a user from a project
	RemoveMember(context.Context, *v2.ProjectServiceRemoveMemberRequest) (*v2.ProjectServiceRemoveMemberResponse, error)
	// UpdateMember update a user for a project
	UpdateMember(context.Context, *v2.ProjectServiceUpdateMemberRequest) (*v2.ProjectServiceUpdateMemberResponse, error)
	// Invite a user to a project
	Invite(context.Context, *v2.ProjectServiceInviteRequest) (*v2.ProjectServiceInviteResponse, error)
	// InviteAccept is called from a user to accept a invitation
	InviteAccept(context.Context, *v2.ProjectServiceInviteAcceptRequest) (*v2.ProjectServiceInviteAcceptResponse, error)
	// InviteDelete deletes a pending invitation
	InviteDelete(context.Context, *v2.ProjectServiceInviteDeleteRequest) (*v2.ProjectServiceInviteDeleteResponse, error)
	// InvitesList list all invites to a project
	InvitesList(context.Context, *v2.ProjectServiceInvitesListRequest) (*v2.ProjectServiceInvitesListResponse, error)
	// InviteGet get an invite
	InviteGet(context.Context, *v2.ProjectServiceInviteGetRequest) (*v2.ProjectServiceInviteGetResponse, error)
}

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

type SizeImageConstraintServiceClient added in v0.0.52

type SizeImageConstraintServiceClient interface {
	// Try validates if a given combination of size and image is possible.
	Try(context.Context, *v2.SizeImageConstraintServiceTryRequest) (*v2.SizeImageConstraintServiceTryResponse, error)
}

SizeImageConstraintServiceClient is a client for the metalstack.api.v2.SizeImageConstraintService service.

func NewSizeImageConstraintServiceClient added in v0.0.52

func NewSizeImageConstraintServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SizeImageConstraintServiceClient

NewSizeImageConstraintServiceClient constructs a client for the metalstack.api.v2.SizeImageConstraintService 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 SizeImageConstraintServiceHandler added in v0.0.52

type SizeImageConstraintServiceHandler interface {
	// Try validates if a given combination of size and image is possible.
	Try(context.Context, *v2.SizeImageConstraintServiceTryRequest) (*v2.SizeImageConstraintServiceTryResponse, error)
}

SizeImageConstraintServiceHandler is an implementation of the metalstack.api.v2.SizeImageConstraintService service.

type SizeReservationServiceClient added in v0.0.47

type SizeReservationServiceClient interface {
	// Returns the size reservation with the specified ID.
	Get(context.Context, *v2.SizeReservationServiceGetRequest) (*v2.SizeReservationServiceGetResponse, error)
	// Returns the list of size reservations.
	List(context.Context, *v2.SizeReservationServiceListRequest) (*v2.SizeReservationServiceListResponse, error)
}

SizeReservationServiceClient is a client for the metalstack.api.v2.SizeReservationService service.

func NewSizeReservationServiceClient added in v0.0.47

func NewSizeReservationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SizeReservationServiceClient

NewSizeReservationServiceClient constructs a client for the metalstack.api.v2.SizeReservationService 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 SizeReservationServiceHandler added in v0.0.47

type SizeReservationServiceHandler interface {
	// Returns the size reservation with the specified ID.
	Get(context.Context, *v2.SizeReservationServiceGetRequest) (*v2.SizeReservationServiceGetResponse, error)
	// Returns the list of size reservations.
	List(context.Context, *v2.SizeReservationServiceListRequest) (*v2.SizeReservationServiceListResponse, error)
}

SizeReservationServiceHandler is an implementation of the metalstack.api.v2.SizeReservationService service.

type SizeServiceClient added in v0.0.2

type SizeServiceClient interface {
	// Returns the size with the specified ID.
	Get(context.Context, *v2.SizeServiceGetRequest) (*v2.SizeServiceGetResponse, error)
	// Returns the list of all sizes.
	List(context.Context, *v2.SizeServiceListRequest) (*v2.SizeServiceListResponse, error)
}

SizeServiceClient is a client for the metalstack.api.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.api.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 {
	// Returns the size with the specified ID.
	Get(context.Context, *v2.SizeServiceGetRequest) (*v2.SizeServiceGetResponse, error)
	// Returns the list of all sizes.
	List(context.Context, *v2.SizeServiceListRequest) (*v2.SizeServiceListResponse, error)
}

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

type TenantServiceClient

type TenantServiceClient interface {
	// Creates a new tenant.
	Create(context.Context, *v2.TenantServiceCreateRequest) (*v2.TenantServiceCreateResponse, error)
	// Returns the list of tenants.
	List(context.Context, *v2.TenantServiceListRequest) (*v2.TenantServiceListResponse, error)
	// Get a tenant
	Get(context.Context, *v2.TenantServiceGetRequest) (*v2.TenantServiceGetResponse, error)
	// Update a tenant
	Update(context.Context, *v2.TenantServiceUpdateRequest) (*v2.TenantServiceUpdateResponse, error)
	// Delete a tenant
	Delete(context.Context, *v2.TenantServiceDeleteRequest) (*v2.TenantServiceDeleteResponse, error)
	// Leave remove a member of a tenant
	Leave(context.Context, *v2.TenantServiceLeaveRequest) (*v2.TenantServiceLeaveResponse, error)
	// RemoveMember remove a member of a tenant
	RemoveMember(context.Context, *v2.TenantServiceRemoveMemberRequest) (*v2.TenantServiceRemoveMemberResponse, error)
	// UpdateMember update a member of a tenant
	UpdateMember(context.Context, *v2.TenantServiceUpdateMemberRequest) (*v2.TenantServiceUpdateMemberResponse, error)
	// Invite a user to a tenant
	Invite(context.Context, *v2.TenantServiceInviteRequest) (*v2.TenantServiceInviteResponse, error)
	// InviteAccept is called from a user to accept an invitation
	InviteAccept(context.Context, *v2.TenantServiceInviteAcceptRequest) (*v2.TenantServiceInviteAcceptResponse, error)
	// InviteDelete deletes a pending invitation
	InviteDelete(context.Context, *v2.TenantServiceInviteDeleteRequest) (*v2.TenantServiceInviteDeleteResponse, error)
	// InvitesList list all invites to a tenant
	InvitesList(context.Context, *v2.TenantServiceInvitesListRequest) (*v2.TenantServiceInvitesListResponse, error)
	// InviteGet get an invite
	InviteGet(context.Context, *v2.TenantServiceInviteGetRequest) (*v2.TenantServiceInviteGetResponse, error)
}

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

func NewTenantServiceClient

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

NewTenantServiceClient constructs a client for the metalstack.api.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 {
	// Creates a new tenant.
	Create(context.Context, *v2.TenantServiceCreateRequest) (*v2.TenantServiceCreateResponse, error)
	// Returns the list of tenants.
	List(context.Context, *v2.TenantServiceListRequest) (*v2.TenantServiceListResponse, error)
	// Get a tenant
	Get(context.Context, *v2.TenantServiceGetRequest) (*v2.TenantServiceGetResponse, error)
	// Update a tenant
	Update(context.Context, *v2.TenantServiceUpdateRequest) (*v2.TenantServiceUpdateResponse, error)
	// Delete a tenant
	Delete(context.Context, *v2.TenantServiceDeleteRequest) (*v2.TenantServiceDeleteResponse, error)
	// Leave remove a member of a tenant
	Leave(context.Context, *v2.TenantServiceLeaveRequest) (*v2.TenantServiceLeaveResponse, error)
	// RemoveMember remove a member of a tenant
	RemoveMember(context.Context, *v2.TenantServiceRemoveMemberRequest) (*v2.TenantServiceRemoveMemberResponse, error)
	// UpdateMember update a member of a tenant
	UpdateMember(context.Context, *v2.TenantServiceUpdateMemberRequest) (*v2.TenantServiceUpdateMemberResponse, error)
	// Invite a user to a tenant
	Invite(context.Context, *v2.TenantServiceInviteRequest) (*v2.TenantServiceInviteResponse, error)
	// InviteAccept is called from a user to accept an invitation
	InviteAccept(context.Context, *v2.TenantServiceInviteAcceptRequest) (*v2.TenantServiceInviteAcceptResponse, error)
	// InviteDelete deletes a pending invitation
	InviteDelete(context.Context, *v2.TenantServiceInviteDeleteRequest) (*v2.TenantServiceInviteDeleteResponse, error)
	// InvitesList list all invites to a tenant
	InvitesList(context.Context, *v2.TenantServiceInvitesListRequest) (*v2.TenantServiceInvitesListResponse, error)
	// InviteGet get an invite
	InviteGet(context.Context, *v2.TenantServiceInviteGetRequest) (*v2.TenantServiceInviteGetResponse, error)
}

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

type TokenServiceClient

type TokenServiceClient interface {
	// Returns the token with the specified UUID.
	Get(context.Context, *v2.TokenServiceGetRequest) (*v2.TokenServiceGetResponse, error)
	// Creates a token to authenticate against the platform, the secret will be only visible in the response.
	Create(context.Context, *v2.TokenServiceCreateRequest) (*v2.TokenServiceCreateResponse, error)
	// Updates a token.
	Update(context.Context, *v2.TokenServiceUpdateRequest) (*v2.TokenServiceUpdateResponse, error)
	// Returns the list of all user tokens.
	List(context.Context, *v2.TokenServiceListRequest) (*v2.TokenServiceListResponse, error)
	// Revokes a token, no further usage is possible afterwards.
	Revoke(context.Context, *v2.TokenServiceRevokeRequest) (*v2.TokenServiceRevokeResponse, error)
	// Refreshes a token, this will create a new token with the exact same permissions as the calling token contains.
	Refresh(context.Context, *v2.TokenServiceRefreshRequest) (*v2.TokenServiceRefreshResponse, error)
}

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

func NewTokenServiceClient

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

NewTokenServiceClient constructs a client for the metalstack.api.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 {
	// Returns the token with the specified UUID.
	Get(context.Context, *v2.TokenServiceGetRequest) (*v2.TokenServiceGetResponse, error)
	// Creates a token to authenticate against the platform, the secret will be only visible in the response.
	Create(context.Context, *v2.TokenServiceCreateRequest) (*v2.TokenServiceCreateResponse, error)
	// Updates a token.
	Update(context.Context, *v2.TokenServiceUpdateRequest) (*v2.TokenServiceUpdateResponse, error)
	// Returns the list of all user tokens.
	List(context.Context, *v2.TokenServiceListRequest) (*v2.TokenServiceListResponse, error)
	// Revokes a token, no further usage is possible afterwards.
	Revoke(context.Context, *v2.TokenServiceRevokeRequest) (*v2.TokenServiceRevokeResponse, error)
	// Refreshes a token, this will create a new token with the exact same permissions as the calling token contains.
	Refresh(context.Context, *v2.TokenServiceRefreshRequest) (*v2.TokenServiceRefreshResponse, error)
}

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

type UnimplementedAuditServiceHandler added in v0.0.55

type UnimplementedAuditServiceHandler struct{}

UnimplementedAuditServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAuditServiceHandler) Get added in v0.0.55

func (UnimplementedAuditServiceHandler) List added in v0.0.55

type UnimplementedFilesystemServiceHandler

type UnimplementedFilesystemServiceHandler struct{}

UnimplementedFilesystemServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedHealthServiceHandler

type UnimplementedHealthServiceHandler struct{}

UnimplementedHealthServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedIPServiceHandler

type UnimplementedIPServiceHandler struct{}

UnimplementedIPServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedIPServiceHandler) Get

func (UnimplementedIPServiceHandler) List

type UnimplementedImageServiceHandler

type UnimplementedImageServiceHandler struct{}

UnimplementedImageServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedMachineServiceHandler added in v0.0.9

type UnimplementedMachineServiceHandler struct{}

UnimplementedMachineServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedMachineServiceHandler) BMCCommand added in v0.0.41

func (UnimplementedMachineServiceHandler) Create added in v0.0.9

func (UnimplementedMachineServiceHandler) Delete added in v0.0.9

func (UnimplementedMachineServiceHandler) Get added in v0.0.9

func (UnimplementedMachineServiceHandler) GetBMC added in v0.0.41

func (UnimplementedMachineServiceHandler) List added in v0.0.9

func (UnimplementedMachineServiceHandler) Update added in v0.0.9

type UnimplementedMethodServiceHandler

type UnimplementedMethodServiceHandler struct{}

UnimplementedMethodServiceHandler 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 UnimplementedProjectServiceHandler

type UnimplementedProjectServiceHandler struct{}

UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedProjectServiceHandler) Leave added in v0.0.32

type UnimplementedSizeImageConstraintServiceHandler added in v0.0.52

type UnimplementedSizeImageConstraintServiceHandler struct{}

UnimplementedSizeImageConstraintServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSizeImageConstraintServiceHandler) Try added in v0.0.52

type UnimplementedSizeReservationServiceHandler added in v0.0.47

type UnimplementedSizeReservationServiceHandler struct{}

UnimplementedSizeReservationServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSizeReservationServiceHandler) Get added in v0.0.47

func (UnimplementedSizeReservationServiceHandler) List added in v0.0.47

type UnimplementedSizeServiceHandler added in v0.0.2

type UnimplementedSizeServiceHandler struct{}

UnimplementedSizeServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSizeServiceHandler) Get added in v0.0.2

func (UnimplementedSizeServiceHandler) List added in v0.0.2

type UnimplementedTenantServiceHandler

type UnimplementedTenantServiceHandler struct{}

UnimplementedTenantServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTenantServiceHandler) Leave added in v0.0.32

type UnimplementedTokenServiceHandler

type UnimplementedTokenServiceHandler struct{}

UnimplementedTokenServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTokenServiceHandler) Refresh added in v0.0.4

type UnimplementedUserServiceHandler

type UnimplementedUserServiceHandler struct{}

UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedUserServiceHandler) Get

type UnimplementedVersionServiceHandler

type UnimplementedVersionServiceHandler struct{}

UnimplementedVersionServiceHandler returns CodeUnimplemented from all methods.

type UserServiceClient

type UserServiceClient interface {
	// Returns the authenticated user.
	Get(context.Context, *v2.UserServiceGetRequest) (*v2.UserServiceGetResponse, error)
}

UserServiceClient is a client for the metalstack.api.v2.UserService service.

func NewUserServiceClient

func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient

NewUserServiceClient constructs a client for the metalstack.api.v2.UserService 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 UserServiceHandler

type UserServiceHandler interface {
	// Returns the authenticated user.
	Get(context.Context, *v2.UserServiceGetRequest) (*v2.UserServiceGetResponse, error)
}

UserServiceHandler is an implementation of the metalstack.api.v2.UserService service.

type VersionServiceClient

type VersionServiceClient interface {
	// Returns the version of the application.
	Get(context.Context, *v2.VersionServiceGetRequest) (*v2.VersionServiceGetResponse, error)
}

VersionServiceClient is a client for the metalstack.api.v2.VersionService service.

func NewVersionServiceClient

func NewVersionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) VersionServiceClient

NewVersionServiceClient constructs a client for the metalstack.api.v2.VersionService 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 VersionServiceHandler

type VersionServiceHandler interface {
	// Returns the version of the application.
	Get(context.Context, *v2.VersionServiceGetRequest) (*v2.VersionServiceGetResponse, error)
}

VersionServiceHandler is an implementation of the metalstack.api.v2.VersionService service.

Jump to

Keyboard shortcuts

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