distributionutil

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login added in v0.2.0

func Login(ctx context.Context, authConfig *types.AuthConfig) error

func NewRepository added in v0.2.0

func NewRepository(ctx context.Context, authConfig types.AuthConfig, repoName string, config registryConfig, actions ...string) (distribution.Repository, error)

func NewV2Repository added in v0.2.0

func NewV2Repository(named reference.Named, actions ...string) (distribution.Repository, error)

Types

type Config

type Config struct {
	LayerStore     store.LayerStore
	ProgressOutput progress.Output
	Named          reference.Named
}

type ImagePuller

type ImagePuller struct {
	// contains filtered or unexported fields
}

func (*ImagePuller) Pull

func (puller *ImagePuller) Pull(ctx context.Context, named reference.Named) (*v1.Image, error)

type ImagePusher

type ImagePusher struct {
	// contains filtered or unexported fields
}

func (*ImagePusher) Push

func (pusher *ImagePusher) Push(ctx context.Context, named reference.Named) error

type Puller

type Puller interface {
	Pull(context context.Context, named reference.Named) (*v1.Image, error)
}

func NewPuller

func NewPuller(named reference.Named, config Config) (Puller, error)

type Pusher

type Pusher interface {
	Push(ctx context.Context, named reference.Named) error
}

func NewPusher

func NewPusher(named reference.Named, config Config) (Pusher, error)

Jump to

Keyboard shortcuts

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