factory

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL