Documentation
¶
Index ¶
- Constants
- func NewConfigServiceHandler(svc ConfigServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type ConfigServiceClient
- type ConfigServiceHandler
- type UnimplementedConfigServiceHandler
- func (UnimplementedConfigServiceHandler) ListCapabilities(context.Context, *connect.Request[v1.ListCapabilitiesRequest]) (*connect.Response[v1.ListCapabilitiesResponse], error)
- func (UnimplementedConfigServiceHandler) ListCfgGroupsBy(context.Context, *connect.Request[v1.ListCfgGroupsByRequest]) (*connect.Response[v1.ListCfgGroupsByResponse], error)
- func (UnimplementedConfigServiceHandler) ListCfgsBy(context.Context, *connect.Request[v1.ListCfgsByRequest]) (*connect.Response[v1.ListCfgsByResponse], error)
- func (UnimplementedConfigServiceHandler) ListDeploymentPlanners(context.Context, *connect.Request[v1.ListDeploymentPlannersRequest]) (*connect.Response[v1.ListDeploymentPlannersResponse], error)
- func (UnimplementedConfigServiceHandler) ListHypervisorCapabilities(context.Context, *connect.Request[v1.ListHypervisorCapabilitiesRequest]) (*connect.Response[v1.ListHypervisorCapabilitiesResponse], error)
- func (UnimplementedConfigServiceHandler) ResetCfg(context.Context, *connect.Request[v1.ResetCfgRequest]) (*connect.Response[v1.ResetCfgResponse], error)
- func (UnimplementedConfigServiceHandler) UpdateCfg(context.Context, *connect.Request[v1.UpdateCfgRequest]) (*connect.Response[v1.UpdateCfgResponse], error)
- func (UnimplementedConfigServiceHandler) UpdateHypervisorCapabilities(context.Context, *connect.Request[v1.UpdateHypervisorCapabilitiesRequest]) (*connect.Response[v1.UpdateHypervisorCapabilitiesResponse], error)
Constants ¶
const ( // ConfigServiceListCapabilitiesProcedure is the fully-qualified name of the ConfigService's // ListCapabilities RPC. ConfigServiceListCapabilitiesProcedure = "/cloudstack.management.config.v1.ConfigService/ListCapabilities" // ConfigServiceListCfgGroupsByProcedure is the fully-qualified name of the ConfigService's // ListCfgGroupsBy RPC. ConfigServiceListCfgGroupsByProcedure = "/cloudstack.management.config.v1.ConfigService/ListCfgGroupsBy" // ConfigServiceListCfgsByProcedure is the fully-qualified name of the ConfigService's ListCfgsBy // RPC. ConfigServiceListCfgsByProcedure = "/cloudstack.management.config.v1.ConfigService/ListCfgsBy" // ConfigServiceListDeploymentPlannersProcedure is the fully-qualified name of the ConfigService's // ListDeploymentPlanners RPC. ConfigServiceListDeploymentPlannersProcedure = "/cloudstack.management.config.v1.ConfigService/ListDeploymentPlanners" // ConfigServiceListHypervisorCapabilitiesProcedure is the fully-qualified name of the // ConfigService's ListHypervisorCapabilities RPC. ConfigServiceListHypervisorCapabilitiesProcedure = "/cloudstack.management.config.v1.ConfigService/ListHypervisorCapabilities" // ConfigServiceResetCfgProcedure is the fully-qualified name of the ConfigService's ResetCfg RPC. ConfigServiceResetCfgProcedure = "/cloudstack.management.config.v1.ConfigService/ResetCfg" // ConfigServiceUpdateCfgProcedure is the fully-qualified name of the ConfigService's UpdateCfg RPC. ConfigServiceUpdateCfgProcedure = "/cloudstack.management.config.v1.ConfigService/UpdateCfg" // ConfigServiceUpdateHypervisorCapabilitiesProcedure is the fully-qualified name of the // ConfigService's UpdateHypervisorCapabilities RPC. ConfigServiceUpdateHypervisorCapabilitiesProcedure = "/cloudstack.management.config.v1.ConfigService/UpdateHypervisorCapabilities" )
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 (
// ConfigServiceName is the fully-qualified name of the ConfigService service.
ConfigServiceName = "cloudstack.management.config.v1.ConfigService"
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigServiceHandler ¶
func NewConfigServiceHandler(svc ConfigServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewConfigServiceHandler 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 ConfigServiceClient ¶
type ConfigServiceClient interface {
// ListCapabilities Lists capabilities
ListCapabilities(context.Context, *connect.Request[v1.ListCapabilitiesRequest]) (*connect.Response[v1.ListCapabilitiesResponse], error)
// ListCfgGroupsBy Lists all configuration groups (primarily used for UI).
ListCfgGroupsBy(context.Context, *connect.Request[v1.ListCfgGroupsByRequest]) (*connect.Response[v1.ListCfgGroupsByResponse], error)
// ListCfgsBy Lists all configurations.
ListCfgsBy(context.Context, *connect.Request[v1.ListCfgsByRequest]) (*connect.Response[v1.ListCfgsByResponse], error)
// ListDeploymentPlanners Lists all DeploymentPlanners available.
ListDeploymentPlanners(context.Context, *connect.Request[v1.ListDeploymentPlannersRequest]) (*connect.Response[v1.ListDeploymentPlannersResponse], error)
// ListHypervisorCapabilities Lists all hypervisor capabilities.
ListHypervisorCapabilities(context.Context, *connect.Request[v1.ListHypervisorCapabilitiesRequest]) (*connect.Response[v1.ListHypervisorCapabilitiesResponse], error)
// ResetCfg Resets a configuration. The configuration will be set to default value for global setting, and removed from account_details or domain_details for Account/Domain settings
ResetCfg(context.Context, *connect.Request[v1.ResetCfgRequest]) (*connect.Response[v1.ResetCfgResponse], error)
// UpdateCfg Updates a configuration.
UpdateCfg(context.Context, *connect.Request[v1.UpdateCfgRequest]) (*connect.Response[v1.UpdateCfgResponse], error)
// UpdateHypervisorCapabilities Updates a hypervisor capabilities.
UpdateHypervisorCapabilities(context.Context, *connect.Request[v1.UpdateHypervisorCapabilitiesRequest]) (*connect.Response[v1.UpdateHypervisorCapabilitiesResponse], error)
}
ConfigServiceClient is a client for the cloudstack.management.config.v1.ConfigService service.
func NewConfigServiceClient ¶
func NewConfigServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConfigServiceClient
NewConfigServiceClient constructs a client for the cloudstack.management.config.v1.ConfigService 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 ConfigServiceHandler ¶
type ConfigServiceHandler interface {
// ListCapabilities Lists capabilities
ListCapabilities(context.Context, *connect.Request[v1.ListCapabilitiesRequest]) (*connect.Response[v1.ListCapabilitiesResponse], error)
// ListCfgGroupsBy Lists all configuration groups (primarily used for UI).
ListCfgGroupsBy(context.Context, *connect.Request[v1.ListCfgGroupsByRequest]) (*connect.Response[v1.ListCfgGroupsByResponse], error)
// ListCfgsBy Lists all configurations.
ListCfgsBy(context.Context, *connect.Request[v1.ListCfgsByRequest]) (*connect.Response[v1.ListCfgsByResponse], error)
// ListDeploymentPlanners Lists all DeploymentPlanners available.
ListDeploymentPlanners(context.Context, *connect.Request[v1.ListDeploymentPlannersRequest]) (*connect.Response[v1.ListDeploymentPlannersResponse], error)
// ListHypervisorCapabilities Lists all hypervisor capabilities.
ListHypervisorCapabilities(context.Context, *connect.Request[v1.ListHypervisorCapabilitiesRequest]) (*connect.Response[v1.ListHypervisorCapabilitiesResponse], error)
// ResetCfg Resets a configuration. The configuration will be set to default value for global setting, and removed from account_details or domain_details for Account/Domain settings
ResetCfg(context.Context, *connect.Request[v1.ResetCfgRequest]) (*connect.Response[v1.ResetCfgResponse], error)
// UpdateCfg Updates a configuration.
UpdateCfg(context.Context, *connect.Request[v1.UpdateCfgRequest]) (*connect.Response[v1.UpdateCfgResponse], error)
// UpdateHypervisorCapabilities Updates a hypervisor capabilities.
UpdateHypervisorCapabilities(context.Context, *connect.Request[v1.UpdateHypervisorCapabilitiesRequest]) (*connect.Response[v1.UpdateHypervisorCapabilitiesResponse], error)
}
ConfigServiceHandler is an implementation of the cloudstack.management.config.v1.ConfigService service.
type UnimplementedConfigServiceHandler ¶
type UnimplementedConfigServiceHandler struct{}
UnimplementedConfigServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedConfigServiceHandler) ListCapabilities ¶
func (UnimplementedConfigServiceHandler) ListCapabilities(context.Context, *connect.Request[v1.ListCapabilitiesRequest]) (*connect.Response[v1.ListCapabilitiesResponse], error)
func (UnimplementedConfigServiceHandler) ListCfgGroupsBy ¶
func (UnimplementedConfigServiceHandler) ListCfgGroupsBy(context.Context, *connect.Request[v1.ListCfgGroupsByRequest]) (*connect.Response[v1.ListCfgGroupsByResponse], error)
func (UnimplementedConfigServiceHandler) ListCfgsBy ¶
func (UnimplementedConfigServiceHandler) ListCfgsBy(context.Context, *connect.Request[v1.ListCfgsByRequest]) (*connect.Response[v1.ListCfgsByResponse], error)
func (UnimplementedConfigServiceHandler) ListDeploymentPlanners ¶
func (UnimplementedConfigServiceHandler) ListDeploymentPlanners(context.Context, *connect.Request[v1.ListDeploymentPlannersRequest]) (*connect.Response[v1.ListDeploymentPlannersResponse], error)
func (UnimplementedConfigServiceHandler) ListHypervisorCapabilities ¶
func (UnimplementedConfigServiceHandler) ListHypervisorCapabilities(context.Context, *connect.Request[v1.ListHypervisorCapabilitiesRequest]) (*connect.Response[v1.ListHypervisorCapabilitiesResponse], error)
func (UnimplementedConfigServiceHandler) ResetCfg ¶
func (UnimplementedConfigServiceHandler) ResetCfg(context.Context, *connect.Request[v1.ResetCfgRequest]) (*connect.Response[v1.ResetCfgResponse], error)
func (UnimplementedConfigServiceHandler) UpdateCfg ¶
func (UnimplementedConfigServiceHandler) UpdateCfg(context.Context, *connect.Request[v1.UpdateCfgRequest]) (*connect.Response[v1.UpdateCfgResponse], error)
func (UnimplementedConfigServiceHandler) UpdateHypervisorCapabilities ¶
func (UnimplementedConfigServiceHandler) UpdateHypervisorCapabilities(context.Context, *connect.Request[v1.UpdateHypervisorCapabilitiesRequest]) (*connect.Response[v1.UpdateHypervisorCapabilitiesResponse], error)