remote

package
v1.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package remote is the API implementation on remote format image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(root string) (api.Runtime, error)

Types

type Image

type Image struct {
	behaviour.Closer
	behaviour.Image
	behaviour.FileSystem
	// contains filtered or unexported fields
}

Image represents a remote image.

func (*Image) GetLayerDiffID added in v1.5.1

func (im *Image) GetLayerDiffID(i int) (string, error)

func (*Image) NumLayers

func (i *Image) NumLayers() int

func (*Image) OpenLayer

func (i *Image) OpenLayer(index int) (api.Layer, error)

func (*Image) Runtime

func (i *Image) Runtime() *Runtime

type Layer

type Layer struct {
	behaviour.Closer
	behaviour.FileSystem
	// contains filtered or unexported fields
}

func (*Layer) ID

func (l *Layer) ID() string

func (*Layer) Image

func (l *Layer) Image() *Image

func (*Layer) Opaques added in v1.5.0

func (l *Layer) Opaques() ([]string, error)

func (*Layer) Whiteouts added in v1.5.0

func (l *Layer) Whiteouts() ([]string, error)

type LoadOption

type LoadOption func(*loadOptions)

LoadOption is the option that can be used for loading an remote.Image object.

func WithAuth

func WithAuth(username, password string) LoadOption

func WithInsecure added in v1.5.5

func WithInsecure() LoadOption

type Runtime

type Runtime struct {
	behaviour.Closer
	behaviour.Runtime
	behaviour.FileSystem
	// contains filtered or unexported fields
}

func (*Runtime) Close

func (t *Runtime) Close() error

func (*Runtime) Load

func (t *Runtime) Load(imageRef string, opts ...LoadOption) ([]string, error)

Load image into remote manager system

func (*Runtime) OpenContainerByID

func (t *Runtime) OpenContainerByID(id string) (api.Container, error)

func (*Runtime) OpenImageByID

func (t *Runtime) OpenImageByID(id string) (api.Image, error)

func (*Runtime) Root

func (t *Runtime) Root() string

Root return data root for remote system

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL