isov1connect

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 (
	// IsoServiceAttachIsoProcedure is the fully-qualified name of the IsoService's AttachIso RPC.
	IsoServiceAttachIsoProcedure = "/cloudstack.management.iso.v1.IsoService/AttachIso"
	// IsoServiceAttachIsoCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// AttachIsoCmdByAdmin RPC.
	IsoServiceAttachIsoCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/AttachIsoCmdByAdmin"
	// IsoServiceCopyIsoProcedure is the fully-qualified name of the IsoService's CopyIso RPC.
	IsoServiceCopyIsoProcedure = "/cloudstack.management.iso.v1.IsoService/CopyIso"
	// IsoServiceCopyIsoCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// CopyIsoCmdByAdmin RPC.
	IsoServiceCopyIsoCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/CopyIsoCmdByAdmin"
	// IsoServiceDeleteIsoProcedure is the fully-qualified name of the IsoService's DeleteIso RPC.
	IsoServiceDeleteIsoProcedure = "/cloudstack.management.iso.v1.IsoService/DeleteIso"
	// IsoServiceDetachIsoProcedure is the fully-qualified name of the IsoService's DetachIso RPC.
	IsoServiceDetachIsoProcedure = "/cloudstack.management.iso.v1.IsoService/DetachIso"
	// IsoServiceDetachIsoCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// DetachIsoCmdByAdmin RPC.
	IsoServiceDetachIsoCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/DetachIsoCmdByAdmin"
	// IsoServiceExtractIsoProcedure is the fully-qualified name of the IsoService's ExtractIso RPC.
	IsoServiceExtractIsoProcedure = "/cloudstack.management.iso.v1.IsoService/ExtractIso"
	// IsoServiceGetUploadParamsForIsoProcedure is the fully-qualified name of the IsoService's
	// GetUploadParamsForIso RPC.
	IsoServiceGetUploadParamsForIsoProcedure = "/cloudstack.management.iso.v1.IsoService/GetUploadParamsForIso"
	// IsoServiceListIsoPermissionsProcedure is the fully-qualified name of the IsoService's
	// ListIsoPermissions RPC.
	IsoServiceListIsoPermissionsProcedure = "/cloudstack.management.iso.v1.IsoService/ListIsoPermissions"
	// IsoServiceListIsoPermissionsCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// ListIsoPermissionsCmdByAdmin RPC.
	IsoServiceListIsoPermissionsCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/ListIsoPermissionsCmdByAdmin"
	// IsoServiceListIsosProcedure is the fully-qualified name of the IsoService's ListIsos RPC.
	IsoServiceListIsosProcedure = "/cloudstack.management.iso.v1.IsoService/ListIsos"
	// IsoServiceListIsosCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// ListIsosCmdByAdmin RPC.
	IsoServiceListIsosCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/ListIsosCmdByAdmin"
	// IsoServiceRegisterIsoProcedure is the fully-qualified name of the IsoService's RegisterIso RPC.
	IsoServiceRegisterIsoProcedure = "/cloudstack.management.iso.v1.IsoService/RegisterIso"
	// IsoServiceRegisterIsoCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// RegisterIsoCmdByAdmin RPC.
	IsoServiceRegisterIsoCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/RegisterIsoCmdByAdmin"
	// IsoServiceUpdateIsoProcedure is the fully-qualified name of the IsoService's UpdateIso RPC.
	IsoServiceUpdateIsoProcedure = "/cloudstack.management.iso.v1.IsoService/UpdateIso"
	// IsoServiceUpdateIsoCmdByAdminProcedure is the fully-qualified name of the IsoService's
	// UpdateIsoCmdByAdmin RPC.
	IsoServiceUpdateIsoCmdByAdminProcedure = "/cloudstack.management.iso.v1.IsoService/UpdateIsoCmdByAdmin"
	// IsoServiceUpdateIsoPermissionsProcedure is the fully-qualified name of the IsoService's
	// UpdateIsoPermissions RPC.
	IsoServiceUpdateIsoPermissionsProcedure = "/cloudstack.management.iso.v1.IsoService/UpdateIsoPermissions"
)

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

Variables

This section is empty.

Functions

func NewIsoServiceHandler

func NewIsoServiceHandler(svc IsoServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewIsoServiceHandler 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 IsoServiceClient

type IsoServiceClient interface {
	// AttachIso Attaches an ISO to a virtual machine.
	AttachIso(context.Context, *connect.Request[v1.AttachIsoRequest]) (*connect.Response[v1.AttachIsoResponse], error)
	// AttachIsoCmdByAdmin Attaches an ISO to a virtual machine.
	AttachIsoCmdByAdmin(context.Context, *connect.Request[v1.AttachIsoCmdByAdminRequest]) (*connect.Response[v1.AttachIsoCmdByAdminResponse], error)
	// CopyIso Copies an ISO from one zone to another.
	CopyIso(context.Context, *connect.Request[v1.CopyIsoRequest]) (*connect.Response[v1.CopyIsoResponse], error)
	// CopyIsoCmdByAdmin Copies an iso from one zone to another.
	CopyIsoCmdByAdmin(context.Context, *connect.Request[v1.CopyIsoCmdByAdminRequest]) (*connect.Response[v1.CopyIsoCmdByAdminResponse], error)
	// DeleteIso Deletes an ISO file.
	DeleteIso(context.Context, *connect.Request[v1.DeleteIsoRequest]) (*connect.Response[v1.DeleteIsoResponse], error)
	// DetachIso Detaches any ISO file (if any) currently attached to a virtual machine.
	DetachIso(context.Context, *connect.Request[v1.DetachIsoRequest]) (*connect.Response[v1.DetachIsoResponse], error)
	// DetachIsoCmdByAdmin Detaches any ISO file (if any) currently attached to a virtual machine.
	DetachIsoCmdByAdmin(context.Context, *connect.Request[v1.DetachIsoCmdByAdminRequest]) (*connect.Response[v1.DetachIsoCmdByAdminResponse], error)
	// ExtractIso Extracts an ISO
	ExtractIso(context.Context, *connect.Request[v1.ExtractIsoRequest]) (*connect.Response[v1.ExtractIsoResponse], error)
	// GetUploadParamsForIso upload an existing ISO into the CloudStack cloud.
	GetUploadParamsForIso(context.Context, *connect.Request[v1.GetUploadParamsForIsoRequest]) (*connect.Response[v1.GetUploadParamsForIsoResponse], error)
	// ListIsoPermissions List ISO visibility and all accounts that have permissions to view this ISO.
	ListIsoPermissions(context.Context, *connect.Request[v1.ListIsoPermissionsRequest]) (*connect.Response[v1.ListIsoPermissionsResponse], error)
	// ListIsoPermissionsCmdByAdmin List iso visibility and all accounts that have permissions to view this iso.
	ListIsoPermissionsCmdByAdmin(context.Context, *connect.Request[v1.ListIsoPermissionsCmdByAdminRequest]) (*connect.Response[v1.ListIsoPermissionsCmdByAdminResponse], error)
	// ListIsos Lists all available ISO files.
	ListIsos(context.Context, *connect.Request[v1.ListIsosRequest]) (*connect.Response[v1.ListIsosResponse], error)
	// ListIsosCmdByAdmin Lists all available ISO files.
	ListIsosCmdByAdmin(context.Context, *connect.Request[v1.ListIsosCmdByAdminRequest]) (*connect.Response[v1.ListIsosCmdByAdminResponse], error)
	// RegisterIso Registers an existing ISO into the CloudStack Cloud.
	RegisterIso(context.Context, *connect.Request[v1.RegisterIsoRequest]) (*connect.Response[v1.RegisterIsoResponse], error)
	// RegisterIsoCmdByAdmin Registers an existing ISO into the CloudStack Cloud.
	RegisterIsoCmdByAdmin(context.Context, *connect.Request[v1.RegisterIsoCmdByAdminRequest]) (*connect.Response[v1.RegisterIsoCmdByAdminResponse], error)
	// UpdateIso Updates an ISO file.
	UpdateIso(context.Context, *connect.Request[v1.UpdateIsoRequest]) (*connect.Response[v1.UpdateIsoResponse], error)
	// UpdateIsoCmdByAdmin Updates an ISO file.
	UpdateIsoCmdByAdmin(context.Context, *connect.Request[v1.UpdateIsoCmdByAdminRequest]) (*connect.Response[v1.UpdateIsoCmdByAdminResponse], error)
	// UpdateIsoPermissions Updates ISO permissions
	UpdateIsoPermissions(context.Context, *connect.Request[v1.UpdateIsoPermissionsRequest]) (*connect.Response[v1.UpdateIsoPermissionsResponse], error)
}

IsoServiceClient is a client for the cloudstack.management.iso.v1.IsoService service.

func NewIsoServiceClient

func NewIsoServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IsoServiceClient

NewIsoServiceClient constructs a client for the cloudstack.management.iso.v1.IsoService 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 IsoServiceHandler

type IsoServiceHandler interface {
	// AttachIso Attaches an ISO to a virtual machine.
	AttachIso(context.Context, *connect.Request[v1.AttachIsoRequest]) (*connect.Response[v1.AttachIsoResponse], error)
	// AttachIsoCmdByAdmin Attaches an ISO to a virtual machine.
	AttachIsoCmdByAdmin(context.Context, *connect.Request[v1.AttachIsoCmdByAdminRequest]) (*connect.Response[v1.AttachIsoCmdByAdminResponse], error)
	// CopyIso Copies an ISO from one zone to another.
	CopyIso(context.Context, *connect.Request[v1.CopyIsoRequest]) (*connect.Response[v1.CopyIsoResponse], error)
	// CopyIsoCmdByAdmin Copies an iso from one zone to another.
	CopyIsoCmdByAdmin(context.Context, *connect.Request[v1.CopyIsoCmdByAdminRequest]) (*connect.Response[v1.CopyIsoCmdByAdminResponse], error)
	// DeleteIso Deletes an ISO file.
	DeleteIso(context.Context, *connect.Request[v1.DeleteIsoRequest]) (*connect.Response[v1.DeleteIsoResponse], error)
	// DetachIso Detaches any ISO file (if any) currently attached to a virtual machine.
	DetachIso(context.Context, *connect.Request[v1.DetachIsoRequest]) (*connect.Response[v1.DetachIsoResponse], error)
	// DetachIsoCmdByAdmin Detaches any ISO file (if any) currently attached to a virtual machine.
	DetachIsoCmdByAdmin(context.Context, *connect.Request[v1.DetachIsoCmdByAdminRequest]) (*connect.Response[v1.DetachIsoCmdByAdminResponse], error)
	// ExtractIso Extracts an ISO
	ExtractIso(context.Context, *connect.Request[v1.ExtractIsoRequest]) (*connect.Response[v1.ExtractIsoResponse], error)
	// GetUploadParamsForIso upload an existing ISO into the CloudStack cloud.
	GetUploadParamsForIso(context.Context, *connect.Request[v1.GetUploadParamsForIsoRequest]) (*connect.Response[v1.GetUploadParamsForIsoResponse], error)
	// ListIsoPermissions List ISO visibility and all accounts that have permissions to view this ISO.
	ListIsoPermissions(context.Context, *connect.Request[v1.ListIsoPermissionsRequest]) (*connect.Response[v1.ListIsoPermissionsResponse], error)
	// ListIsoPermissionsCmdByAdmin List iso visibility and all accounts that have permissions to view this iso.
	ListIsoPermissionsCmdByAdmin(context.Context, *connect.Request[v1.ListIsoPermissionsCmdByAdminRequest]) (*connect.Response[v1.ListIsoPermissionsCmdByAdminResponse], error)
	// ListIsos Lists all available ISO files.
	ListIsos(context.Context, *connect.Request[v1.ListIsosRequest]) (*connect.Response[v1.ListIsosResponse], error)
	// ListIsosCmdByAdmin Lists all available ISO files.
	ListIsosCmdByAdmin(context.Context, *connect.Request[v1.ListIsosCmdByAdminRequest]) (*connect.Response[v1.ListIsosCmdByAdminResponse], error)
	// RegisterIso Registers an existing ISO into the CloudStack Cloud.
	RegisterIso(context.Context, *connect.Request[v1.RegisterIsoRequest]) (*connect.Response[v1.RegisterIsoResponse], error)
	// RegisterIsoCmdByAdmin Registers an existing ISO into the CloudStack Cloud.
	RegisterIsoCmdByAdmin(context.Context, *connect.Request[v1.RegisterIsoCmdByAdminRequest]) (*connect.Response[v1.RegisterIsoCmdByAdminResponse], error)
	// UpdateIso Updates an ISO file.
	UpdateIso(context.Context, *connect.Request[v1.UpdateIsoRequest]) (*connect.Response[v1.UpdateIsoResponse], error)
	// UpdateIsoCmdByAdmin Updates an ISO file.
	UpdateIsoCmdByAdmin(context.Context, *connect.Request[v1.UpdateIsoCmdByAdminRequest]) (*connect.Response[v1.UpdateIsoCmdByAdminResponse], error)
	// UpdateIsoPermissions Updates ISO permissions
	UpdateIsoPermissions(context.Context, *connect.Request[v1.UpdateIsoPermissionsRequest]) (*connect.Response[v1.UpdateIsoPermissionsResponse], error)
}

IsoServiceHandler is an implementation of the cloudstack.management.iso.v1.IsoService service.

type UnimplementedIsoServiceHandler

type UnimplementedIsoServiceHandler struct{}

UnimplementedIsoServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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