host

package
v0.0.0-...-e2fb21b Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(judge string)

Types

type Host

type Host struct {
	ID  string
	Dir string
	// contains filtered or unexported fields
}

func NewHost

func NewHost(dir string, contents content.Contents) (*Host, error)

func (*Host) Close

func (c *Host) Close()

func (*Host) Down

func (c *Host) Down() error

func (*Host) Exec

func (c *Host) Exec(name string, env map[string]string, timeout time.Duration, command ...string) (stdout, stderr bytes.Buffer, err error)

func (*Host) GetID

func (c *Host) GetID() string

func (*Host) InitPool

func (c *Host) InitPool(poolname string) error

func (*Host) Up

func (c *Host) Up() error

Jump to

Keyboard shortcuts

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