remote

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SimpleSigningMediaType = "application/vnd.dev.cosign.simplesigning.v1+json"

	BundleKey           = "dev.sigstore.cosign/bundle"
	DockerMediaTypesEnv = "COSIGN_DOCKER_MEDIA_TYPES"
)

Variables

This section is empty.

Functions

func Descriptors

func Descriptors(ref name.Reference) ([]v1.Descriptor, error)

func DockerMediaTypes

func DockerMediaTypes() bool

func SignatureImage

func SignatureImage(dstTag name.Reference, opts ...remote.Option) (v1.Image, error)

SignatureImage returns the existing destination image, or a new, empty one.

func UploadFile

func UploadFile(fileRef string, ref name.Reference, kc authn.Keychain) (v1.Image, error)

func UploadSignature

func UploadSignature(ctx context.Context, signature, payload []byte, dst name.Reference, opts UploadOpts) (uploadedSig []byte, err error)

Types

type Bundle

type Bundle struct {
	SignedEntryTimestamp strfmt.Base64
	Body                 interface{}
	IntegratedTime       int64
	LogIndex             *int64
	LogID                string
}

type Digester

type Digester interface {
	Digest() (v1.Hash, error)
}

func UploadFiles

func UploadFiles(ref name.Reference, files []File) (Digester, error)

type File

type File struct {
	Path     string
	Platform *v1.Platform
}

func (*File) String

func (f *File) String() string

type StaticLayer

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

func (*StaticLayer) Compressed

func (l *StaticLayer) Compressed() (io.ReadCloser, error)

Compressed returns an io.ReadCloser for the compressed layer contents.

func (*StaticLayer) DiffID

func (l *StaticLayer) DiffID() (v1.Hash, error)

DiffID returns the Hash of the uncompressed layer.

func (*StaticLayer) Digest

func (l *StaticLayer) Digest() (v1.Hash, error)

func (*StaticLayer) MediaType

func (l *StaticLayer) MediaType() (types.MediaType, error)

MediaType returns the media type of the Layer.

func (*StaticLayer) Size

func (l *StaticLayer) Size() (int64, error)

Size returns the compressed size of the Layer.

func (*StaticLayer) Uncompressed

func (l *StaticLayer) Uncompressed() (io.ReadCloser, error)

Uncompressed returns an io.ReadCloser for the uncompressed layer contents.

type UploadOpts

type UploadOpts struct {
	Cert                  string
	Chain                 string
	DupeDetector          signature.Verifier
	Bundle                *Bundle
	AdditionalAnnotations map[string]string
	RemoteOpts            []remote.Option
}

Jump to

Keyboard shortcuts

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