Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaData ¶
type MetaData struct { // ID is the sandbox id. ID string `json:"id"` // Name is the sandbox name. Name string `json:"name"` // Config is the CRI sandbox config. Config *runtime.PodSandboxConfig `json:"config"` // IP of Pod if it is attached to non host network IP string `json:"ip"` // Creation time CreatedAt time.Time `json:"createdAt"` }
type Sandbox ¶
type Sandbox struct { MetaData Bundle *layout.Bundle sync.RWMutex // contains filtered or unexported fields }
Sandbox contains all resources associated with the sandbox. All methods to mutate the internal state are thread safe.
func NewSandbox ¶
func NewSandbox(config *runtime.PodSandboxConfig, ip, rootDir string) (s *Sandbox, retErr error)
NewSandbox creates an internally used sandbox type.
func (*Sandbox) State ¶
func (s *Sandbox) State() runtime.PodSandboxState
Click to show internal directories.
Click to hide internal directories.