outofbandmanagementv1connect

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 (
	// 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.

View Source
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.

Jump to

Keyboard shortcuts

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