Documentation
¶
Index ¶
- Constants
- func NewDownloadServiceHandler(svc DownloadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type DownloadServiceClient
- type DownloadServiceHandler
- type UnimplementedDownloadServiceHandler
- func (UnimplementedDownloadServiceHandler) ListTemplateDirectDownloadCertificates(context.Context, ...) (*connect.Response[v1.ListTemplateDirectDownloadCertificatesResponse], error)
- func (UnimplementedDownloadServiceHandler) ProvisionTemplateDirectDownloadCertificate(context.Context, ...) (*connect.Response[v1.ProvisionTemplateDirectDownloadCertificateResponse], ...)
- func (UnimplementedDownloadServiceHandler) RevokeTemplateDirectDownloadCertificate(context.Context, ...) (*connect.Response[v1.RevokeTemplateDirectDownloadCertificateResponse], error)
- func (UnimplementedDownloadServiceHandler) UploadTemplateDirectDownloadCertificate(context.Context, ...) (*connect.Response[v1.UploadTemplateDirectDownloadCertificateResponse], error)
Constants ¶
const ( // DownloadServiceListTemplateDirectDownloadCertificatesProcedure is the fully-qualified name of the // DownloadService's ListTemplateDirectDownloadCertificates RPC. DownloadServiceListTemplateDirectDownloadCertificatesProcedure = "/cloudstack.management.direct.download.v1.DownloadService/ListTemplateDirectDownloadCertificates" // DownloadServiceProvisionTemplateDirectDownloadCertificateProcedure is the fully-qualified name of // the DownloadService's ProvisionTemplateDirectDownloadCertificate RPC. DownloadServiceProvisionTemplateDirectDownloadCertificateProcedure = "/cloudstack.management.direct.download.v1.DownloadService/ProvisionTemplateDirectDownloadCertificate" // DownloadServiceRevokeTemplateDirectDownloadCertificateProcedure is the fully-qualified name of // the DownloadService's RevokeTemplateDirectDownloadCertificate RPC. DownloadServiceRevokeTemplateDirectDownloadCertificateProcedure = "/cloudstack.management.direct.download.v1.DownloadService/RevokeTemplateDirectDownloadCertificate" // DownloadServiceUploadTemplateDirectDownloadCertificateProcedure is the fully-qualified name of // the DownloadService's UploadTemplateDirectDownloadCertificate RPC. DownloadServiceUploadTemplateDirectDownloadCertificateProcedure = "/cloudstack.management.direct.download.v1.DownloadService/UploadTemplateDirectDownloadCertificate" )
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 (
// DownloadServiceName is the fully-qualified name of the DownloadService service.
DownloadServiceName = "cloudstack.management.direct.download.v1.DownloadService"
)
Variables ¶
This section is empty.
Functions ¶
func NewDownloadServiceHandler ¶
func NewDownloadServiceHandler(svc DownloadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewDownloadServiceHandler 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 DownloadServiceClient ¶
type DownloadServiceClient interface {
// ListTemplateDirectDownloadCertificates List the uploaded certificates for direct download templates
ListTemplateDirectDownloadCertificates(context.Context, *connect.Request[v1.ListTemplateDirectDownloadCertificatesRequest]) (*connect.Response[v1.ListTemplateDirectDownloadCertificatesResponse], error)
// ProvisionTemplateDirectDownloadCertificate Provisions a host with a direct download certificate
ProvisionTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.ProvisionTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.ProvisionTemplateDirectDownloadCertificateResponse], error)
// RevokeTemplateDirectDownloadCertificate Revoke a direct download certificate from hosts in a zone
RevokeTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.RevokeTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.RevokeTemplateDirectDownloadCertificateResponse], error)
// UploadTemplateDirectDownloadCertificate Upload a certificate for HTTPS direct template download on KVM hosts
UploadTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.UploadTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.UploadTemplateDirectDownloadCertificateResponse], error)
}
DownloadServiceClient is a client for the cloudstack.management.direct.download.v1.DownloadService service.
func NewDownloadServiceClient ¶
func NewDownloadServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DownloadServiceClient
NewDownloadServiceClient constructs a client for the cloudstack.management.direct.download.v1.DownloadService 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 DownloadServiceHandler ¶
type DownloadServiceHandler interface {
// ListTemplateDirectDownloadCertificates List the uploaded certificates for direct download templates
ListTemplateDirectDownloadCertificates(context.Context, *connect.Request[v1.ListTemplateDirectDownloadCertificatesRequest]) (*connect.Response[v1.ListTemplateDirectDownloadCertificatesResponse], error)
// ProvisionTemplateDirectDownloadCertificate Provisions a host with a direct download certificate
ProvisionTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.ProvisionTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.ProvisionTemplateDirectDownloadCertificateResponse], error)
// RevokeTemplateDirectDownloadCertificate Revoke a direct download certificate from hosts in a zone
RevokeTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.RevokeTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.RevokeTemplateDirectDownloadCertificateResponse], error)
// UploadTemplateDirectDownloadCertificate Upload a certificate for HTTPS direct template download on KVM hosts
UploadTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.UploadTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.UploadTemplateDirectDownloadCertificateResponse], error)
}
DownloadServiceHandler is an implementation of the cloudstack.management.direct.download.v1.DownloadService service.
type UnimplementedDownloadServiceHandler ¶
type UnimplementedDownloadServiceHandler struct{}
UnimplementedDownloadServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedDownloadServiceHandler) ListTemplateDirectDownloadCertificates ¶
func (UnimplementedDownloadServiceHandler) ListTemplateDirectDownloadCertificates(context.Context, *connect.Request[v1.ListTemplateDirectDownloadCertificatesRequest]) (*connect.Response[v1.ListTemplateDirectDownloadCertificatesResponse], error)
func (UnimplementedDownloadServiceHandler) ProvisionTemplateDirectDownloadCertificate ¶
func (UnimplementedDownloadServiceHandler) ProvisionTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.ProvisionTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.ProvisionTemplateDirectDownloadCertificateResponse], error)
func (UnimplementedDownloadServiceHandler) RevokeTemplateDirectDownloadCertificate ¶
func (UnimplementedDownloadServiceHandler) RevokeTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.RevokeTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.RevokeTemplateDirectDownloadCertificateResponse], error)
func (UnimplementedDownloadServiceHandler) UploadTemplateDirectDownloadCertificate ¶
func (UnimplementedDownloadServiceHandler) UploadTemplateDirectDownloadCertificate(context.Context, *connect.Request[v1.UploadTemplateDirectDownloadCertificateRequest]) (*connect.Response[v1.UploadTemplateDirectDownloadCertificateResponse], error)