Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPolicyType(policyType PolicyType)
- type Metadata
- type Policy
- type PolicyType
- type Store
- func (m *Store) CreateZipArchive(path string) error
- func (m *Store) GetPolicyUploadMetadata(filename string) (map[string]string, error)
- func (m *Store) LoadPolicies() error
- func (m *Store) LoadPoliciesOfType(policyType PolicyType) error
- func (m *Store) LoadSinglePolicy(policyType PolicyType, path string) (*Policy, error)
- func (m *Store) PolicyCount() (count int)
- func (m *Store) PreparePolicies(dest string) error
- type Target
Constants ¶
View Source
const ( Terraform = Target("terraform") TerraformPlan = Target("terraform-plan") Cloudformation = Target("cloudformation") Kubernetes = Target("kubernetes") Helm = Target("helm") Docker = Target("docker") Secrets = Target("secrets") ARM = Target("arm") None = Target("") Policies = "policies" )
Variables ¶
View Source
var InputTypeForTarget = map[Target]string{ Terraform: "tf", Cloudformation: "cfn", Kubernetes: "k8s", ARM: "arm", }
Functions ¶
func RegisterPolicyType ¶ added in v0.5.35
func RegisterPolicyType(policyType PolicyType)
Types ¶
type PolicyType ¶ added in v0.5.35
type PolicyType interface { GetName() string GetCode() string PreparePolicies(policies []*Policy, dest string) error }
func GetPolicyType ¶ added in v0.5.35
func GetPolicyType(policyTypeName string) PolicyType
func GetPolicyTypes ¶ added in v0.5.35
func GetPolicyTypes() (res []PolicyType)
type Store ¶ added in v0.5.27
type Store struct { Dir string Policies map[PolicyType][]*Policy PolicyIds map[string]string SkipPolicyIDResolution bool }
func NewDownloadStore ¶ added in v0.5.39
func (*Store) CreateZipArchive ¶ added in v0.5.43
func (*Store) GetPolicyUploadMetadata ¶ added in v0.5.27
func (*Store) LoadPolicies ¶ added in v0.5.35
func (*Store) LoadPoliciesOfType ¶ added in v0.5.35
func (m *Store) LoadPoliciesOfType(policyType PolicyType) error
func (*Store) LoadSinglePolicy ¶ added in v0.5.35
func (m *Store) LoadSinglePolicy(policyType PolicyType, path string) (*Policy, error)
func (*Store) PolicyCount ¶ added in v0.5.35
func (*Store) PreparePolicies ¶ added in v0.5.35
Click to show internal directories.
Click to hide internal directories.