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 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 File ¶
type File interface { Contents() ([]byte, error) Platform() *v1.Platform String() string Path() string }
func FileFromFlag ¶ added in v1.1.0
type MediaTypeGetter ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.