cocoon

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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 Cocoon

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

Cocoon is the vm runtime: metadata from the meta dir, liveness from the cocoon daemon.

func New

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

func (*Cocoon) Alive

func (c *Cocoon) Alive(ctx context.Context) bool

Alive reports whether the vm scopes can still answer, which is what the daemon being optional means.

func (*Cocoon) Events

func (c *Cocoon) Events(ctx context.Context) (<-chan *types.WorkloadEventMessage, <-chan error)

func (*Cocoon) Get

func (c *Cocoon) Get(ctx context.Context, ID string) (*source.Workload, error)

func (*Cocoon) List

func (c *Cocoon) List(ctx context.Context) ([]*source.Workload, error)

func (*Cocoon) Refresh

func (c *Cocoon) Refresh(ID string) (*source.Workload, error)

Jump to

Keyboard shortcuts

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