Documentation ¶
Index ¶
- func Import(namespace string, reqs ...*ImportRequest) error
- func NewRunner(data *userdata.UserData, args *runner.Args, setters ...runner.Option) runner.Runner
- func WithMemoryLimit(limit int64) oci.SpecOpts
- func WithRootfsPropagation(rp string) oci.SpecOpts
- type ImportRequest
- type Importer
- type ImporterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(namespace string, reqs ...*ImportRequest) error
Import imports the images specified by the import requests.
func WithMemoryLimit ¶
WithMemoryLimit sets the linux resource memory limit field.
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
func (*Importer) Import ¶
func (i *Importer) Import(reqs ...*ImportRequest) error
Import imports the images specified by the import requests.
type ImporterOption ¶
type ImporterOption func(*importerOptions)
ImporterOption configures containerd Inspector
func WithContainerdAddress ¶
func WithContainerdAddress(address string) ImporterOption
WithContainerdAddress configures containerd address to use
Click to show internal directories.
Click to hide internal directories.