Documentation ¶
Index ¶
- func Import(ctx context.Context, namespace string, reqs ...*ImportRequest) error
- func NewRunner(debug bool, args *runner.Args, setters ...runner.Option) runner.Runner
- func WithCustomSeccompProfile(override func(*specs.LinuxSeccomp)) oci.SpecOpts
- func WithMemoryLimit(limit int64) oci.SpecOpts
- func WithOOMScoreAdj(score int) oci.SpecOpts
- func WithRootfsPropagation(rp string) oci.SpecOpts
- type ImportRequest
- type Importer
- type ImporterOption
- type StdinCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(ctx context.Context, namespace string, reqs ...*ImportRequest) error
Import imports the images specified by the import requests.
func WithCustomSeccompProfile ¶ added in v0.13.4
func WithCustomSeccompProfile(override func(*specs.LinuxSeccomp)) oci.SpecOpts
WithCustomSeccompProfile allows to override default seccomp profile.
func WithMemoryLimit ¶
WithMemoryLimit sets the linux resource memory limit field.
func WithOOMScoreAdj ¶ added in v0.14.0
WithOOMScoreAdj sets the oom score.
func WithRootfsPropagation ¶
WithRootfsPropagation sets the root filesystem propagation.
Types ¶
type ImportRequest ¶
type ImportRequest struct { Path string Options []containerd.ImportOpt }
ImportRequest represents an image import request.
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
Importer implements image import.
func NewImporter ¶
func NewImporter(namespace string, options ...ImporterOption) *Importer
NewImporter builds new Importer.
type ImporterOption ¶
type ImporterOption func(*importerOptions)
ImporterOption configures containerd Inspector.
func WithContainerdAddress ¶
func WithContainerdAddress(address string) ImporterOption
WithContainerdAddress configures containerd address to use.
type StdinCloser ¶ added in v0.9.2
StdinCloser wraps io.Reader providing a signal when reader is read till EOF.
func (*StdinCloser) WaitAndClose ¶ added in v0.9.2
func (s *StdinCloser) WaitAndClose(ctx context.Context, task containerd.Task)
WaitAndClose closes containerd task stdin when StdinCloser is exhausted.