Documentation
¶
Index ¶
Constants ¶
View Source
const ( OutputFormatText = "text" OutputFormatJSON = "json" )
Variables ¶
This section is empty.
Functions ¶
func AddSetupControls ¶
func AddSetupRepo ¶
func CheckAuth ¶
func CheckAuth() (*auth.Authenticator, error)
Types ¶
type AuditCommitResultJSON ¶ added in v0.7.0
type AuditCommitResultJSON struct {
Commit string `json:"commit"`
Status string `json:"status"`
VerifiedLevels []string `json:"verified_levels,omitempty"`
PrevCommitMatches *bool `json:"prev_commit_matches,omitempty"`
ProvControls interface{} `json:"prov_controls,omitempty"`
Controls interface{} `json:"controls,omitempty"`
PrevCommit string `json:"prev_commit,omitempty"`
PriorCommit string `json:"prior_commit,omitempty"`
Link string `json:"link,omitempty"`
Error string `json:"error,omitempty"`
}
AuditCommitResultJSON represents a single commit audit result in JSON format
type AuditMode ¶
type AuditMode int
type AuditResultJSON ¶ added in v0.7.0
type AuditResultJSON struct {
Owner string `json:"owner"`
Repository string `json:"repository"`
Branch string `json:"branch"`
LatestCommit string `json:"latest_commit"`
CommitResults []AuditCommitResultJSON `json:"commit_results"`
Summary *AuditSummary `json:"summary,omitempty"`
}
AuditResultJSON represents the full audit result in JSON format
type AuditSummary ¶ added in v0.7.0
type AuditSummary struct {
TotalCommits int `json:"total_commits"`
PassedCommits int `json:"passed_commits"`
FailedCommits int `json:"failed_commits"`
}
AuditSummary provides summary statistics for the audit
type VerifyCommitResult ¶ added in v0.7.0
type VerifyCommitResult struct {
Success bool `json:"success"`
Commit string `json:"commit"`
Ref string `json:"ref"`
RefType string `json:"ref_type"` // "branch" or "tag"
Owner string `json:"owner"`
Repository string `json:"repository"`
VerifiedLevels []string `json:"verified_levels,omitempty"`
Message string `json:"message,omitempty"`
}
VerifyCommitResult represents the result of a commit verification
func (VerifyCommitResult) String ¶ added in v0.7.0
func (v VerifyCommitResult) String() string
String implements fmt.Stringer for text output
Click to show internal directories.
Click to hide internal directories.