Documentation ¶
Index ¶
- Variables
- func SetInstance(i Ops)
- type Client
- func (c *Client) CreateIngress(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error)
- func (c *Client) DeleteIngress(name, namespace string) error
- func (c *Client) GetIngress(name, namespace string) (*v1beta1.Ingress, error)
- func (c *Client) SetConfig(cfg *rest.Config)
- func (c *Client) UpdateIngress(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error)
- func (c *Client) ValidateIngress(ingress *v1beta1.Ingress, timeout, retryInterval time.Duration) error
- type IngressOps
- type Ops
Constants ¶
This section is empty.
Variables ¶
var NamespaceDefault = "default"
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 the kubernetes networking client.
func New ¶
func New(networking networkingv1betaclient.NetworkingV1beta1Interface) *Client
New builds a new networking client.
func NewForConfig ¶
NewForConfig builds a new networking client for the given config.
func (*Client) CreateIngress ¶
CreateIngress creates the given ingress
func (*Client) DeleteIngress ¶
DeleteIngress deletes the given ingress
func (*Client) GetIngress ¶
GetIngress returns the ingress given name and namespace
func (*Client) UpdateIngress ¶
UpdateIngress creates the given ingress
type IngressOps ¶
type IngressOps interface { // CreateIngress creates the given ingress CreateIngress(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error) // UpdateIngress creates the given ingress UpdateIngress(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error) // GetIngress returns the ingress given name and namespace GetIngress(name, namespace string) (*v1beta1.Ingress, error) // DeleteIngress deletes the given ingress DeleteIngress(name, namespace string) error // ValidateIngress validates the given ingress ValidateIngress(ingress *v1beta1.Ingress, timeout, retryInterval time.Duration) error }
Ops is an interface to perform kubernetes related operations on the crd resources.
type Ops ¶
type Ops interface { IngressOps // SetConfig sets the config and resets the client SetConfig(config *rest.Config) }
Ops is an interface to perform kubernetes related operations on the networking resources.
func NewInstanceFromConfigFile ¶
NewInstanceFromConfigFile returns new instance of client by using given config file