mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-18 22:11:39 -04:00
* [COMPLIANCE] Add/Update Copyright Headers * make generate update * make generate --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: sanya <[email protected]> Co-authored-by: Sanya <[email protected]>
23 lines
594 B
Go
23 lines
594 B
Go
// Copyright IBM Corp. 2024, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package provenance
|
|
|
|
const StatementType = "https://in-toto.io/Statement/v1"
|
|
|
|
type Statement struct {
|
|
Type string `json:"_type"`
|
|
Subject []Subject `json:"subject"`
|
|
PredicateType string `json:"predicateType"`
|
|
Predicate interface{} `json:"predicate"`
|
|
}
|
|
|
|
func WrapInToto(subjects []Subject, predicateType string, predicate interface{}) Statement {
|
|
return Statement{
|
|
Type: StatementType,
|
|
Subject: subjects,
|
|
PredicateType: predicateType,
|
|
Predicate: predicate,
|
|
}
|
|
}
|