Documentation
¶
Index ¶
- Constants
- func NewPodServiceHandler(svc PodServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type PodServiceClient
- type PodServiceHandler
- type UnimplementedPodServiceHandler
- func (UnimplementedPodServiceHandler) CreatePod(context.Context, *connect.Request[v1.CreatePodRequest]) (*connect.Response[v1.CreatePodResponse], error)
- func (UnimplementedPodServiceHandler) DeletePod(context.Context, *connect.Request[v1.DeletePodRequest]) (*connect.Response[v1.DeletePodResponse], error)
- func (UnimplementedPodServiceHandler) ListPodsBy(context.Context, *connect.Request[v1.ListPodsByRequest]) (*connect.Response[v1.ListPodsByResponse], error)
- func (UnimplementedPodServiceHandler) UpdatePod(context.Context, *connect.Request[v1.UpdatePodRequest]) (*connect.Response[v1.UpdatePodResponse], error)
Constants ¶
const ( // PodServiceCreatePodProcedure is the fully-qualified name of the PodService's CreatePod RPC. PodServiceCreatePodProcedure = "/cloudstack.management.pod.v1.PodService/CreatePod" // PodServiceDeletePodProcedure is the fully-qualified name of the PodService's DeletePod RPC. PodServiceDeletePodProcedure = "/cloudstack.management.pod.v1.PodService/DeletePod" // PodServiceListPodsByProcedure is the fully-qualified name of the PodService's ListPodsBy RPC. PodServiceListPodsByProcedure = "/cloudstack.management.pod.v1.PodService/ListPodsBy" // PodServiceUpdatePodProcedure is the fully-qualified name of the PodService's UpdatePod RPC. PodServiceUpdatePodProcedure = "/cloudstack.management.pod.v1.PodService/UpdatePod" )
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 (
// PodServiceName is the fully-qualified name of the PodService service.
PodServiceName = "cloudstack.management.pod.v1.PodService"
)
Variables ¶
This section is empty.
Functions ¶
func NewPodServiceHandler ¶
func NewPodServiceHandler(svc PodServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewPodServiceHandler 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 PodServiceClient ¶
type PodServiceClient interface { // CreatePod Creates a new Pod. CreatePod(context.Context, *connect.Request[v1.CreatePodRequest]) (*connect.Response[v1.CreatePodResponse], error) // DeletePod Deletes a Pod. DeletePod(context.Context, *connect.Request[v1.DeletePodRequest]) (*connect.Response[v1.DeletePodResponse], error) // ListPodsBy Lists all Pods. ListPodsBy(context.Context, *connect.Request[v1.ListPodsByRequest]) (*connect.Response[v1.ListPodsByResponse], error) // UpdatePod Updates a Pod. UpdatePod(context.Context, *connect.Request[v1.UpdatePodRequest]) (*connect.Response[v1.UpdatePodResponse], error) }
PodServiceClient is a client for the cloudstack.management.pod.v1.PodService service.
func NewPodServiceClient ¶
func NewPodServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PodServiceClient
NewPodServiceClient constructs a client for the cloudstack.management.pod.v1.PodService 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 PodServiceHandler ¶
type PodServiceHandler interface { // CreatePod Creates a new Pod. CreatePod(context.Context, *connect.Request[v1.CreatePodRequest]) (*connect.Response[v1.CreatePodResponse], error) // DeletePod Deletes a Pod. DeletePod(context.Context, *connect.Request[v1.DeletePodRequest]) (*connect.Response[v1.DeletePodResponse], error) // ListPodsBy Lists all Pods. ListPodsBy(context.Context, *connect.Request[v1.ListPodsByRequest]) (*connect.Response[v1.ListPodsByResponse], error) // UpdatePod Updates a Pod. UpdatePod(context.Context, *connect.Request[v1.UpdatePodRequest]) (*connect.Response[v1.UpdatePodResponse], error) }
PodServiceHandler is an implementation of the cloudstack.management.pod.v1.PodService service.
type UnimplementedPodServiceHandler ¶
type UnimplementedPodServiceHandler struct{}
UnimplementedPodServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPodServiceHandler) CreatePod ¶
func (UnimplementedPodServiceHandler) CreatePod(context.Context, *connect.Request[v1.CreatePodRequest]) (*connect.Response[v1.CreatePodResponse], error)
func (UnimplementedPodServiceHandler) DeletePod ¶
func (UnimplementedPodServiceHandler) DeletePod(context.Context, *connect.Request[v1.DeletePodRequest]) (*connect.Response[v1.DeletePodResponse], error)
func (UnimplementedPodServiceHandler) ListPodsBy ¶
func (UnimplementedPodServiceHandler) ListPodsBy(context.Context, *connect.Request[v1.ListPodsByRequest]) (*connect.Response[v1.ListPodsByResponse], error)
func (UnimplementedPodServiceHandler) UpdatePod ¶
func (UnimplementedPodServiceHandler) UpdatePod(context.Context, *connect.Request[v1.UpdatePodRequest]) (*connect.Response[v1.UpdatePodResponse], error)