Documentation ¶
Index ¶
Constants ¶
View Source
const ( PayloadType = "application/vnd.in-toto+json" StatementType = "https://in-toto.io/Statement/v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceDescriptor ¶
type ResourceDescriptor struct {
Digest Digest `json:"digest"`
}
type Statement ¶
type Statement struct { Type string `json:"_type"` Subject []ResourceDescriptor `json:"subject"` PredicateType string `json:"predicateType"` Predicate json.RawMessage `json:"predicate"` CreatedAt string `json:"createdAt"` CreatedBy string `json:"createdBy"` }
func NewStatement ¶
func (*Statement) SetSubject ¶
func (s *Statement) SetSubject(servicesManager artifactory.ArtifactoryServicesManager, subject, subjectSha256 string) error
Click to show internal directories.
Click to hide internal directories.