transport

package
v0.0.0-...-acf1bf1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerTarget

type DockerTarget struct {
	Repo string
	*ORASTarget
}

func (*DockerTarget) String

func (t *DockerTarget) String() string

type DockerTransport

type DockerTransport struct{}

func (*DockerTransport) ParseReference

func (t *DockerTransport) ParseReference(ref string) (Target, error)

func (*DockerTransport) Protocol

func (t *DockerTransport) Protocol() string

type OCIArchiveTarget

type OCIArchiveTarget struct {
	Filename string
	Tag      string
}

func (*OCIArchiveTarget) Push

func (*OCIArchiveTarget) String

func (t *OCIArchiveTarget) String() string

type OCIArchiveTransport

type OCIArchiveTransport struct{}

func (*OCIArchiveTransport) ParseReference

func (t *OCIArchiveTransport) ParseReference(ref string) (Target, error)

func (*OCIArchiveTransport) Protocol

func (t *OCIArchiveTransport) Protocol() string

type ORASTarget

type ORASTarget struct {
	Remote oras.Target
	Tag    string
}

func (*ORASTarget) Push

func (t *ORASTarget) Push(ctx context.Context, artifact kpmoci.Artifact) (string, ocispec.Descriptor, error)

type Target

type Target interface {
	Push(context.Context, oci.Artifact) (string, ocispec.Descriptor, error)
	String() string
}

func TargetFor

func TargetFor(ref string) (Target, error)

type Transport

type Transport interface {
	ParseReference(string) (Target, error)
	Protocol() string
}

Jump to

Keyboard shortcuts

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