Documentation ¶
Overview ¶
Package kubernetes provides access to the Kubernetes API
Package kubernetes provides access to the Kubernetes API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client interface that allows us to mock calls to the Kubernetes API
func NewClient ¶
func NewClient() Client
NewClient initiates connection to the kubernetes API See https://github.com/kubernetes/client-go/blob/master/examples/in-cluster/main.go
type ClientConfig ¶
type ClientConfig struct {
// contains filtered or unexported fields
}
ClientConfig holds the kubernetes session for when communicating with the kubernetes API
func (ClientConfig) GetEndpoints ¶
GetEndpoints gets the endpoints from the kubernetes API See https://github.com/kubernetes/client-go
type EndpointsController ¶
type EndpointsController struct {
// contains filtered or unexported fields
}
EndpointsController provides access to the kubernetes endpoints functions
func NewEndpointsController ¶
func NewEndpointsController(client Client) *EndpointsController
NewEndpointsController stores our real or mocked kubernetes client object
func (EndpointsController) GetEndpoints ¶
GetEndpoints is a wrapper function around the kubernetes client. If there is any manipulation or filtering of the kubernetes types or data, it should be done here.