connector

package
v2.1.77 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 10 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 interface {
	Connect(connector *RemoteConnector) (*rest.Config, error)
}

Client a client for connecting to remote clusters to help support multiple clusters for Environments

type ConfigClientFactory

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

ConfigClientFactory uses the given config to create clients

func NewConfigClientFactory

func NewConfigClientFactory(name string, config *rest.Config) *ConfigClientFactory

NewConfigClientFactory creates a client factory for a given name and config

func (*ConfigClientFactory) CreateApiExtensionsClient

func (f *ConfigClientFactory) CreateApiExtensionsClient() (apiextensionsclientset.Interface, error)

CreateApiExtensionsClient creates an API extensions client

func (*ConfigClientFactory) CreateDynamicClient

func (f *ConfigClientFactory) CreateDynamicClient() (*dynamic.APIHelper, error)

CreateDynamicClient create a new dynamic client

func (*ConfigClientFactory) CreateJXClient

func (f *ConfigClientFactory) CreateJXClient() (versioned.Interface, error)

CreateJXClient creates a new Kubernetes client for Jenkins X CRDs

func (*ConfigClientFactory) CreateKubeClient

func (f *ConfigClientFactory) CreateKubeClient() (kubernetes.Interface, error)

CreateKubeClient creates a new Kubernetes client

func (*ConfigClientFactory) CreateTektonClient

func (f *ConfigClientFactory) CreateTektonClient() (tektonclient.Interface, error)

CreateTektonClient create a new Kubernetes client for Tekton resources

type GKEConnector

type GKEConnector struct {
	Project string `json:"project,omitempty" protobuf:"bytes,1,opt,name=project"`
	Cluster string `json:"cluster,omitempty" protobuf:"bytes,2,opt,name=cluster"`
	Region  string `json:"region,omitempty" protobuf:"bytes,3,opt,name=region"`
	Zone    string `json:"zone,omitempty" protobuf:"bytes,4,opt,name=zone"`
}

GKEConnector the connection details for using Google Cloud

func (*GKEConnector) Path

func (c *GKEConnector) Path() string

type RemoteConnector

type RemoteConnector struct {
	GKE *GKEConnector `json:"gcp,omitempty" protobuf:"bytes,1,opt,name=gcp"`
}

RemoteConnector specifies the namespace in the remote cluster

func (*RemoteConnector) Path

func (c *RemoteConnector) Path() string

Key returns the key used for caching connectors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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