userdatav1connect

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserdataServiceDeleteUserDataProcedure is the fully-qualified name of the UserdataService's
	// DeleteUserData RPC.
	UserdataServiceDeleteUserDataProcedure = "/cloudstack.management.userdata.v1.UserdataService/DeleteUserData"
	// UserdataServiceLinkUserDataToTemplateProcedure is the fully-qualified name of the
	// UserdataService's LinkUserDataToTemplate RPC.
	UserdataServiceLinkUserDataToTemplateProcedure = "/cloudstack.management.userdata.v1.UserdataService/LinkUserDataToTemplate"
	// UserdataServiceListUserDataProcedure is the fully-qualified name of the UserdataService's
	// ListUserData RPC.
	UserdataServiceListUserDataProcedure = "/cloudstack.management.userdata.v1.UserdataService/ListUserData"
	// UserdataServiceRegisterUserDataProcedure is the fully-qualified name of the UserdataService's
	// RegisterUserData RPC.
	UserdataServiceRegisterUserDataProcedure = "/cloudstack.management.userdata.v1.UserdataService/RegisterUserData"
)

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 (
	// UserdataServiceName is the fully-qualified name of the UserdataService service.
	UserdataServiceName = "cloudstack.management.userdata.v1.UserdataService"
)

Variables

This section is empty.

Functions

func NewUserdataServiceHandler

func NewUserdataServiceHandler(svc UserdataServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUserdataServiceHandler 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 UnimplementedUserdataServiceHandler

type UnimplementedUserdataServiceHandler struct{}

UnimplementedUserdataServiceHandler returns CodeUnimplemented from all methods.

type UserdataServiceClient

type UserdataServiceClient interface {
	// DeleteUserData Deletes a userdata
	DeleteUserData(context.Context, *connect.Request[v1.DeleteUserDataRequest]) (*connect.Response[v1.DeleteUserDataResponse], error)
	// LinkUserDataToTemplate Link or unlink a userdata to a template.
	LinkUserDataToTemplate(context.Context, *connect.Request[v1.LinkUserDataToTemplateRequest]) (*connect.Response[v1.LinkUserDataToTemplateResponse], error)
	// ListUserData List registered userdatas
	ListUserData(context.Context, *connect.Request[v1.ListUserDataRequest]) (*connect.Response[v1.ListUserDataResponse], error)
	// RegisterUserData Register a new userdata.
	RegisterUserData(context.Context, *connect.Request[v1.RegisterUserDataRequest]) (*connect.Response[v1.RegisterUserDataResponse], error)
}

UserdataServiceClient is a client for the cloudstack.management.userdata.v1.UserdataService service.

func NewUserdataServiceClient

func NewUserdataServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserdataServiceClient

NewUserdataServiceClient constructs a client for the cloudstack.management.userdata.v1.UserdataService 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 UserdataServiceHandler

type UserdataServiceHandler interface {
	// DeleteUserData Deletes a userdata
	DeleteUserData(context.Context, *connect.Request[v1.DeleteUserDataRequest]) (*connect.Response[v1.DeleteUserDataResponse], error)
	// LinkUserDataToTemplate Link or unlink a userdata to a template.
	LinkUserDataToTemplate(context.Context, *connect.Request[v1.LinkUserDataToTemplateRequest]) (*connect.Response[v1.LinkUserDataToTemplateResponse], error)
	// ListUserData List registered userdatas
	ListUserData(context.Context, *connect.Request[v1.ListUserDataRequest]) (*connect.Response[v1.ListUserDataResponse], error)
	// RegisterUserData Register a new userdata.
	RegisterUserData(context.Context, *connect.Request[v1.RegisterUserDataRequest]) (*connect.Response[v1.RegisterUserDataResponse], error)
}

UserdataServiceHandler is an implementation of the cloudstack.management.userdata.v1.UserdataService service.

Jump to

Keyboard shortcuts

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