docker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info interface {
	Request() Request
}

type LayerInfo

type LayerInfo interface {
	Info
	Descriptor() ocispec.Descriptor
}

type ManifestInfo

type ManifestInfo interface {
	Info
	Manifest(ctx context.Context) (*ocispec.Manifest, error)
	Layer(ctx context.Context, desc ocispec.Descriptor) (LayerInfo, error)
}

type Request

type Request struct {
	Headers http.Header `json:"headers,omitempty"`
	URL     URL         `json:"url"`
}

type RequestResolver

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

func NewRequestResolver

func NewRequestResolver(o RequestResolverOptions) (*RequestResolver, error)

func (*RequestResolver) Resolve

func (u *RequestResolver) Resolve(ctx context.Context, ref string) (ManifestInfo, error)

type RequestResolverOptions

type RequestResolverOptions struct {
	ConfigPaths []string
	Client      *http.Client
	Header      http.Header
}

func (*RequestResolverOptions) SetDefaults

func (o *RequestResolverOptions) SetDefaults()

type URL

type URL url.URL

func (*URL) MarshalJSON

func (u *URL) MarshalJSON() ([]byte, error)

func (URL) MarshalText

func (u URL) MarshalText() ([]byte, error)

func (*URL) UnmarshalJSON

func (u *URL) UnmarshalJSON(p []byte) error

func (*URL) UnmarshalText

func (u *URL) UnmarshalText(p []byte) error

Jump to

Keyboard shortcuts

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