Documentation ¶
Index ¶
- Constants
- func WithNRISandboxDelete(sandboxID string) containerd.ProcessDeleteOpts
- type CleanupErr
- type Controller
- func (c *Controller) Create(_ctx context.Context, info sandbox.Sandbox, opts ...sandbox.CreateOpt) error
- func (c *Controller) Metrics(ctx context.Context, sandboxID string) (*types.Metric, error)
- func (c *Controller) Platform(_ctx context.Context, _sandboxID string) (platforms.Platform, error)
- func (c *Controller) RecoverContainer(ctx context.Context, cntr containerd.Container) (sandboxstore.Sandbox, error)
- func (c *Controller) Shutdown(ctx context.Context, sandboxID string) error
- func (c *Controller) Start(ctx context.Context, id string) (cin sandbox.ControllerInstance, retErr error)
- func (c *Controller) Status(ctx context.Context, sandboxID string, verbose bool) (sandbox.ControllerStatus, error)
- func (c *Controller) Stop(ctx context.Context, sandboxID string, _ ...sandbox.StopOpt) error
- func (c *Controller) Wait(ctx context.Context, sandboxID string) (sandbox.ExitStatus, error)
- type ImageService
- type RuntimeService
- type Store
Constants ¶
View Source
const (
// MetadataKey is the key used for storing metadata in the sandbox extensions
MetadataKey = "metadata"
)
Variables ¶
This section is empty.
Functions ¶
func WithNRISandboxDelete ¶
func WithNRISandboxDelete(sandboxID string) containerd.ProcessDeleteOpts
WithNRISandboxDelete calls delete for a sandbox'd task
Types ¶
type CleanupErr ¶
type CleanupErr struct {
// contains filtered or unexported fields
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) RecoverContainer ¶
func (c *Controller) RecoverContainer(ctx context.Context, cntr containerd.Container) (sandboxstore.Sandbox, error)
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown(ctx context.Context, sandboxID string) error
func (*Controller) Start ¶
func (c *Controller) Start(ctx context.Context, id string) (cin sandbox.ControllerInstance, retErr error)
Start creates resources required for the sandbox and starts the sandbox. If an error occurs, Start attempts to tear down the created resources. If an error occurs while tearing down resources, a zero-valued response is returned alongside the error. If the teardown was successful, a nil response is returned with the error. TODO(samuelkarp) Determine whether this error indication is reasonable to retain once controller.Delete is implemented.
func (*Controller) Status ¶
func (c *Controller) Status(ctx context.Context, sandboxID string, verbose bool) (sandbox.ControllerStatus, error)
func (*Controller) Wait ¶
func (c *Controller) Wait(ctx context.Context, sandboxID string) (sandbox.ExitStatus, error)
type ImageService ¶
type ImageService interface { LocalResolve(refOrID string) (imagestore.Image, error) GetImage(id string) (imagestore.Image, error) PullImage(ctx context.Context, name string, creds func(string) (string, string, error), sc *runtime.PodSandboxConfig, runtimeHandler string) (string, error) RuntimeSnapshotter(ctx context.Context, ociRuntime criconfig.Runtime) string PinnedImage(string) string }
ImageService specifies dependencies to CRI image service.
type RuntimeService ¶
RuntimeService specifies dependencies to CRI runtime service.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.