kubernetes

package
v0.0.0-...-fde7ecd Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

Client handles interactions with the Kubernetes API.

func New

func New(namespace string, certSecretName string, mirrorsConfigMap string) (*Client, error)

New configures a new Kubernetes Client.

func (*Client) Certificates

func (client *Client) Certificates() (tls.Certificate, error)

Certificates fetches TLS certificates from a kubernetes secret.

func (*Client) Mirrors

func (client *Client) Mirrors() map[string]string

Mirrors returns all mirrors which have been retrieved from the Kubernetes API.

func (*Client) Stop

func (client *Client) Stop() error

Stop gracefully ends the watch, typically in preparation for an application halt.

func (*Client) WatchMirrors

func (client *Client) WatchMirrors(cb func()) error

WatchMirrors initiates a watch on the Kubernetes ConfigMap to be notified of changes without needing an application restart.

Jump to

Keyboard shortcuts

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