Documentation ¶
Index ¶
- Constants
- func DefaultMediaTypeGetter(b []byte) types.MediaType
- func Descriptors(ref name.Reference, remoteOpts ...remote.Option) ([]v1.Descriptor, error)
- func DockerMediaTypes() bool
- func SignatureImage(ref name.Reference, opts ...remote.Option) (v1.Image, error)
- func UploadFile(b []byte, ref name.Reference, layerMt, configMt types.MediaType, ...) (v1.Image, error)
- func UploadSignature(signature, payload []byte, dst name.Reference, opts UploadOpts) (uploadedSig []byte, err error)
- type Bundle
- type BundlePayload
- type Digester
- type File
- type MediaTypeGetter
- type StaticLayer
- func (l *StaticLayer) Compressed() (io.ReadCloser, error)
- func (l *StaticLayer) DiffID() (v1.Hash, error)
- func (l *StaticLayer) Digest() (v1.Hash, error)
- func (l *StaticLayer) MediaType() (types.MediaType, error)
- func (l *StaticLayer) Size() (int64, error)
- func (l *StaticLayer) Uncompressed() (io.ReadCloser, error)
- type UploadOpts
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 DefaultMediaTypeGetter ¶ added in v0.6.0
func Descriptors ¶
func DockerMediaTypes ¶
func DockerMediaTypes() bool
func SignatureImage ¶
SignatureImage returns the existing destination image, or a new, empty one.
func UploadFile ¶
func UploadSignature ¶
Types ¶
type Bundle ¶
type Bundle struct { SignedEntryTimestamp strfmt.Base64 Payload BundlePayload }
type BundlePayload ¶ added in v0.6.0
type Digester ¶
func UploadFiles ¶
type MediaTypeGetter ¶ added in v0.6.0
type StaticLayer ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.