Help us shape the future of Go! Take the 2026 Go Developer Survey

factory

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 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