remote

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMediaTypeGetter

func DefaultMediaTypeGetter(b []byte) types.MediaType

func NewDupeDetector

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 NewReplaceOp

func NewReplaceOp(predicateURI string) mutate.ReplaceOp

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

func FileFromFlag(s string) File

func FilesFromFlagList

func FilesFromFlagList(sl []string) []File

type MediaTypeGetter

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