remote

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 17 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 NewReplaceOp added in v1.4.0

func NewReplaceOp(predicateURI string) mutate.ReplaceOp

func UploadFiles

func UploadFiles(ref name.Reference, files []File, annotations map[string]string, 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