Documentation
¶
Index ¶
- type AlreadyExistsError
- type CouldNotCreateProcessError
- type HCSClient
- type InvalidIdError
- type InvalidMountOptionsError
- type Manager
- func (m *Manager) Create(spec *specs.Spec, credentialSpec string) error
- func (m *Manager) CredentialSpec(credentialSpecPath string) (string, error)
- func (m *Manager) Delete(force bool) error
- func (m *Manager) Exec(processSpec *specs.Process, createIOPipes bool) (hcs.Process, error)
- func (m *Manager) Spec(bundlePath string) (*specs.Spec, error)
- func (m *Manager) Stats() (Statistics, error)
- type MissingVolumePathError
- type Statistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlreadyExistsError ¶
type AlreadyExistsError struct {
Id string
}
func (*AlreadyExistsError) Error ¶
func (e *AlreadyExistsError) Error() string
type CouldNotCreateProcessError ¶
func (*CouldNotCreateProcessError) Error ¶
func (e *CouldNotCreateProcessError) Error() string
type HCSClient ¶
type HCSClient interface { GetContainers(hcsshim.ComputeSystemQuery) ([]hcsshim.ContainerProperties, error) GetContainerProperties(string) (hcsshim.ContainerProperties, error) NameToGuid(string) (hcsshim.GUID, error) CreateContainer(string, *hcsshim.ContainerConfig) (hcs.Container, error) OpenContainer(string) (hcs.Container, error) IsPending(error) bool GetHNSEndpointByName(string) (*hcsshim.HNSEndpoint, error) }
type InvalidIdError ¶
type InvalidIdError struct {
Id string
}
func (*InvalidIdError) Error ¶
func (e *InvalidIdError) Error() string
type InvalidMountOptionsError ¶
func (*InvalidMountOptionsError) Error ¶
func (e *InvalidMountOptionsError) Error() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CredentialSpec ¶
func (*Manager) Stats ¶
func (m *Manager) Stats() (Statistics, error)
type MissingVolumePathError ¶
type MissingVolumePathError struct {
Id string
}
func (*MissingVolumePathError) Error ¶
func (e *MissingVolumePathError) Error() string
type Statistics ¶
type Statistics struct { Data struct { CPUStats struct { CPUUsage struct { Usage uint64 `json:"total"` System uint64 `json:"kernel"` User uint64 `json:"user"` } `json:"usage"` } `json:"cpu"` Memory struct { Raw struct { TotalRss uint64 `json:"total_rss,omitempty"` } `json:"raw,omitempty"` } `json:"memory,omitempty"` Pids struct { Current uint64 `json:"current,omitempty"` Limit uint64 `json:"limit,omitempty"` } `json:"pids"` } `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.