Versions in this module Expand all Collapse all v0 v0.19.0 Jun 9, 2015 Changes in this version + func GetPlugins() []string + func NewForbidden(a Attributes, internalError error) error + func RegisterPlugin(name string, plugin Factory) + type Attributes interface + GetKind func() string + GetNamespace func() string + GetObject func() runtime.Object + GetOperation func() Operation + GetResource func() string + GetUserInfo func() user.Info + func NewAttributesRecord(object runtime.Object, kind, namespace, resource string, operation Operation, ...) Attributes + type Factory func(client client.Interface, config io.Reader) (Interface, error) + type Handler struct + func NewHandler(ops ...Operation) *Handler + func (h *Handler) Handles(operation Operation) bool + type Interface interface + Admit func(a Attributes) (err error) + Handles func(operation Operation) bool + func GetPlugin(name string, client client.Interface, config io.Reader) (Interface, error) + func InitPlugin(name string, client client.Interface, configFilePath string) Interface + func NewChainHandler(handlers ...Interface) Interface + func NewFromPlugins(client client.Interface, pluginNames []string, configFilePath string) Interface + type Operation string + const Connect + const Create + const Delete + const Update