hcs

package
v0.0.0-...-410f0c4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanError

func CleanError(err error) error

Types

type Client

type Client struct{}

func (*Client) CreateContainer

func (c *Client) CreateContainer(id string, config *hcsshim.ContainerConfig) (Container, error)

func (*Client) CreateEndpoint

func (c *Client) CreateEndpoint(endpoint *hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error)

func (*Client) CreateNetwork

func (c *Client) CreateNetwork(network *hcsshim.HNSNetwork, networkReady func() (bool, error)) (*hcsshim.HNSNetwork, error)

func (*Client) DeleteEndpoint

func (c *Client) DeleteEndpoint(endpoint *hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error)

func (*Client) DeleteNetwork

func (c *Client) DeleteNetwork(network *hcsshim.HNSNetwork) (*hcsshim.HNSNetwork, error)

func (*Client) GetContainerProperties

func (c *Client) GetContainerProperties(id string) (hcsshim.ContainerProperties, error)

func (*Client) GetContainers

func (*Client) GetHNSEndpointByID

func (c *Client) GetHNSEndpointByID(id string) (*hcsshim.HNSEndpoint, error)

func (*Client) GetHNSEndpointByName

func (c *Client) GetHNSEndpointByName(name string) (*hcsshim.HNSEndpoint, error)

func (*Client) GetHNSNetworkByName

func (c *Client) GetHNSNetworkByName(name string) (*hcsshim.HNSNetwork, error)

func (*Client) GetLayerMountPath

func (c *Client) GetLayerMountPath(info hcsshim.DriverInfo, id string) (string, error)

func (*Client) HNSListNetworkRequest

func (c *Client) HNSListNetworkRequest() ([]hcsshim.HNSNetwork, error)

func (*Client) HotAttachEndpoint

func (c *Client) HotAttachEndpoint(containerID string, endpointID string, endpointReady func() (bool, error)) error

func (*Client) HotDetachEndpoint

func (c *Client) HotDetachEndpoint(containerID string, endpointID string) error

func (*Client) IsPending

func (c *Client) IsPending(err error) bool

func (*Client) NameToGuid

func (c *Client) NameToGuid(name string) (hcsshim.GUID, error)

func (*Client) OpenContainer

func (c *Client) OpenContainer(id string) (Container, error)

func (*Client) UpdateEndpoint

func (c *Client) UpdateEndpoint(endpoint *hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error)

type Container

type Container interface {
	Start() error
	Shutdown() error
	Terminate() error
	Wait() error
	WaitTimeout(time.Duration) error
	Pause() error
	Resume() error
	HasPendingUpdates() (bool, error)
	Statistics() (hcsshim.Statistics, error)
	ProcessList() ([]hcsshim.ProcessListItem, error)
	MappedVirtualDisks() (map[int]hcsshim.MappedVirtualDiskController, error)
	CreateProcess(c *hcsshim.ProcessConfig) (hcsshim.Process, error)
	OpenProcess(pid int) (hcsshim.Process, error)
	Close() error
	Modify(config *hcsshim.ResourceModificationRequestResponse) error
}

type DuplicateError

type DuplicateError struct {
	Id string
}

func (*DuplicateError) Error

func (e *DuplicateError) Error() string

type LowMemoryError

type LowMemoryError struct{}

func (*LowMemoryError) Error

func (e *LowMemoryError) Error() string

type NotFoundError

type NotFoundError struct {
	Id string
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type Process

type Process interface {
	Pid() int
	Kill() error
	Wait() error
	WaitTimeout(time.Duration) error
	ExitCode() (int, error)
	ResizeConsole(width, height uint16) error
	Stdio() (io.WriteCloser, io.ReadCloser, io.ReadCloser, error)
	CloseStdin() error
	Close() error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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