Documentation
¶
Index ¶
- type Server
- func (s *Server) ExtendLease(ctx context.Context, r *api.ExtendLeaseRequest) (*api.ExtendLeaseResponse, error)
- func (s *Server) ImportImage(ctx context.Context, r *api.ImportImageRequest) (*api.ImportImageResponse, error)
- func (s *Server) LeaseVM(ctx context.Context, r *api.LeaseVMRequest) (*api.LeaseVMResponse, error)
- func (s *Server) ListLeases(ctx context.Context, r *api.ListLeasesRequest) (*api.ListLeasesResponse, error)
- func (s *Server) ReleaseVM(ctx context.Context, r *api.ReleaseVMRequest) (*api.ReleaseVMResponse, error)
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 (*Server) ExtendLease ¶
func (s *Server) ExtendLease(ctx context.Context, r *api.ExtendLeaseRequest) (*api.ExtendLeaseResponse, error)
ExtendLease extends a VM lease
func (*Server) ImportImage ¶
func (s *Server) ImportImage(ctx context.Context, r *api.ImportImageRequest) (*api.ImportImageResponse, error)
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 (s *Server) ListLeases(ctx context.Context, r *api.ListLeasesRequest) (*api.ListLeasesResponse, error)
func (*Server) ReleaseVM ¶
func (s *Server) ReleaseVM(ctx context.Context, r *api.ReleaseVMRequest) (*api.ReleaseVMResponse, error)
ReleaseVM releases a VM lease
Click to show internal directories.
Click to hide internal directories.