github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/pkg/utils/tekton/verify_enterprise_contract.go (about) 1 package tekton 2 3 import app "github.com/redhat-appstudio/application-api/api/v1alpha1" 4 5 type VerifyEnterpriseContract struct { 6 Snapshot app.SnapshotSpec 7 TaskBundle string 8 Name string 9 Namespace string 10 PolicyConfiguration string 11 PublicKey string 12 Strict bool 13 EffectiveTime string 14 IgnoreRekor bool 15 } 16 17 func (p *VerifyEnterpriseContract) WithComponentImage(imageRef string) { 18 p.Snapshot.Components = []app.SnapshotComponent{ 19 { 20 ContainerImage: imageRef, 21 }, 22 } 23 } 24 25 func (p *VerifyEnterpriseContract) AppendComponentImage(imageRef string) { 26 p.Snapshot.Components = append(p.Snapshot.Components, app.SnapshotComponent{ 27 ContainerImage: imageRef, 28 }) 29 }