yavirt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guest

type Guest struct {
	ID       string
	Networks map[string]string
	Labels   map[string]string
	IPs      []string
	Running  bool
}

func (*Guest) CheckHealth

func (g *Guest) CheckHealth(ctx context.Context, timeout time.Duration) bool

type Yavirt

type Yavirt struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient(ctx context.Context, config *types.Config) (*Yavirt, error)

GetClient returns the process-wide yavirt runtime, creating it on first call.

func New

func New(ctx context.Context, config *types.Config) (*Yavirt, error)

func (*Yavirt) AttachWorkload

func (y *Yavirt) AttachWorkload(context.Context, string) (io.Reader, io.Reader, error)

func (*Yavirt) CollectWorkloadMetrics

func (y *Yavirt) CollectWorkloadMetrics(context.Context, string)

func (*Yavirt) Events

func (y *Yavirt) Events(ctx context.Context, filters map[string]string) (<-chan *types.WorkloadEventMessage, <-chan error)

func (*Yavirt) GetStatus

func (y *Yavirt) GetStatus(ctx context.Context, ID string, checkHealth bool) (*types.WorkloadStatus, error)

func (*Yavirt) GetWorkloadName

func (y *Yavirt) GetWorkloadName(context.Context, string) (string, error)

func (*Yavirt) IsDaemonRunning

func (y *Yavirt) IsDaemonRunning(ctx context.Context) bool

func (*Yavirt) ListWorkloadIDs

func (y *Yavirt) ListWorkloadIDs(ctx context.Context, filters map[string]string) (ids []string, err error)

func (*Yavirt) LogFieldsExtra

func (y *Yavirt) LogFieldsExtra(context.Context, string) (map[string]string, error)

Jump to

Keyboard shortcuts

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