Documentation
¶
Index ¶
- func ManifestDigest(manifest Manifest) (string, error)
- func WriteManifest(path string, manifest Manifest) error
- type Manifest
- func ReadManifest(path string) (Manifest, error)
- func SignFile(path string, key signing.SigningKey) (*Manifest, error)
- func SignFileCosign(path string, keyPath string) (*Manifest, error)
- func SignManifest(manifest Manifest, key signing.SigningKey) (Manifest, error)
- func SignManifestCosign(manifest Manifest, keyPath string) (Manifest, error)
- func Verify(path string, opts VerifyOpts) (*Manifest, error)
- type ManifestEntry
- type VerifyOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManifestDigest ¶
func WriteManifest ¶
Types ¶
type Manifest ¶
type Manifest struct {
Files []ManifestEntry `json:"files"`
AlgoID string `json:"algo_id,omitempty"`
SaltID string `json:"salt_id,omitempty"`
Signatures []signing.Signature `json:"signatures,omitempty"`
Extra map[string]json.RawMessage `json:"-"`
}
func ReadManifest ¶
func SignManifest ¶
func SignManifest(manifest Manifest, key signing.SigningKey) (Manifest, error)
func SignManifestCosign ¶
func (Manifest) MarshalJSON ¶ added in v0.6.0
func (*Manifest) UnmarshalJSON ¶ added in v0.6.0
type ManifestEntry ¶
type ManifestEntry struct {
Path string `json:"path"`
SHA256 string `json:"sha256"`
Extra map[string]json.RawMessage `json:"-"`
}
func (ManifestEntry) MarshalJSON ¶ added in v0.6.0
func (entry ManifestEntry) MarshalJSON() ([]byte, error)
func (*ManifestEntry) UnmarshalJSON ¶ added in v0.6.0
func (entry *ManifestEntry) UnmarshalJSON(raw []byte) error
type VerifyOpts ¶
Click to show internal directories.
Click to hide internal directories.