remote

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 16 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMediaTypeGetter added in v0.6.0

func DefaultMediaTypeGetter(b []byte) types.MediaType

func NewDupeDetector added in v1.3.0

func NewDupeDetector(v signature.Verifier) mutate.DupeDetector

NewDupeDetector creates a new DupeDetector that looks for matching signatures that can verify the provided signature's payload.

func UploadFiles

func UploadFiles(ref name.Reference, files []File, getMt MediaTypeGetter, remoteOpts ...remote.Option) (name.Digest, error)

Types

type File

type File interface {
	Contents() ([]byte, error)
	Platform() *v1.Platform
	String() string
	Path() string
}

func FileFromFlag added in v1.1.0

func FileFromFlag(s string) File

func FilesFromFlagList added in v1.3.0

func FilesFromFlagList(sl []string) []File

type MediaTypeGetter added in v0.6.0

type MediaTypeGetter func(b []byte) types.MediaType

Jump to

Keyboard shortcuts

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