Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ArgoTemplateKey represents the key used in the package's data field that // contains the template. ArgoTemplateKey = "template" // FalcoRulesKey represents the key used in the package's data field that // contains the raw rules. FalcoRulesKey = "rules" // GatekeeperExamplesKey represents the key used in the package's data // field that contains the examples. GatekeeperExamplesKey = "examples" // GatekeeperTemplateKey represents the key used in the package's data field // that contains the template. GatekeeperTemplateKey = "template" // KubeArmorPoliciesKey represents the key used in the package's data field // that contains the raw policies. KubeArmorPoliciesKey = "policies" // KyvernoPolicyKey represents the key used in the package's data field that // contains the raw policy. KyvernoPolicyKey = "policy" // OPAPoliciesKey represents the key used in the package's data field that // contains the raw policies. OPAPoliciesKey = "policies" )
Variables ¶
This section is empty.
Functions ¶
func GetFilesWithSuffix ¶
func GetFilesWithSuffix(suffix, rootPath string, ignorer ignore.IgnoreParser) (map[string]string, error)
GetFilesWithSuffix returns the files with a given suffix in the path provided, ignoring the ones the ignorer matches.
func PreparePackage ¶
func PreparePackage(r *hub.Repository, md *hub.PackageMetadata, pkgPath string) (*hub.Package, error)
PreparePackage prepares a package version using the metadata and the files in the path provided.
Types ¶
type GKExample ¶
type GKExample struct { Name string `json:"name"` Cases []*GKExampleCase `json:"cases"` }
GKExample represents an example in a Gatekeeper policy.
type GKExampleCase ¶
type GKExampleCase struct { Name string `json:"name"` Path string `json:"path"` Content string `json:"content"` }
GKExampleCase represents an example's case in a Gatekeeper policy.
type TrackerSource ¶
type TrackerSource struct {
// contains filtered or unexported fields
}
TrackerSource is a hub.TrackerSource implementation used by several kinds of repositories.
func NewTrackerSource ¶
func NewTrackerSource(i *hub.TrackerSourceInput, opts ...func(s *TrackerSource)) *TrackerSource
NewTrackerSource creates a new TrackerSource instance.
func (*TrackerSource) GetPackagesAvailable ¶
func (s *TrackerSource) GetPackagesAvailable() (map[string]*hub.Package, error)
GetPackagesAvailable implements the TrackerSource interface.
Click to show internal directories.
Click to hide internal directories.