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 (
	// ProjectServiceCreateProjectRoleProcedure is the fully-qualified name of the ProjectService's
	// CreateProjectRole RPC.
	ProjectServiceCreateProjectRoleProcedure = "/cloudstack.management.acl.project.v1.ProjectService/CreateProjectRole"
	// ProjectServiceCreateProjectRolePermissionProcedure is the fully-qualified name of the
	// ProjectService's CreateProjectRolePermission RPC.
	ProjectServiceCreateProjectRolePermissionProcedure = "/cloudstack.management.acl.project.v1.ProjectService/CreateProjectRolePermission"
	// ProjectServiceDeleteProjectRoleProcedure is the fully-qualified name of the ProjectService's
	// DeleteProjectRole RPC.
	ProjectServiceDeleteProjectRoleProcedure = "/cloudstack.management.acl.project.v1.ProjectService/DeleteProjectRole"
	// ProjectServiceDeleteProjectRolePermissionProcedure is the fully-qualified name of the
	// ProjectService's DeleteProjectRolePermission RPC.
	ProjectServiceDeleteProjectRolePermissionProcedure = "/cloudstack.management.acl.project.v1.ProjectService/DeleteProjectRolePermission"
	// ProjectServiceListProjectRolePermissionsProcedure is the fully-qualified name of the
	// ProjectService's ListProjectRolePermissions RPC.
	ProjectServiceListProjectRolePermissionsProcedure = "/cloudstack.management.acl.project.v1.ProjectService/ListProjectRolePermissions"
	// ProjectServiceListProjectRolesProcedure is the fully-qualified name of the ProjectService's
	// ListProjectRoles RPC.
	ProjectServiceListProjectRolesProcedure = "/cloudstack.management.acl.project.v1.ProjectService/ListProjectRoles"
	// ProjectServiceUpdateProjectRoleProcedure is the fully-qualified name of the ProjectService's
	// UpdateProjectRole RPC.
	ProjectServiceUpdateProjectRoleProcedure = "/cloudstack.management.acl.project.v1.ProjectService/UpdateProjectRole"
	// ProjectServiceUpdateProjectRolePermissionProcedure is the fully-qualified name of the
	// ProjectService's UpdateProjectRolePermission RPC.
	ProjectServiceUpdateProjectRolePermissionProcedure = "/cloudstack.management.acl.project.v1.ProjectService/UpdateProjectRolePermission"
)

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.acl.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 {
	// CreateProjectRole Creates a Project role
	CreateProjectRole(context.Context, *connect.Request[v1.CreateProjectRoleRequest]) (*connect.Response[v1.CreateProjectRoleResponse], error)
	// CreateProjectRolePermission Adds API permissions to a project role
	CreateProjectRolePermission(context.Context, *connect.Request[v1.CreateProjectRolePermissionRequest]) (*connect.Response[v1.CreateProjectRolePermissionResponse], error)
	// DeleteProjectRole Delete Project roles in CloudStack
	DeleteProjectRole(context.Context, *connect.Request[v1.DeleteProjectRoleRequest]) (*connect.Response[v1.DeleteProjectRoleResponse], error)
	// DeleteProjectRolePermission Deletes a project role permission in the project
	DeleteProjectRolePermission(context.Context, *connect.Request[v1.DeleteProjectRolePermissionRequest]) (*connect.Response[v1.DeleteProjectRolePermissionResponse], error)
	// ListProjectRolePermissions Lists a project's project role permissions
	ListProjectRolePermissions(context.Context, *connect.Request[v1.ListProjectRolePermissionsRequest]) (*connect.Response[v1.ListProjectRolePermissionsResponse], error)
	// ListProjectRoles Lists Project roles in CloudStack
	ListProjectRoles(context.Context, *connect.Request[v1.ListProjectRolesRequest]) (*connect.Response[v1.ListProjectRolesResponse], error)
	// UpdateProjectRole Creates a Project role
	UpdateProjectRole(context.Context, *connect.Request[v1.UpdateProjectRoleRequest]) (*connect.Response[v1.UpdateProjectRoleResponse], error)
	// UpdateProjectRolePermission Updates a project role permission and/or order
	UpdateProjectRolePermission(context.Context, *connect.Request[v1.UpdateProjectRolePermissionRequest]) (*connect.Response[v1.UpdateProjectRolePermissionResponse], error)
}

ProjectServiceClient is a client for the cloudstack.management.acl.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.acl.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 {
	// CreateProjectRole Creates a Project role
	CreateProjectRole(context.Context, *connect.Request[v1.CreateProjectRoleRequest]) (*connect.Response[v1.CreateProjectRoleResponse], error)
	// CreateProjectRolePermission Adds API permissions to a project role
	CreateProjectRolePermission(context.Context, *connect.Request[v1.CreateProjectRolePermissionRequest]) (*connect.Response[v1.CreateProjectRolePermissionResponse], error)
	// DeleteProjectRole Delete Project roles in CloudStack
	DeleteProjectRole(context.Context, *connect.Request[v1.DeleteProjectRoleRequest]) (*connect.Response[v1.DeleteProjectRoleResponse], error)
	// DeleteProjectRolePermission Deletes a project role permission in the project
	DeleteProjectRolePermission(context.Context, *connect.Request[v1.DeleteProjectRolePermissionRequest]) (*connect.Response[v1.DeleteProjectRolePermissionResponse], error)
	// ListProjectRolePermissions Lists a project's project role permissions
	ListProjectRolePermissions(context.Context, *connect.Request[v1.ListProjectRolePermissionsRequest]) (*connect.Response[v1.ListProjectRolePermissionsResponse], error)
	// ListProjectRoles Lists Project roles in CloudStack
	ListProjectRoles(context.Context, *connect.Request[v1.ListProjectRolesRequest]) (*connect.Response[v1.ListProjectRolesResponse], error)
	// UpdateProjectRole Creates a Project role
	UpdateProjectRole(context.Context, *connect.Request[v1.UpdateProjectRoleRequest]) (*connect.Response[v1.UpdateProjectRoleResponse], error)
	// UpdateProjectRolePermission Updates a project role permission and/or order
	UpdateProjectRolePermission(context.Context, *connect.Request[v1.UpdateProjectRolePermissionRequest]) (*connect.Response[v1.UpdateProjectRolePermissionResponse], error)
}

ProjectServiceHandler is an implementation of the cloudstack.management.acl.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