frontend

package
v0.0.0-...-9994f1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	api.UnimplementedVMLeaserServiceServer
	Env string
	// contains filtered or unexported fields
}

Server is a struct implements the pb.VMLeaserServiceServer

func NewServer

func NewServer(env string) *Server

NewServer returns a new Server

func (*Server) ExtendLease

ExtendLease extends a VM lease

func (*Server) ImportImage

ImportImage imports a VM custom image using image sync.

func (*Server) LeaseVM

func (s *Server) LeaseVM(ctx context.Context, r *api.LeaseVMRequest) (*api.LeaseVMResponse, error)

LeaseVM leases a VM defined by LeaseVMRequest

func (*Server) ListLeases

func (*Server) ReleaseVM

ReleaseVM releases a VM lease

Jump to

Keyboard shortcuts

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