Documentation
¶
Index ¶
- Constants
- func NewZoneServiceHandler(svc ZoneServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type UnimplementedZoneServiceHandler
- func (UnimplementedZoneServiceHandler) CreateZone(context.Context, *connect.Request[v1.CreateZoneRequest]) (*connect.Response[v1.CreateZoneResponse], error)
- func (UnimplementedZoneServiceHandler) DeleteZone(context.Context, *connect.Request[v1.DeleteZoneRequest]) (*connect.Response[v1.DeleteZoneResponse], error)
- func (UnimplementedZoneServiceHandler) ListZones(context.Context, *connect.Request[v1.ListZonesRequest]) (*connect.Response[v1.ListZonesResponse], error)
- func (UnimplementedZoneServiceHandler) ListZonesCmdByAdmin(context.Context, *connect.Request[v1.ListZonesCmdByAdminRequest]) (*connect.Response[v1.ListZonesCmdByAdminResponse], error)
- func (UnimplementedZoneServiceHandler) MarkDefaultZoneForAccount(context.Context, *connect.Request[v1.MarkDefaultZoneForAccountRequest]) (*connect.Response[v1.MarkDefaultZoneForAccountResponse], error)
- func (UnimplementedZoneServiceHandler) UpdateZone(context.Context, *connect.Request[v1.UpdateZoneRequest]) (*connect.Response[v1.UpdateZoneResponse], error)
- type ZoneServiceClient
- type ZoneServiceHandler
Constants ¶
const ( // ZoneServiceCreateZoneProcedure is the fully-qualified name of the ZoneService's CreateZone RPC. ZoneServiceCreateZoneProcedure = "/cloudstack.management.zone.v1.ZoneService/CreateZone" // ZoneServiceDeleteZoneProcedure is the fully-qualified name of the ZoneService's DeleteZone RPC. ZoneServiceDeleteZoneProcedure = "/cloudstack.management.zone.v1.ZoneService/DeleteZone" // ZoneServiceListZonesProcedure is the fully-qualified name of the ZoneService's ListZones RPC. ZoneServiceListZonesProcedure = "/cloudstack.management.zone.v1.ZoneService/ListZones" // ZoneServiceListZonesCmdByAdminProcedure is the fully-qualified name of the ZoneService's // ListZonesCmdByAdmin RPC. ZoneServiceListZonesCmdByAdminProcedure = "/cloudstack.management.zone.v1.ZoneService/ListZonesCmdByAdmin" // ZoneServiceMarkDefaultZoneForAccountProcedure is the fully-qualified name of the ZoneService's // MarkDefaultZoneForAccount RPC. ZoneServiceMarkDefaultZoneForAccountProcedure = "/cloudstack.management.zone.v1.ZoneService/MarkDefaultZoneForAccount" // ZoneServiceUpdateZoneProcedure is the fully-qualified name of the ZoneService's UpdateZone RPC. ZoneServiceUpdateZoneProcedure = "/cloudstack.management.zone.v1.ZoneService/UpdateZone" )
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.
const (
// ZoneServiceName is the fully-qualified name of the ZoneService service.
ZoneServiceName = "cloudstack.management.zone.v1.ZoneService"
)
Variables ¶
This section is empty.
Functions ¶
func NewZoneServiceHandler ¶
func NewZoneServiceHandler(svc ZoneServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewZoneServiceHandler 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 UnimplementedZoneServiceHandler ¶
type UnimplementedZoneServiceHandler struct{}
UnimplementedZoneServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedZoneServiceHandler) CreateZone ¶
func (UnimplementedZoneServiceHandler) CreateZone(context.Context, *connect.Request[v1.CreateZoneRequest]) (*connect.Response[v1.CreateZoneResponse], error)
func (UnimplementedZoneServiceHandler) DeleteZone ¶
func (UnimplementedZoneServiceHandler) DeleteZone(context.Context, *connect.Request[v1.DeleteZoneRequest]) (*connect.Response[v1.DeleteZoneResponse], error)
func (UnimplementedZoneServiceHandler) ListZones ¶
func (UnimplementedZoneServiceHandler) ListZones(context.Context, *connect.Request[v1.ListZonesRequest]) (*connect.Response[v1.ListZonesResponse], error)
func (UnimplementedZoneServiceHandler) ListZonesCmdByAdmin ¶
func (UnimplementedZoneServiceHandler) ListZonesCmdByAdmin(context.Context, *connect.Request[v1.ListZonesCmdByAdminRequest]) (*connect.Response[v1.ListZonesCmdByAdminResponse], error)
func (UnimplementedZoneServiceHandler) MarkDefaultZoneForAccount ¶
func (UnimplementedZoneServiceHandler) MarkDefaultZoneForAccount(context.Context, *connect.Request[v1.MarkDefaultZoneForAccountRequest]) (*connect.Response[v1.MarkDefaultZoneForAccountResponse], error)
func (UnimplementedZoneServiceHandler) UpdateZone ¶
func (UnimplementedZoneServiceHandler) UpdateZone(context.Context, *connect.Request[v1.UpdateZoneRequest]) (*connect.Response[v1.UpdateZoneResponse], error)
type ZoneServiceClient ¶
type ZoneServiceClient interface {
// CreateZone Creates a Zone.
CreateZone(context.Context, *connect.Request[v1.CreateZoneRequest]) (*connect.Response[v1.CreateZoneResponse], error)
// DeleteZone Deletes a Zone.
DeleteZone(context.Context, *connect.Request[v1.DeleteZoneRequest]) (*connect.Response[v1.DeleteZoneResponse], error)
// ListZones Lists zones
ListZones(context.Context, *connect.Request[v1.ListZonesRequest]) (*connect.Response[v1.ListZonesResponse], error)
// ListZonesCmdByAdmin Lists zones
ListZonesCmdByAdmin(context.Context, *connect.Request[v1.ListZonesCmdByAdminRequest]) (*connect.Response[v1.ListZonesCmdByAdminResponse], error)
// MarkDefaultZoneForAccount Marks a default zone for this account
MarkDefaultZoneForAccount(context.Context, *connect.Request[v1.MarkDefaultZoneForAccountRequest]) (*connect.Response[v1.MarkDefaultZoneForAccountResponse], error)
// UpdateZone Updates a Zone.
UpdateZone(context.Context, *connect.Request[v1.UpdateZoneRequest]) (*connect.Response[v1.UpdateZoneResponse], error)
}
ZoneServiceClient is a client for the cloudstack.management.zone.v1.ZoneService service.
func NewZoneServiceClient ¶
func NewZoneServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ZoneServiceClient
NewZoneServiceClient constructs a client for the cloudstack.management.zone.v1.ZoneService 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 ZoneServiceHandler ¶
type ZoneServiceHandler interface {
// CreateZone Creates a Zone.
CreateZone(context.Context, *connect.Request[v1.CreateZoneRequest]) (*connect.Response[v1.CreateZoneResponse], error)
// DeleteZone Deletes a Zone.
DeleteZone(context.Context, *connect.Request[v1.DeleteZoneRequest]) (*connect.Response[v1.DeleteZoneResponse], error)
// ListZones Lists zones
ListZones(context.Context, *connect.Request[v1.ListZonesRequest]) (*connect.Response[v1.ListZonesResponse], error)
// ListZonesCmdByAdmin Lists zones
ListZonesCmdByAdmin(context.Context, *connect.Request[v1.ListZonesCmdByAdminRequest]) (*connect.Response[v1.ListZonesCmdByAdminResponse], error)
// MarkDefaultZoneForAccount Marks a default zone for this account
MarkDefaultZoneForAccount(context.Context, *connect.Request[v1.MarkDefaultZoneForAccountRequest]) (*connect.Response[v1.MarkDefaultZoneForAccountResponse], error)
// UpdateZone Updates a Zone.
UpdateZone(context.Context, *connect.Request[v1.UpdateZoneRequest]) (*connect.Response[v1.UpdateZoneResponse], error)
}
ZoneServiceHandler is an implementation of the cloudstack.management.zone.v1.ZoneService service.