Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePolicyProviderFromConfig ¶
func CreatePolicyProviderFromConfig(policyConfig config.PoliciesConfig) (policyprovider.PolicyProvider, error)
CreatePolicyProvidersFromConfig creates a policy provider from the provided configuration
func Register ¶
func Register(name string, factory PolicyFactory)
Register adds the factory to the built in providers map
Types ¶
type PolicyFactory ¶
type PolicyFactory interface {
Create(policyConfig config.PolicyPluginConfig) (policyprovider.PolicyProvider, error)
}
PolicyFactory is an interface that defines methods to create a policy provider
Click to show internal directories.
Click to hide internal directories.