Documentation ¶
Index ¶
- type CloneFn
- type GitClient
- type GitPolicyFile
- type GitPolicySource
- type GitTree
- type GitTreeWalker
- type LocalPolicySource
- type Policy
- type PolicyAgent
- type PolicyEvaluationResult
- func (r *PolicyEvaluationResult) AppendErroredPolicy(policy *Policy)
- func (r *PolicyEvaluationResult) AppendSuccessfulPolicy(policy *Policy)
- func (r *PolicyEvaluationResult) Errored() []*Policy
- func (r *PolicyEvaluationResult) ErroredCount() int
- func (r *PolicyEvaluationResult) Groups() []string
- func (r *PolicyEvaluationResult) Policies(group string) []*Policy
- func (r *PolicyEvaluationResult) ValidCount() int
- func (r *PolicyEvaluationResult) ViolatedCount() int
- type PolicyFile
- type PolicySource
- type ReadFn
- type WalkFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitPolicyFile ¶ added in v0.0.2
type GitPolicyFile struct { Hash string *PolicyFile }
type GitPolicySource ¶ added in v0.0.2
type GitPolicySource struct {
// contains filtered or unexported fields
}
func (GitPolicySource) GetPolicyFiles ¶ added in v0.0.2
func (src GitPolicySource) GetPolicyFiles() ([]*PolicyFile, error)
type GitTreeWalker ¶ added in v0.0.2
type LocalPolicySource ¶ added in v0.0.2
type LocalPolicySource struct {
// contains filtered or unexported fields
}
func (LocalPolicySource) GetPolicyFiles ¶ added in v0.0.2
func (src LocalPolicySource) GetPolicyFiles() ([]*PolicyFile, error)
type PolicyAgent ¶
type PolicyAgent struct {
// contains filtered or unexported fields
}
func NewPolicyAgent ¶
func NewPolicyAgent(ctx context.Context, files []*PolicyFile) *PolicyAgent
func (*PolicyAgent) EvaluatePolicies ¶
func (p *PolicyAgent) EvaluatePolicies(input interface{}) (*PolicyEvaluationResult, error)
type PolicyEvaluationResult ¶
type PolicyEvaluationResult struct {
// contains filtered or unexported fields
}
func (*PolicyEvaluationResult) AppendErroredPolicy ¶
func (r *PolicyEvaluationResult) AppendErroredPolicy(policy *Policy)
func (*PolicyEvaluationResult) AppendSuccessfulPolicy ¶
func (r *PolicyEvaluationResult) AppendSuccessfulPolicy(policy *Policy)
func (*PolicyEvaluationResult) Errored ¶
func (r *PolicyEvaluationResult) Errored() []*Policy
func (*PolicyEvaluationResult) ErroredCount ¶
func (r *PolicyEvaluationResult) ErroredCount() int
func (*PolicyEvaluationResult) Groups ¶
func (r *PolicyEvaluationResult) Groups() []string
func (*PolicyEvaluationResult) Policies ¶
func (r *PolicyEvaluationResult) Policies(group string) []*Policy
func (*PolicyEvaluationResult) ValidCount ¶
func (r *PolicyEvaluationResult) ValidCount() int
func (*PolicyEvaluationResult) ViolatedCount ¶
func (r *PolicyEvaluationResult) ViolatedCount() int
type PolicyFile ¶ added in v0.0.2
type PolicySource ¶ added in v0.0.2
type PolicySource interface {
GetPolicyFiles() ([]*PolicyFile, error)
}
func NewGitPolicySource ¶ added in v0.0.2
func NewGitPolicySource(repoURL string, repoBrach string, policyDir string) PolicySource
func NewLocalPolicySource ¶ added in v0.0.2
func NewLocalPolicySource(rootDirectory string) PolicySource
Click to show internal directories.
Click to hide internal directories.