Back to godoc.org
github.com/jenkins-x/jx / pkg / jxfactory / connector

package connector

v1.3.981 (5ccee8e)
Latest Go to latest
Published: Jun 25, 2020 | License: Apache-2.0 | Module: github.com/jenkins-x/jx

Index

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier