securitygroupv1connect

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 (
	// SecuritygroupServiceAuthorizeSecurityGroupEgressProcedure is the fully-qualified name of the
	// SecuritygroupService's AuthorizeSecurityGroupEgress RPC.
	SecuritygroupServiceAuthorizeSecurityGroupEgressProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/AuthorizeSecurityGroupEgress"
	// SecuritygroupServiceAuthorizeSecurityGroupIngressProcedure is the fully-qualified name of the
	// SecuritygroupService's AuthorizeSecurityGroupIngress RPC.
	SecuritygroupServiceAuthorizeSecurityGroupIngressProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/AuthorizeSecurityGroupIngress"
	// SecuritygroupServiceCreateSecurityGroupProcedure is the fully-qualified name of the
	// SecuritygroupService's CreateSecurityGroup RPC.
	SecuritygroupServiceCreateSecurityGroupProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/CreateSecurityGroup"
	// SecuritygroupServiceDeleteSecurityGroupProcedure is the fully-qualified name of the
	// SecuritygroupService's DeleteSecurityGroup RPC.
	SecuritygroupServiceDeleteSecurityGroupProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/DeleteSecurityGroup"
	// SecuritygroupServiceListSecurityGroupsProcedure is the fully-qualified name of the
	// SecuritygroupService's ListSecurityGroups RPC.
	SecuritygroupServiceListSecurityGroupsProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/ListSecurityGroups"
	// SecuritygroupServiceRevokeSecurityGroupEgressProcedure is the fully-qualified name of the
	// SecuritygroupService's RevokeSecurityGroupEgress RPC.
	SecuritygroupServiceRevokeSecurityGroupEgressProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/RevokeSecurityGroupEgress"
	// SecuritygroupServiceRevokeSecurityGroupIngressProcedure is the fully-qualified name of the
	// SecuritygroupService's RevokeSecurityGroupIngress RPC.
	SecuritygroupServiceRevokeSecurityGroupIngressProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/RevokeSecurityGroupIngress"
	// SecuritygroupServiceUpdateSecurityGroupProcedure is the fully-qualified name of the
	// SecuritygroupService's UpdateSecurityGroup RPC.
	SecuritygroupServiceUpdateSecurityGroupProcedure = "/cloudstack.management.securitygroup.v1.SecuritygroupService/UpdateSecurityGroup"
)

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

Variables

This section is empty.

Functions

func NewSecuritygroupServiceHandler

func NewSecuritygroupServiceHandler(svc SecuritygroupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSecuritygroupServiceHandler 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 SecuritygroupServiceClient

type SecuritygroupServiceClient interface {
	// AuthorizeSecurityGroupEgress Authorizes a particular egress rule for this security group
	AuthorizeSecurityGroupEgress(context.Context, *connect.Request[v1.AuthorizeSecurityGroupEgressRequest]) (*connect.Response[v1.AuthorizeSecurityGroupEgressResponse], error)
	// AuthorizeSecurityGroupIngress Authorizes a particular ingress rule for this security group
	AuthorizeSecurityGroupIngress(context.Context, *connect.Request[v1.AuthorizeSecurityGroupIngressRequest]) (*connect.Response[v1.AuthorizeSecurityGroupIngressResponse], error)
	// CreateSecurityGroup Creates a security group
	CreateSecurityGroup(context.Context, *connect.Request[v1.CreateSecurityGroupRequest]) (*connect.Response[v1.CreateSecurityGroupResponse], error)
	// DeleteSecurityGroup Deletes security group
	DeleteSecurityGroup(context.Context, *connect.Request[v1.DeleteSecurityGroupRequest]) (*connect.Response[v1.DeleteSecurityGroupResponse], error)
	// ListSecurityGroups Lists security groups
	ListSecurityGroups(context.Context, *connect.Request[v1.ListSecurityGroupsRequest]) (*connect.Response[v1.ListSecurityGroupsResponse], error)
	// RevokeSecurityGroupEgress Deletes a particular egress rule from this security group
	RevokeSecurityGroupEgress(context.Context, *connect.Request[v1.RevokeSecurityGroupEgressRequest]) (*connect.Response[v1.RevokeSecurityGroupEgressResponse], error)
	// RevokeSecurityGroupIngress Deletes a particular ingress rule from this security group
	RevokeSecurityGroupIngress(context.Context, *connect.Request[v1.RevokeSecurityGroupIngressRequest]) (*connect.Response[v1.RevokeSecurityGroupIngressResponse], error)
	// UpdateSecurityGroup Updates a security group
	UpdateSecurityGroup(context.Context, *connect.Request[v1.UpdateSecurityGroupRequest]) (*connect.Response[v1.UpdateSecurityGroupResponse], error)
}

SecuritygroupServiceClient is a client for the cloudstack.management.securitygroup.v1.SecuritygroupService service.

func NewSecuritygroupServiceClient

func NewSecuritygroupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SecuritygroupServiceClient

NewSecuritygroupServiceClient constructs a client for the cloudstack.management.securitygroup.v1.SecuritygroupService 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 SecuritygroupServiceHandler

type SecuritygroupServiceHandler interface {
	// AuthorizeSecurityGroupEgress Authorizes a particular egress rule for this security group
	AuthorizeSecurityGroupEgress(context.Context, *connect.Request[v1.AuthorizeSecurityGroupEgressRequest]) (*connect.Response[v1.AuthorizeSecurityGroupEgressResponse], error)
	// AuthorizeSecurityGroupIngress Authorizes a particular ingress rule for this security group
	AuthorizeSecurityGroupIngress(context.Context, *connect.Request[v1.AuthorizeSecurityGroupIngressRequest]) (*connect.Response[v1.AuthorizeSecurityGroupIngressResponse], error)
	// CreateSecurityGroup Creates a security group
	CreateSecurityGroup(context.Context, *connect.Request[v1.CreateSecurityGroupRequest]) (*connect.Response[v1.CreateSecurityGroupResponse], error)
	// DeleteSecurityGroup Deletes security group
	DeleteSecurityGroup(context.Context, *connect.Request[v1.DeleteSecurityGroupRequest]) (*connect.Response[v1.DeleteSecurityGroupResponse], error)
	// ListSecurityGroups Lists security groups
	ListSecurityGroups(context.Context, *connect.Request[v1.ListSecurityGroupsRequest]) (*connect.Response[v1.ListSecurityGroupsResponse], error)
	// RevokeSecurityGroupEgress Deletes a particular egress rule from this security group
	RevokeSecurityGroupEgress(context.Context, *connect.Request[v1.RevokeSecurityGroupEgressRequest]) (*connect.Response[v1.RevokeSecurityGroupEgressResponse], error)
	// RevokeSecurityGroupIngress Deletes a particular ingress rule from this security group
	RevokeSecurityGroupIngress(context.Context, *connect.Request[v1.RevokeSecurityGroupIngressRequest]) (*connect.Response[v1.RevokeSecurityGroupIngressResponse], error)
	// UpdateSecurityGroup Updates a security group
	UpdateSecurityGroup(context.Context, *connect.Request[v1.UpdateSecurityGroupRequest]) (*connect.Response[v1.UpdateSecurityGroupResponse], error)
}

SecuritygroupServiceHandler is an implementation of the cloudstack.management.securitygroup.v1.SecuritygroupService service.

type UnimplementedSecuritygroupServiceHandler

type UnimplementedSecuritygroupServiceHandler struct{}

UnimplementedSecuritygroupServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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