proxiedpdclient

package
v1.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxiedPDClient

func NewProxiedPDClient(kubeCli kubernetes.Interface, fw utilportforward.PortForward, namespace string, tcName string, tlsEnabled bool, caCert []byte) (pdapi.PDClient, context.CancelFunc, error)

NewProxiedPDClient creates an PD client which can be used outside of the Kubernetes cluster.

Example:

   pdClient, cancel, err := NewProxiedPDClient(...)
   if err != nil {
		log.Fatal(err)
	  }
   defer cancel()

Types

This section is empty.

Jump to

Keyboard shortcuts

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