client

package
v0.0.0-...-364cddf Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStatusError

func IsStatusError(err error, status int) bool

Types

type Client

type Client interface {
	PingVMM(ctx context.Context) (*oapiclient.VmmPingResponse, error)
	CreateVM(ctx context.Context, req oapiclient.CreateVMJSONRequestBody) error
	GetVMInfo(ctx context.Context) (*oapiclient.VmInfo, error)
}

func Connect

func Connect(socket string) (Client, error)

type Error

type Error struct {
	StatusCode int
	Body       []byte
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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