Documentation
¶
Index ¶
- Constants
- func NewRepositoryServiceHandler(svc RepositoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type RepositoryServiceClient
- type RepositoryServiceHandler
- type UnimplementedRepositoryServiceHandler
- func (UnimplementedRepositoryServiceHandler) AddBackupRepository(context.Context, *connect.Request[v1.AddBackupRepositoryRequest]) (*connect.Response[v1.AddBackupRepositoryResponse], error)
- func (UnimplementedRepositoryServiceHandler) DeleteBackupRepository(context.Context, *connect.Request[v1.DeleteBackupRepositoryRequest]) (*connect.Response[v1.DeleteBackupRepositoryResponse], error)
- func (UnimplementedRepositoryServiceHandler) ListBackupRepositories(context.Context, *connect.Request[v1.ListBackupRepositoriesRequest]) (*connect.Response[v1.ListBackupRepositoriesResponse], error)
Constants ¶
const ( // RepositoryServiceAddBackupRepositoryProcedure is the fully-qualified name of the // RepositoryService's AddBackupRepository RPC. RepositoryServiceAddBackupRepositoryProcedure = "/cloudstack.management.backup.repository.v1.RepositoryService/AddBackupRepository" // RepositoryServiceDeleteBackupRepositoryProcedure is the fully-qualified name of the // RepositoryService's DeleteBackupRepository RPC. RepositoryServiceDeleteBackupRepositoryProcedure = "/cloudstack.management.backup.repository.v1.RepositoryService/DeleteBackupRepository" // RepositoryServiceListBackupRepositoriesProcedure is the fully-qualified name of the // RepositoryService's ListBackupRepositories RPC. RepositoryServiceListBackupRepositoriesProcedure = "/cloudstack.management.backup.repository.v1.RepositoryService/ListBackupRepositories" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// RepositoryServiceName is the fully-qualified name of the RepositoryService service.
RepositoryServiceName = "cloudstack.management.backup.repository.v1.RepositoryService"
)
Variables ¶
This section is empty.
Functions ¶
func NewRepositoryServiceHandler ¶
func NewRepositoryServiceHandler(svc RepositoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewRepositoryServiceHandler 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 RepositoryServiceClient ¶
type RepositoryServiceClient interface { // AddBackupRepository Adds a backup repository to store NAS backups AddBackupRepository(context.Context, *connect.Request[v1.AddBackupRepositoryRequest]) (*connect.Response[v1.AddBackupRepositoryResponse], error) // DeleteBackupRepository delete a backup repository DeleteBackupRepository(context.Context, *connect.Request[v1.DeleteBackupRepositoryRequest]) (*connect.Response[v1.DeleteBackupRepositoryResponse], error) // ListBackupRepositories Lists all backup repositories ListBackupRepositories(context.Context, *connect.Request[v1.ListBackupRepositoriesRequest]) (*connect.Response[v1.ListBackupRepositoriesResponse], error) }
RepositoryServiceClient is a client for the cloudstack.management.backup.repository.v1.RepositoryService service.
func NewRepositoryServiceClient ¶
func NewRepositoryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RepositoryServiceClient
NewRepositoryServiceClient constructs a client for the cloudstack.management.backup.repository.v1.RepositoryService 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 RepositoryServiceHandler ¶
type RepositoryServiceHandler interface { // AddBackupRepository Adds a backup repository to store NAS backups AddBackupRepository(context.Context, *connect.Request[v1.AddBackupRepositoryRequest]) (*connect.Response[v1.AddBackupRepositoryResponse], error) // DeleteBackupRepository delete a backup repository DeleteBackupRepository(context.Context, *connect.Request[v1.DeleteBackupRepositoryRequest]) (*connect.Response[v1.DeleteBackupRepositoryResponse], error) // ListBackupRepositories Lists all backup repositories ListBackupRepositories(context.Context, *connect.Request[v1.ListBackupRepositoriesRequest]) (*connect.Response[v1.ListBackupRepositoriesResponse], error) }
RepositoryServiceHandler is an implementation of the cloudstack.management.backup.repository.v1.RepositoryService service.
type UnimplementedRepositoryServiceHandler ¶
type UnimplementedRepositoryServiceHandler struct{}
UnimplementedRepositoryServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedRepositoryServiceHandler) AddBackupRepository ¶
func (UnimplementedRepositoryServiceHandler) AddBackupRepository(context.Context, *connect.Request[v1.AddBackupRepositoryRequest]) (*connect.Response[v1.AddBackupRepositoryResponse], error)
func (UnimplementedRepositoryServiceHandler) DeleteBackupRepository ¶
func (UnimplementedRepositoryServiceHandler) DeleteBackupRepository(context.Context, *connect.Request[v1.DeleteBackupRepositoryRequest]) (*connect.Response[v1.DeleteBackupRepositoryResponse], error)
func (UnimplementedRepositoryServiceHandler) ListBackupRepositories ¶
func (UnimplementedRepositoryServiceHandler) ListBackupRepositories(context.Context, *connect.Request[v1.ListBackupRepositoriesRequest]) (*connect.Response[v1.ListBackupRepositoriesResponse], error)