kube

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeProvider

func NewFakeProvider() endpoint.Provider

NewFakeProvider implements mesh.EndpointsProvider, which creates a test Kubernetes cluster/compute provider.

func NewProvider

func NewProvider(kubeClient kubernetes.Interface, kubeController k8s.Controller, providerIdent string, cfg configurator.Configurator) (endpoint.Provider, error)

NewProvider implements mesh.EndpointsProvider, which creates a new Kubernetes cluster/compute provider.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a struct for all components necessary to connect to and maintain state of a Kubernetes cluster.

func (*Client) GetID

func (c *Client) GetID() string

GetID returns a string descriptor / identifier of the compute provider. Required by interface: EndpointsProvider

func (*Client) GetResolvableEndpointsForService added in v0.4.0

func (c *Client) GetResolvableEndpointsForService(svc service.MeshService) ([]endpoint.Endpoint, error)

GetResolvableEndpointsForService returns the expected endpoints that are to be reached when the service FQDN is resolved

func (Client) GetServicesForServiceAccount added in v0.4.0

func (c Client) GetServicesForServiceAccount(svcAccount service.K8sServiceAccount) ([]service.MeshService, error)

GetServicesForServiceAccount retrieves a list of services for the given service account.

func (Client) GetTargetPortToProtocolMappingForService added in v0.7.0

func (c Client) GetTargetPortToProtocolMappingForService(svc service.MeshService) (map[uint32]string, error)

GetTargetPortToProtocolMappingForService returns a mapping of the service's ports to their corresponding application protocol

func (Client) ListEndpointsForService

func (c Client) ListEndpointsForService(svc service.MeshService) []endpoint.Endpoint

ListEndpointsForService retrieves the list of IP addresses for the given service

Jump to

Keyboard shortcuts

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