Documentation ¶
Index ¶
- Constants
- func NewEntry() types.EntryImpl
- type V001Entry
- func (v V001Entry) APIVersion() string
- func (v V001Entry) ArtifactHash() (string, error)
- func (v *V001Entry) Canonicalize(_ context.Context) ([]byte, error)
- func (v V001Entry) CreateFromArtifactProperties(_ context.Context, props types.ArtifactProperties) (models.ProposedEntry, error)
- func (v V001Entry) IndexKeys() ([]string, error)
- func (v V001Entry) Insertable() (bool, error)
- func (v *V001Entry) Unmarshal(pe models.ProposedEntry) error
- func (v V001Entry) Verifiers() ([]pki.PublicKey, error)
Constants ¶
View Source
const (
APIVERSION = "0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type V001Entry ¶
type V001Entry struct { DSSEObj models.DSSEV001Schema // contains filtered or unexported fields }
func (V001Entry) APIVersion ¶
func (V001Entry) ArtifactHash ¶ added in v1.3.3
func (*V001Entry) Canonicalize ¶
Canonicalize returns a JSON representation of the entry to be persisted into the log. This will be further canonicalized by JSON Canonicalization Scheme (JCS) before being written.
This function should not use v.DSSEObj.ProposedContent fields as they are client provided and should not be trusted; the other fields at the top level are only set server side.
func (V001Entry) CreateFromArtifactProperties ¶
func (v V001Entry) CreateFromArtifactProperties(_ context.Context, props types.ArtifactProperties) (models.ProposedEntry, error)
func (V001Entry) IndexKeys ¶
IndexKeys computes the list of keys that should map back to this entry. It should *never* reference v.DSSEObj.ProposedContent as those values would only be present at the time of insertion
func (V001Entry) Insertable ¶
Click to show internal directories.
Click to hide internal directories.