Documentation ¶
Index ¶
- func SetInstance(i Ops)
- type Client
- func (c *Client) CreateMutatingWebhookConfiguration(cfg *hook.MutatingWebhookConfiguration) (*hook.MutatingWebhookConfiguration, error)
- func (c *Client) DeleteMutatingWebhookConfiguration(name string) error
- func (c *Client) GetMutatingWebhookConfiguration(name string) (*hook.MutatingWebhookConfiguration, error)
- func (c *Client) SetConfig(cfg *rest.Config)
- func (c *Client) UpdateMutatingWebhookConfiguration(cfg *hook.MutatingWebhookConfiguration) (*hook.MutatingWebhookConfiguration, error)
- type MutatingWebhookConfigurationOps
- type Ops
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInstance ¶
func SetInstance(i Ops)
SetInstance replaces the instance with the provided one. Should be used only for testing purposes.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a wrapper for kubernetes admission interface.
func New ¶
func New(client apiadmissionsclient.AdmissionregistrationV1beta1Interface) *Client
New builds a new admissionregistration client.
func NewForConfig ¶
NewForConfig builds a new admissionregistration client for the given config.
func (*Client) CreateMutatingWebhookConfiguration ¶
func (c *Client) CreateMutatingWebhookConfiguration(cfg *hook.MutatingWebhookConfiguration) (*hook.MutatingWebhookConfiguration, error)
CreateMutatingWebhookConfiguration creates given MutatingWebhookConfiguration
func (*Client) DeleteMutatingWebhookConfiguration ¶
DeleteMutatingWebhookConfiguration deletes given MutatingWebhookConfiguration
func (*Client) GetMutatingWebhookConfiguration ¶
func (c *Client) GetMutatingWebhookConfiguration(name string) (*hook.MutatingWebhookConfiguration, error)
GetMutatingWebhookConfiguration returns a given MutatingWebhookConfiguration
func (*Client) UpdateMutatingWebhookConfiguration ¶
func (c *Client) UpdateMutatingWebhookConfiguration(cfg *hook.MutatingWebhookConfiguration) (*hook.MutatingWebhookConfiguration, error)
UpdateMutatingWebhookConfiguration updates given MutatingWebhookConfiguration
type MutatingWebhookConfigurationOps ¶
type MutatingWebhookConfigurationOps interface { // GetMutatingWebhookConfiguration returns a given MutatingWebhookConfiguration GetMutatingWebhookConfiguration(name string) (*hook.MutatingWebhookConfiguration, error) // CreateMutatingWebhookConfiguration creates given MutatingWebhookConfiguration CreateMutatingWebhookConfiguration(req *hook.MutatingWebhookConfiguration) (*hook.MutatingWebhookConfiguration, error) // UpdateMutatingWebhookConfiguration updates given MutatingWebhookConfiguration UpdateMutatingWebhookConfiguration(*hook.MutatingWebhookConfiguration) (*hook.MutatingWebhookConfiguration, error) // DeleteMutatingWebhookConfiguration deletes given MutatingWebhookConfiguration DeleteMutatingWebhookConfiguration(name string) error }
MutatingWebhookConfigurationOps is interface to perform CRUD ops on mutatting webhook controller
type Ops ¶
type Ops interface { MutatingWebhookConfigurationOps // SetConfig sets the config and resets the client. SetConfig(config *rest.Config) }
Ops is an interface to the admission client wrapper.
func NewInstanceFromConfigFile ¶
NewInstanceFromConfigFile returns new instance of client by using given config file