Documentation
¶
Index ¶
- Constants
- func NewOutofbandmanagementServiceHandler(svc OutofbandmanagementServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type OutofbandmanagementServiceClient
- type OutofbandmanagementServiceHandler
- type UnimplementedOutofbandmanagementServiceHandler
- func (UnimplementedOutofbandmanagementServiceHandler) ChangeOutOfBandManagementPassword(context.Context, *connect.Request[v1.ChangeOutOfBandManagementPasswordRequest]) (*connect.Response[v1.ChangeOutOfBandManagementPasswordResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) ConfigureOutOfBandManagement(context.Context, *connect.Request[v1.ConfigureOutOfBandManagementRequest]) (*connect.Response[v1.ConfigureOutOfBandManagementResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForCluster(context.Context, ...) (*connect.Response[v1.DisableOutOfBandManagementForClusterResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForHost(context.Context, *connect.Request[v1.DisableOutOfBandManagementForHostRequest]) (*connect.Response[v1.DisableOutOfBandManagementForHostResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForZone(context.Context, *connect.Request[v1.DisableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.DisableOutOfBandManagementForZoneResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForCluster(context.Context, ...) (*connect.Response[v1.EnableOutOfBandManagementForClusterResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForHost(context.Context, *connect.Request[v1.EnableOutOfBandManagementForHostRequest]) (*connect.Response[v1.EnableOutOfBandManagementForHostResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForZone(context.Context, *connect.Request[v1.EnableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.EnableOutOfBandManagementForZoneResponse], error)
- func (UnimplementedOutofbandmanagementServiceHandler) IssueOutOfBandManagementPowerAction(context.Context, ...) (*connect.Response[v1.IssueOutOfBandManagementPowerActionResponse], error)
Constants ¶
const ( // OutofbandmanagementServiceChangeOutOfBandManagementPasswordProcedure is the fully-qualified name // of the OutofbandmanagementService's ChangeOutOfBandManagementPassword RPC. OutofbandmanagementServiceChangeOutOfBandManagementPasswordProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/ChangeOutOfBandManagementPassword" // OutofbandmanagementServiceConfigureOutOfBandManagementProcedure is the fully-qualified name of // the OutofbandmanagementService's ConfigureOutOfBandManagement RPC. OutofbandmanagementServiceConfigureOutOfBandManagementProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/ConfigureOutOfBandManagement" // OutofbandmanagementServiceDisableOutOfBandManagementForClusterProcedure is the fully-qualified // name of the OutofbandmanagementService's DisableOutOfBandManagementForCluster RPC. OutofbandmanagementServiceDisableOutOfBandManagementForClusterProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/DisableOutOfBandManagementForCluster" // OutofbandmanagementServiceDisableOutOfBandManagementForHostProcedure is the fully-qualified name // of the OutofbandmanagementService's DisableOutOfBandManagementForHost RPC. OutofbandmanagementServiceDisableOutOfBandManagementForHostProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/DisableOutOfBandManagementForHost" // OutofbandmanagementServiceDisableOutOfBandManagementForZoneProcedure is the fully-qualified name // of the OutofbandmanagementService's DisableOutOfBandManagementForZone RPC. OutofbandmanagementServiceDisableOutOfBandManagementForZoneProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/DisableOutOfBandManagementForZone" // OutofbandmanagementServiceEnableOutOfBandManagementForClusterProcedure is the fully-qualified // name of the OutofbandmanagementService's EnableOutOfBandManagementForCluster RPC. OutofbandmanagementServiceEnableOutOfBandManagementForClusterProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/EnableOutOfBandManagementForCluster" // OutofbandmanagementServiceEnableOutOfBandManagementForHostProcedure is the fully-qualified name // of the OutofbandmanagementService's EnableOutOfBandManagementForHost RPC. OutofbandmanagementServiceEnableOutOfBandManagementForHostProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/EnableOutOfBandManagementForHost" // OutofbandmanagementServiceEnableOutOfBandManagementForZoneProcedure is the fully-qualified name // of the OutofbandmanagementService's EnableOutOfBandManagementForZone RPC. OutofbandmanagementServiceEnableOutOfBandManagementForZoneProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/EnableOutOfBandManagementForZone" // OutofbandmanagementServiceIssueOutOfBandManagementPowerActionProcedure is the fully-qualified // name of the OutofbandmanagementService's IssueOutOfBandManagementPowerAction RPC. OutofbandmanagementServiceIssueOutOfBandManagementPowerActionProcedure = "/cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService/IssueOutOfBandManagementPowerAction" )
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 ( // OutofbandmanagementServiceName is the fully-qualified name of the OutofbandmanagementService // service. OutofbandmanagementServiceName = "cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService" )
Variables ¶
This section is empty.
Functions ¶
func NewOutofbandmanagementServiceHandler ¶
func NewOutofbandmanagementServiceHandler(svc OutofbandmanagementServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewOutofbandmanagementServiceHandler 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 OutofbandmanagementServiceClient ¶
type OutofbandmanagementServiceClient interface {
// ChangeOutOfBandManagementPassword Changes out-of-band management interface password on the host and updates the interface configuration in CloudStack if the operation succeeds, else reverts the old password
ChangeOutOfBandManagementPassword(context.Context, *connect.Request[v1.ChangeOutOfBandManagementPasswordRequest]) (*connect.Response[v1.ChangeOutOfBandManagementPasswordResponse], error)
// ConfigureOutOfBandManagement Configures a host's out-of-band management interface
ConfigureOutOfBandManagement(context.Context, *connect.Request[v1.ConfigureOutOfBandManagementRequest]) (*connect.Response[v1.ConfigureOutOfBandManagementResponse], error)
// DisableOutOfBandManagementForCluster Disables out-of-band management for a cluster
DisableOutOfBandManagementForCluster(context.Context, *connect.Request[v1.DisableOutOfBandManagementForClusterRequest]) (*connect.Response[v1.DisableOutOfBandManagementForClusterResponse], error)
// DisableOutOfBandManagementForHost Disables out-of-band management for a host
DisableOutOfBandManagementForHost(context.Context, *connect.Request[v1.DisableOutOfBandManagementForHostRequest]) (*connect.Response[v1.DisableOutOfBandManagementForHostResponse], error)
// DisableOutOfBandManagementForZone Disables out-of-band management for a zone
DisableOutOfBandManagementForZone(context.Context, *connect.Request[v1.DisableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.DisableOutOfBandManagementForZoneResponse], error)
// EnableOutOfBandManagementForCluster Enables out-of-band management for a cluster
EnableOutOfBandManagementForCluster(context.Context, *connect.Request[v1.EnableOutOfBandManagementForClusterRequest]) (*connect.Response[v1.EnableOutOfBandManagementForClusterResponse], error)
// EnableOutOfBandManagementForHost Enables out-of-band management for a host
EnableOutOfBandManagementForHost(context.Context, *connect.Request[v1.EnableOutOfBandManagementForHostRequest]) (*connect.Response[v1.EnableOutOfBandManagementForHostResponse], error)
// EnableOutOfBandManagementForZone Enables out-of-band management for a zone
EnableOutOfBandManagementForZone(context.Context, *connect.Request[v1.EnableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.EnableOutOfBandManagementForZoneResponse], error)
// IssueOutOfBandManagementPowerAction Initiates the specified power action to the host's out-of-band management interface
IssueOutOfBandManagementPowerAction(context.Context, *connect.Request[v1.IssueOutOfBandManagementPowerActionRequest]) (*connect.Response[v1.IssueOutOfBandManagementPowerActionResponse], error)
}
OutofbandmanagementServiceClient is a client for the cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService service.
func NewOutofbandmanagementServiceClient ¶
func NewOutofbandmanagementServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OutofbandmanagementServiceClient
NewOutofbandmanagementServiceClient constructs a client for the cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService 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 OutofbandmanagementServiceHandler ¶
type OutofbandmanagementServiceHandler interface {
// ChangeOutOfBandManagementPassword Changes out-of-band management interface password on the host and updates the interface configuration in CloudStack if the operation succeeds, else reverts the old password
ChangeOutOfBandManagementPassword(context.Context, *connect.Request[v1.ChangeOutOfBandManagementPasswordRequest]) (*connect.Response[v1.ChangeOutOfBandManagementPasswordResponse], error)
// ConfigureOutOfBandManagement Configures a host's out-of-band management interface
ConfigureOutOfBandManagement(context.Context, *connect.Request[v1.ConfigureOutOfBandManagementRequest]) (*connect.Response[v1.ConfigureOutOfBandManagementResponse], error)
// DisableOutOfBandManagementForCluster Disables out-of-band management for a cluster
DisableOutOfBandManagementForCluster(context.Context, *connect.Request[v1.DisableOutOfBandManagementForClusterRequest]) (*connect.Response[v1.DisableOutOfBandManagementForClusterResponse], error)
// DisableOutOfBandManagementForHost Disables out-of-band management for a host
DisableOutOfBandManagementForHost(context.Context, *connect.Request[v1.DisableOutOfBandManagementForHostRequest]) (*connect.Response[v1.DisableOutOfBandManagementForHostResponse], error)
// DisableOutOfBandManagementForZone Disables out-of-band management for a zone
DisableOutOfBandManagementForZone(context.Context, *connect.Request[v1.DisableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.DisableOutOfBandManagementForZoneResponse], error)
// EnableOutOfBandManagementForCluster Enables out-of-band management for a cluster
EnableOutOfBandManagementForCluster(context.Context, *connect.Request[v1.EnableOutOfBandManagementForClusterRequest]) (*connect.Response[v1.EnableOutOfBandManagementForClusterResponse], error)
// EnableOutOfBandManagementForHost Enables out-of-band management for a host
EnableOutOfBandManagementForHost(context.Context, *connect.Request[v1.EnableOutOfBandManagementForHostRequest]) (*connect.Response[v1.EnableOutOfBandManagementForHostResponse], error)
// EnableOutOfBandManagementForZone Enables out-of-band management for a zone
EnableOutOfBandManagementForZone(context.Context, *connect.Request[v1.EnableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.EnableOutOfBandManagementForZoneResponse], error)
// IssueOutOfBandManagementPowerAction Initiates the specified power action to the host's out-of-band management interface
IssueOutOfBandManagementPowerAction(context.Context, *connect.Request[v1.IssueOutOfBandManagementPowerActionRequest]) (*connect.Response[v1.IssueOutOfBandManagementPowerActionResponse], error)
}
OutofbandmanagementServiceHandler is an implementation of the cloudstack.management.outofbandmanagement.v1.OutofbandmanagementService service.
type UnimplementedOutofbandmanagementServiceHandler ¶
type UnimplementedOutofbandmanagementServiceHandler struct{}
UnimplementedOutofbandmanagementServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedOutofbandmanagementServiceHandler) ChangeOutOfBandManagementPassword ¶
func (UnimplementedOutofbandmanagementServiceHandler) ChangeOutOfBandManagementPassword(context.Context, *connect.Request[v1.ChangeOutOfBandManagementPasswordRequest]) (*connect.Response[v1.ChangeOutOfBandManagementPasswordResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) ConfigureOutOfBandManagement ¶
func (UnimplementedOutofbandmanagementServiceHandler) ConfigureOutOfBandManagement(context.Context, *connect.Request[v1.ConfigureOutOfBandManagementRequest]) (*connect.Response[v1.ConfigureOutOfBandManagementResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForCluster ¶
func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForCluster(context.Context, *connect.Request[v1.DisableOutOfBandManagementForClusterRequest]) (*connect.Response[v1.DisableOutOfBandManagementForClusterResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForHost ¶
func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForHost(context.Context, *connect.Request[v1.DisableOutOfBandManagementForHostRequest]) (*connect.Response[v1.DisableOutOfBandManagementForHostResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForZone ¶
func (UnimplementedOutofbandmanagementServiceHandler) DisableOutOfBandManagementForZone(context.Context, *connect.Request[v1.DisableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.DisableOutOfBandManagementForZoneResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForCluster ¶
func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForCluster(context.Context, *connect.Request[v1.EnableOutOfBandManagementForClusterRequest]) (*connect.Response[v1.EnableOutOfBandManagementForClusterResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForHost ¶
func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForHost(context.Context, *connect.Request[v1.EnableOutOfBandManagementForHostRequest]) (*connect.Response[v1.EnableOutOfBandManagementForHostResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForZone ¶
func (UnimplementedOutofbandmanagementServiceHandler) EnableOutOfBandManagementForZone(context.Context, *connect.Request[v1.EnableOutOfBandManagementForZoneRequest]) (*connect.Response[v1.EnableOutOfBandManagementForZoneResponse], error)
func (UnimplementedOutofbandmanagementServiceHandler) IssueOutOfBandManagementPowerAction ¶
func (UnimplementedOutofbandmanagementServiceHandler) IssueOutOfBandManagementPowerAction(context.Context, *connect.Request[v1.IssueOutOfBandManagementPowerActionRequest]) (*connect.Response[v1.IssueOutOfBandManagementPowerActionResponse], error)