projectv1connect

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 (
	// ProjectServiceActivateProjectProcedure is the fully-qualified name of the ProjectService's
	// ActivateProject RPC.
	ProjectServiceActivateProjectProcedure = "/cloudstack.management.project.v1.ProjectService/ActivateProject"
	// ProjectServiceCreateProjectProcedure is the fully-qualified name of the ProjectService's
	// CreateProject RPC.
	ProjectServiceCreateProjectProcedure = "/cloudstack.management.project.v1.ProjectService/CreateProject"
	// ProjectServiceDeleteProjectProcedure is the fully-qualified name of the ProjectService's
	// DeleteProject RPC.
	ProjectServiceDeleteProjectProcedure = "/cloudstack.management.project.v1.ProjectService/DeleteProject"
	// ProjectServiceDeleteProjectInvitationProcedure is the fully-qualified name of the
	// ProjectService's DeleteProjectInvitation RPC.
	ProjectServiceDeleteProjectInvitationProcedure = "/cloudstack.management.project.v1.ProjectService/DeleteProjectInvitation"
	// ProjectServiceListProjectInvitationsProcedure is the fully-qualified name of the ProjectService's
	// ListProjectInvitations RPC.
	ProjectServiceListProjectInvitationsProcedure = "/cloudstack.management.project.v1.ProjectService/ListProjectInvitations"
	// ProjectServiceListProjectsProcedure is the fully-qualified name of the ProjectService's
	// ListProjects RPC.
	ProjectServiceListProjectsProcedure = "/cloudstack.management.project.v1.ProjectService/ListProjects"
	// ProjectServiceSuspendProjectProcedure is the fully-qualified name of the ProjectService's
	// SuspendProject RPC.
	ProjectServiceSuspendProjectProcedure = "/cloudstack.management.project.v1.ProjectService/SuspendProject"
	// ProjectServiceUpdateProjectProcedure is the fully-qualified name of the ProjectService's
	// UpdateProject RPC.
	ProjectServiceUpdateProjectProcedure = "/cloudstack.management.project.v1.ProjectService/UpdateProject"
	// ProjectServiceUpdateProjectInvitationProcedure is the fully-qualified name of the
	// ProjectService's UpdateProjectInvitation RPC.
	ProjectServiceUpdateProjectInvitationProcedure = "/cloudstack.management.project.v1.ProjectService/UpdateProjectInvitation"
)

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

Variables

This section is empty.

Functions

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.

Types

type ProjectServiceClient

type ProjectServiceClient interface {
	// ActivateProject Activates a project
	ActivateProject(context.Context, *connect.Request[v1.ActivateProjectRequest]) (*connect.Response[v1.ActivateProjectResponse], error)
	// CreateProject Creates a project
	CreateProject(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.CreateProjectResponse], error)
	// DeleteProject Deletes a project
	DeleteProject(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[v1.DeleteProjectResponse], error)
	// DeleteProjectInvitation Deletes project invitation
	DeleteProjectInvitation(context.Context, *connect.Request[v1.DeleteProjectInvitationRequest]) (*connect.Response[v1.DeleteProjectInvitationResponse], error)
	// ListProjectInvitations Lists project invitations and provides detailed information for listed invitations
	ListProjectInvitations(context.Context, *connect.Request[v1.ListProjectInvitationsRequest]) (*connect.Response[v1.ListProjectInvitationsResponse], error)
	// ListProjects Lists projects and provides detailed information for listed projects
	ListProjects(context.Context, *connect.Request[v1.ListProjectsRequest]) (*connect.Response[v1.ListProjectsResponse], error)
	// SuspendProject Suspends a project
	SuspendProject(context.Context, *connect.Request[v1.SuspendProjectRequest]) (*connect.Response[v1.SuspendProjectResponse], error)
	// UpdateProject Updates a project
	UpdateProject(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.UpdateProjectResponse], error)
	// UpdateProjectInvitation Accepts or declines project invitation
	UpdateProjectInvitation(context.Context, *connect.Request[v1.UpdateProjectInvitationRequest]) (*connect.Response[v1.UpdateProjectInvitationResponse], error)
}

ProjectServiceClient is a client for the cloudstack.management.project.v1.ProjectService service.

func NewProjectServiceClient

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

NewProjectServiceClient constructs a client for the cloudstack.management.project.v1.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 {
	// ActivateProject Activates a project
	ActivateProject(context.Context, *connect.Request[v1.ActivateProjectRequest]) (*connect.Response[v1.ActivateProjectResponse], error)
	// CreateProject Creates a project
	CreateProject(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.CreateProjectResponse], error)
	// DeleteProject Deletes a project
	DeleteProject(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[v1.DeleteProjectResponse], error)
	// DeleteProjectInvitation Deletes project invitation
	DeleteProjectInvitation(context.Context, *connect.Request[v1.DeleteProjectInvitationRequest]) (*connect.Response[v1.DeleteProjectInvitationResponse], error)
	// ListProjectInvitations Lists project invitations and provides detailed information for listed invitations
	ListProjectInvitations(context.Context, *connect.Request[v1.ListProjectInvitationsRequest]) (*connect.Response[v1.ListProjectInvitationsResponse], error)
	// ListProjects Lists projects and provides detailed information for listed projects
	ListProjects(context.Context, *connect.Request[v1.ListProjectsRequest]) (*connect.Response[v1.ListProjectsResponse], error)
	// SuspendProject Suspends a project
	SuspendProject(context.Context, *connect.Request[v1.SuspendProjectRequest]) (*connect.Response[v1.SuspendProjectResponse], error)
	// UpdateProject Updates a project
	UpdateProject(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.UpdateProjectResponse], error)
	// UpdateProjectInvitation Accepts or declines project invitation
	UpdateProjectInvitation(context.Context, *connect.Request[v1.UpdateProjectInvitationRequest]) (*connect.Response[v1.UpdateProjectInvitationResponse], error)
}

ProjectServiceHandler is an implementation of the cloudstack.management.project.v1.ProjectService service.

type UnimplementedProjectServiceHandler

type UnimplementedProjectServiceHandler struct{}

UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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