Documentation ¶
Index ¶
- func CleanError(err error) error
- type Client
- func (c *Client) CreateContainer(id string, config *hcsshim.ContainerConfig) (Container, error)
- func (c *Client) CreateEndpoint(endpoint *hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error)
- func (c *Client) CreateNetwork(network *hcsshim.HNSNetwork, networkReady func() (bool, error)) (*hcsshim.HNSNetwork, error)
- func (c *Client) DeleteEndpoint(endpoint *hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error)
- func (c *Client) DeleteNetwork(network *hcsshim.HNSNetwork) (*hcsshim.HNSNetwork, error)
- func (c *Client) GetContainerProperties(id string) (hcsshim.ContainerProperties, error)
- func (c *Client) GetContainers(q hcsshim.ComputeSystemQuery) ([]hcsshim.ContainerProperties, error)
- func (c *Client) GetHNSEndpointByID(id string) (*hcsshim.HNSEndpoint, error)
- func (c *Client) GetHNSEndpointByName(name string) (*hcsshim.HNSEndpoint, error)
- func (c *Client) GetHNSNetworkByName(name string) (*hcsshim.HNSNetwork, error)
- func (c *Client) GetLayerMountPath(info hcsshim.DriverInfo, id string) (string, error)
- func (c *Client) HNSListNetworkRequest() ([]hcsshim.HNSNetwork, error)
- func (c *Client) HotAttachEndpoint(containerID string, endpointID string, endpointReady func() (bool, error)) error
- func (c *Client) HotDetachEndpoint(containerID string, endpointID string) error
- func (c *Client) IsPending(err error) bool
- func (c *Client) NameToGuid(name string) (hcsshim.GUID, error)
- func (c *Client) OpenContainer(id string) (Container, error)
- func (c *Client) UpdateEndpoint(endpoint *hcsshim.HNSEndpoint) (*hcsshim.HNSEndpoint, error)
- type Container
- type DuplicateError
- type LowMemoryError
- type NotFoundError
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanError ¶
Types ¶
type Client ¶
type Client struct{}
func (*Client) CreateContainer ¶
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 (c *Client) GetContainers(q hcsshim.ComputeSystemQuery) ([]hcsshim.ContainerProperties, error)
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 (*Client) HNSListNetworkRequest ¶
func (c *Client) HNSListNetworkRequest() ([]hcsshim.HNSNetwork, error)
func (*Client) HotAttachEndpoint ¶
func (*Client) HotDetachEndpoint ¶
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
Click to show internal directories.
Click to hide internal directories.