jx: github.com/jenkins-x/jx/pkg/jxfactory/connector Index | Files | Directories

package connector

import "github.com/jenkins-x/jx/pkg/jxfactory/connector"

Index

Package Files

config_factory.go connector.go interface.go

type Client Uses

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 Uses

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

ConfigClientFactory uses the given config to create clients

func NewConfigClientFactory Uses

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

NewConfigClientFactory creates a client factory for a given name and config

func (*ConfigClientFactory) CreateApiExtensionsClient Uses

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

CreateApiExtensionsClient creates an API extensions client

func (*ConfigClientFactory) CreateDynamicClient Uses

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

CreateDynamicClient create a new dynamic client

func (*ConfigClientFactory) CreateJXClient Uses

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

CreateJXClient creates a new Kubernetes client for Jenkins X CRDs

func (*ConfigClientFactory) CreateKubeClient Uses

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

CreateKubeClient creates a new Kubernetes client

func (*ConfigClientFactory) CreateTektonClient Uses

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

CreateTektonClient create a new Kubernetes client for Tekton resources

type GKEConnector Uses

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 Uses

func (c *GKEConnector) Path() string

type RemoteConnector Uses

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 Uses

func (c *RemoteConnector) Path() string

Key returns the key used for caching connectors

Directories

PathSynopsis
gcp
provider

Package connector imports 10 packages (graph) and is imported by 2 packages. Updated 2019-10-16. Refresh now. Tools for package owners.