Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶
RegisterPlugin registers a plugin Factory by name. This is expected to happen during app startup.
Types ¶
type Attributes ¶
type Attributes interface { GetNamespace() string GetKind() string GetOperation() string GetObject() runtime.Object }
Attributes is an interface used by AdmissionController to get information about a request that is used to make an admission decision.
func NewAttributesRecord ¶
func NewAttributesRecord(object runtime.Object, namespace, kind, operation string) Attributes
type Factory ¶
Factory is a function that returns a Interface for admission decisions. The config parameter provides an io.Reader handler to the factory in order to load specific configurations. If no configuration is provided the parameter is nil.
type Interface ¶
type Interface interface { // Admit makes an admission decision based on the request attributes Admit(a Attributes) (err error) }
Interface is an abstract, pluggable interface for Admission Control decisions.
func GetPlugin ¶
GetInterface creates an instance of the named plugin, or nil if the name is not known. The error return is only used if the named provider was known but failed to initialize. The config parameter specifies the io.Reader handler of the configuration file for the cloud provider, or nil for no configuration.
func InitPlugin ¶
InitPlugin creates an instance of the named interface