Versions in this module Expand all Collapse all v0 v0.6.3 Aug 12, 2025 v0.6.2 Aug 6, 2025 Changes in this version + const SourcePolicyRepo + const SourcePolicyRepoOwner + const SourcePolicyUri + var File_policy_proto protoreflect.FileDescriptor + func ComputeEligibleSince(controls slsa.Controls, level slsa.SlsaSourceLevel) (*time.Time, error) + func ComputeEligibleSlsaLevel(controls slsa.Controls) slsa.SlsaSourceLevel + type OrgStatusCheckControl struct + CheckName string + PropertyName string + Since *timestamppb.Timestamp + func (*OrgStatusCheckControl) Descriptor() ([]byte, []int) + func (*OrgStatusCheckControl) ProtoMessage() + func (ctl *OrgStatusCheckControl) MarshalJSON() ([]byte, error) + func (x *OrgStatusCheckControl) GetCheckName() string + func (x *OrgStatusCheckControl) GetPropertyName() string + func (x *OrgStatusCheckControl) GetSince() *timestamppb.Timestamp + func (x *OrgStatusCheckControl) ProtoReflect() protoreflect.Message + func (x *OrgStatusCheckControl) Reset() + func (x *OrgStatusCheckControl) String() string + type PolicyEvaluator struct + UseLocalPolicy string + func NewPolicyEvaluator() *PolicyEvaluator + func (pe *PolicyEvaluator) CreateLocalPolicy(ctx context.Context, repo *models.Repository, branch *models.Branch, ...) (string, error) + func (pe *PolicyEvaluator) EvaluateControl(ctx context.Context, repo *models.Repository, branch *models.Branch, ...) (slsa.SourceVerifiedLevels, string, error) + func (pe *PolicyEvaluator) EvaluateSourceProv(ctx context.Context, repo *models.Repository, branch *models.Branch, ...) (slsa.SourceVerifiedLevels, string, error) + func (pe *PolicyEvaluator) EvaluateTagProv(ctx context.Context, repo *models.Repository, prov *spb.Statement) (slsa.SourceVerifiedLevels, string, error) + func (pe *PolicyEvaluator) GetPolicy(ctx context.Context, repo *models.Repository) (policy *RepoPolicy, path string, err error) + type ProtectedBranch struct + Name string + OrgStatusCheckControls []*OrgStatusCheckControl + RequireReview bool + Since *timestamppb.Timestamp + TargetSlsaSourceLevel string + func (*ProtectedBranch) Descriptor() ([]byte, []int) + func (*ProtectedBranch) ProtoMessage() + func (branch *ProtectedBranch) MarshalJSON() ([]byte, error) + func (x *ProtectedBranch) GetName() string + func (x *ProtectedBranch) GetOrgStatusCheckControls() []*OrgStatusCheckControl + func (x *ProtectedBranch) GetRequireReview() bool + func (x *ProtectedBranch) GetSince() *timestamppb.Timestamp + func (x *ProtectedBranch) GetTargetSlsaSourceLevel() string + func (x *ProtectedBranch) ProtoReflect() protoreflect.Message + func (x *ProtectedBranch) Reset() + func (x *ProtectedBranch) String() string + type ProtectedTag struct + Since *timestamppb.Timestamp + TagHygiene bool + func (*ProtectedTag) Descriptor() ([]byte, []int) + func (*ProtectedTag) ProtoMessage() + func (tag *ProtectedTag) MarshalJSON() ([]byte, error) + func (x *ProtectedTag) GetSince() *timestamppb.Timestamp + func (x *ProtectedTag) GetTagHygiene() bool + func (x *ProtectedTag) ProtoReflect() protoreflect.Message + func (x *ProtectedTag) Reset() + func (x *ProtectedTag) String() string + type RepoPolicy struct + CanonicalRepo string + ProtectedBranches []*ProtectedBranch + ProtectedTag *ProtectedTag + func (*RepoPolicy) Descriptor() ([]byte, []int) + func (*RepoPolicy) ProtoMessage() + func (rp *RepoPolicy) GetBranchPolicy(branch string) *ProtectedBranch + func (x *RepoPolicy) GetCanonicalRepo() string + func (x *RepoPolicy) GetProtectedBranches() []*ProtectedBranch + func (x *RepoPolicy) GetProtectedTag() *ProtectedTag + func (x *RepoPolicy) ProtoReflect() protoreflect.Message + func (x *RepoPolicy) Reset() + func (x *RepoPolicy) String() string