Documentation ¶
Index ¶
- func GoalConfigsDiffer(log skill.Logger, config skill.Configuration, digest string, ...) (bool, string, error)
- func GoalResultsDiffer(log skill.Logger, queryResults []GoalEvaluationQueryResult, digest string, ...) (bool, string, error)
- type Attestation
- type BuildKitProvenanceMode
- type DockerImageEntity
- type EvaluationMetadata
- type EvaluationResult
- type Goal
- type GoalEvaluationContext
- type GoalEvaluationQueryResult
- type GoalEvaluationResultEntity
- type GoalEvaluator
- type ImagePlatform
- type ImageSubscriptionQueryResult
- type OsDistro
- type Predicate
- type RetractionEntity
- type SubscriptionImage
- type SubscriptionRepository
- type TransactionConditionEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoalConfigsDiffer ¶ added in v0.0.15
func GoalConfigsDiffer(log skill.Logger, config skill.Configuration, digest string, previousConfigHash string) (bool, string, error)
Returns the config hash for the current skill config
func GoalResultsDiffer ¶ added in v0.0.15
func GoalResultsDiffer(log skill.Logger, queryResults []GoalEvaluationQueryResult, digest string, previousStorageId string) (bool, string, error)
GoalResultsDiffer checks if the current query results differ from the previous ones. It returns the storage id for the current query results.
Types ¶
type Attestation ¶ added in v0.0.47
type BuildKitProvenanceMode ¶ added in v0.0.53
type DockerImageEntity ¶
type DockerImageEntity struct { skill.Entity `entity-type:"docker/image"` Digest string `edn:"docker.image/digest"` }
type EvaluationMetadata ¶ added in v0.0.16
type EvaluationResult ¶ added in v0.0.16
type EvaluationResult struct { EvaluationCompleted bool Result []GoalEvaluationQueryResult }
type GoalEvaluationContext ¶ added in v0.0.48
type GoalEvaluationResultEntity ¶
type GoalEvaluationResultEntity struct { skill.Entity `entity-type:"goal/result"` Definition string `edn:"goal.definition/name"` Configuration string `edn:"goal.configuration/name"` Subject DockerImageEntity `edn:"goal.result/subject"` DeviationCount interface{} `edn:"goal.result/deviation-count,omitempty"` StorageId interface{} `edn:"goal.result/storage-id,omitempty"` ConfigHash string `edn:"goal.result/config-hash"` CreatedAt time.Time `edn:"goal.result/created-at"` TransactionCondition TransactionConditionEntity `edn:"atomist/tx-iff"` }
type GoalEvaluator ¶ added in v0.0.15
type GoalEvaluator interface {
EvaluateGoal(ctx context.Context, evalCtx GoalEvaluationContext, sbom types.SBOM, extraData []map[edn.Keyword]edn.RawMessage) (EvaluationResult, error)
}
type ImagePlatform ¶ added in v0.0.15
type ImageSubscriptionQueryResult ¶ added in v0.0.47
type ImageSubscriptionQueryResult struct { ImageDigest string `edn:"docker.image/digest"` ImagePlatforms []ImagePlatform `edn:"docker.image/platform" json:"platforms"` FromReference *SubscriptionImage `edn:"docker.image/from"` FromRepo *SubscriptionRepository `edn:"docker.image/from-repository"` FromTag string `edn:"docker.image/from-tag"` Attestations []Attestation `edn:"intoto.attestation/_subject"` User string `edn:"docker.image/user,omitempty"` }
type Predicate ¶ added in v0.0.47
type Predicate struct {
ProvenanceMode *BuildKitProvenanceMode `edn:"buildkit.provenance/mode,omitempty"`
}
type RetractionEntity ¶ added in v0.0.16
type RetractionEntity struct {
Retract bool `edn:"retract"`
}
type SubscriptionImage ¶ added in v0.0.47
type SubscriptionRepository ¶ added in v0.0.47
type TransactionConditionEntity ¶ added in v0.0.16
type TransactionConditionEntity struct { Args map[string]interface{} `edn:"args"` Where edn.RawMessage `edn:"where"` }
Click to show internal directories.
Click to hide internal directories.