ipv6v1connect

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 (
	// Ipv6ServiceCreateIpv6FirewallRuleProcedure is the fully-qualified name of the Ipv6Service's
	// CreateIpv6FirewallRule RPC.
	Ipv6ServiceCreateIpv6FirewallRuleProcedure = "/cloudstack.management.ipv6.v1.Ipv6Service/CreateIpv6FirewallRule"
	// Ipv6ServiceDeleteIpv6FirewallRuleProcedure is the fully-qualified name of the Ipv6Service's
	// DeleteIpv6FirewallRule RPC.
	Ipv6ServiceDeleteIpv6FirewallRuleProcedure = "/cloudstack.management.ipv6.v1.Ipv6Service/DeleteIpv6FirewallRule"
	// Ipv6ServiceListIpv6FirewallRulesProcedure is the fully-qualified name of the Ipv6Service's
	// ListIpv6FirewallRules RPC.
	Ipv6ServiceListIpv6FirewallRulesProcedure = "/cloudstack.management.ipv6.v1.Ipv6Service/ListIpv6FirewallRules"
	// Ipv6ServiceUpdateIpv6FirewallRuleProcedure is the fully-qualified name of the Ipv6Service's
	// UpdateIpv6FirewallRule RPC.
	Ipv6ServiceUpdateIpv6FirewallRuleProcedure = "/cloudstack.management.ipv6.v1.Ipv6Service/UpdateIpv6FirewallRule"
)

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

Variables

This section is empty.

Functions

func NewIpv6ServiceHandler

func NewIpv6ServiceHandler(svc Ipv6ServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewIpv6ServiceHandler 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 Ipv6ServiceClient

type Ipv6ServiceClient interface {
	// CreateIpv6FirewallRule Creates an Ipv6 firewall rule in the given network (the network must not belong to VPC)
	CreateIpv6FirewallRule(context.Context, *connect.Request[v1.CreateIpv6FirewallRuleRequest]) (*connect.Response[v1.CreateIpv6FirewallRuleResponse], error)
	// DeleteIpv6FirewallRule Deletes a IPv6 firewall rule
	DeleteIpv6FirewallRule(context.Context, *connect.Request[v1.DeleteIpv6FirewallRuleRequest]) (*connect.Response[v1.DeleteIpv6FirewallRuleResponse], error)
	// ListIpv6FirewallRules Lists all IPv6 firewall rules
	ListIpv6FirewallRules(context.Context, *connect.Request[v1.ListIpv6FirewallRulesRequest]) (*connect.Response[v1.ListIpv6FirewallRulesResponse], error)
	// UpdateIpv6FirewallRule Updates Ipv6 firewall rule with specified ID
	UpdateIpv6FirewallRule(context.Context, *connect.Request[v1.UpdateIpv6FirewallRuleRequest]) (*connect.Response[v1.UpdateIpv6FirewallRuleResponse], error)
}

Ipv6ServiceClient is a client for the cloudstack.management.ipv6.v1.Ipv6Service service.

func NewIpv6ServiceClient

func NewIpv6ServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) Ipv6ServiceClient

NewIpv6ServiceClient constructs a client for the cloudstack.management.ipv6.v1.Ipv6Service 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 Ipv6ServiceHandler

type Ipv6ServiceHandler interface {
	// CreateIpv6FirewallRule Creates an Ipv6 firewall rule in the given network (the network must not belong to VPC)
	CreateIpv6FirewallRule(context.Context, *connect.Request[v1.CreateIpv6FirewallRuleRequest]) (*connect.Response[v1.CreateIpv6FirewallRuleResponse], error)
	// DeleteIpv6FirewallRule Deletes a IPv6 firewall rule
	DeleteIpv6FirewallRule(context.Context, *connect.Request[v1.DeleteIpv6FirewallRuleRequest]) (*connect.Response[v1.DeleteIpv6FirewallRuleResponse], error)
	// ListIpv6FirewallRules Lists all IPv6 firewall rules
	ListIpv6FirewallRules(context.Context, *connect.Request[v1.ListIpv6FirewallRulesRequest]) (*connect.Response[v1.ListIpv6FirewallRulesResponse], error)
	// UpdateIpv6FirewallRule Updates Ipv6 firewall rule with specified ID
	UpdateIpv6FirewallRule(context.Context, *connect.Request[v1.UpdateIpv6FirewallRuleRequest]) (*connect.Response[v1.UpdateIpv6FirewallRuleResponse], error)
}

Ipv6ServiceHandler is an implementation of the cloudstack.management.ipv6.v1.Ipv6Service service.

type UnimplementedIpv6ServiceHandler

type UnimplementedIpv6ServiceHandler struct{}

UnimplementedIpv6ServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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