connector

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {

	// IngressChangeChan is called when an ingress change is detected
	IngressChangeChan chan struct{}

	// ServicesChangeChan is called when a service change is detected
	ServicesChangeChan chan struct{}

	// SecretChangeChan is called when a secret change is detected
	SecretChangeChan chan struct{}
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

NewClient generates a client with the right configuration

func (*Client) GetIngresses

func (c *Client) GetIngresses() map[string]*networkingv1beta1.Ingress

func (*Client) GetSecretMap

func (c *Client) GetSecretMap() map[string]*corev1.Secret

func (*Client) GetServiceMap

func (c *Client) GetServiceMap() map[string]*corev1.Service

GetServiceMap gives all services in a map to look them up in (namespace)-(service) format

func (*Client) WatchIngress

func (c *Client) WatchIngress(ctx context.Context) error

func (*Client) WatchSecrets

func (c *Client) WatchSecrets(ctx context.Context) error

func (*Client) WatchServices

func (c *Client) WatchServices(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL