Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register makes an Inspector available by the provided name.
If called twice with the same name, the name is blank, or if the provided Extractor is nil, this function panics.
func Unregister ¶
func Unregister(name string)
Unregister removes an Inspector with a particular name from the list.
Types ¶
type Inspector ¶
type Inspector interface { Configure(string) (inspector Inspector, err error) Inspect(kubernetes.Interface, *certificates.CertificateSigningRequest) (message string, err error) }
Inspector represents anything capable of performing a policy check on a CSR. It returns an empty string to take no action, a human readable message with details to take adverse action, or an error to temporarily fail.
type Inspectors ¶
type Inspectors []NamedInspector
A slice of named Inspectors forming a policy.
func (*Inspectors) Set ¶
func (inspectors *Inspectors) Set(value string) error
func (*Inspectors) String ¶
func (inspectors *Inspectors) String() string
type NamedInspector ¶
Click to show internal directories.
Click to hide internal directories.