Documentation ¶
Index ¶
- Constants
- func Connect(cfg Config) (conn *grpc.ClientConn, err error)
- func Connection(ctx context.Context) *grpc.ClientConn
- func NewDirectConnector(cfg Config) extpoints.Connector
- func NewInClusterConnector(cfg Config) extpoints.Connector
- func NewKubeconfigConnector(cfg Config) extpoints.Connector
- func Tunnel(ctx context.Context) *portforward.Tunnel
- func WithConnection(parent context.Context, v *grpc.ClientConn) context.Context
- func WithTunnel(parent context.Context, v *portforward.Tunnel) context.Context
- type Config
- type DirectConnector
- type InClusterConnector
- type KubeconfigConnector
- type TunnelConnector
Constants ¶
View Source
const (
UIDDirectConnector = "direct"
)
View Source
const (
UIDInClusterConnector = "incluster"
)
View Source
const (
UIDKubeconfigConnector = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(cfg Config) (conn *grpc.ClientConn, err error)
connect returns a grpc connection to tiller or error. The grpc dial options are constructed here.
func Connection ¶
func Connection(ctx context.Context) *grpc.ClientConn
func NewDirectConnector ¶
func NewInClusterConnector ¶
func NewKubeconfigConnector ¶
func WithConnection ¶
func WithTunnel ¶
Types ¶
type DirectConnector ¶
type DirectConnector struct {
// contains filtered or unexported fields
}
func (*DirectConnector) UID ¶
func (c *DirectConnector) UID() string
type InClusterConnector ¶
type InClusterConnector struct {
// contains filtered or unexported fields
}
func (*InClusterConnector) UID ¶
func (c *InClusterConnector) UID() string
type KubeconfigConnector ¶
type KubeconfigConnector struct { *TunnelConnector // contains filtered or unexported fields }
func (*KubeconfigConnector) UID ¶
func (c *KubeconfigConnector) UID() string
type TunnelConnector ¶
type TunnelConnector struct { }
func (*TunnelConnector) GetTillerAddr ¶
func (s *TunnelConnector) GetTillerAddr(client clientset.Interface, config *rest.Config) (*portforward.Tunnel, error)
Click to show internal directories.
Click to hide internal directories.