types

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReferTypeHTTP           = "http"
	ReferTypeContainerImage = "container_image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Refer

type Refer interface {
	// State returns the status of the reference.
	State(ctx context.Context) (ReferStatus, error)
}

type ReferOptionAuthn

type ReferOptionAuthn struct {
	Type   string
	User   string
	Secret string
}

type ReferOptions

type ReferOptions struct {
	URI      string
	Authn    ReferOptionAuthn
	Insecure bool
}

func (ReferOptions) Type

func (o ReferOptions) Type() string

type ReferStatus

type ReferStatus struct {
	Accessible bool
	Digest     string
	Type       string
	Length     int64
}

Jump to

Keyboard shortcuts

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