clients

package
Version: v0.0.0-...-83d34d5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClientConfig

func BuildClientConfig(kubeConfigPath string, clusterName string) (*rest.Config, error)

BuildClientConfig builds the client config specified by the config path and the cluster name

Types

type Clients

Clients holds instances of interfaces for making requests to Tekton Pipelines.

func NewClients

func NewClients(configPath string, clusterName, namespace string) (*Clients, error)

NewClients instantiates and returns several clientsets required for making request to the TektonPipeline cluster specified by the combination of clusterName and configPath.

func (*Clients) TektonAddon

func (*Clients) TektonConfig

func (*Clients) TektonDashboard

func (c *Clients) TektonDashboard() operatorv1alpha1.TektonDashboardInterface

func (*Clients) TektonPipeline

func (c *Clients) TektonPipeline() operatorv1alpha1.TektonPipelineInterface

func (*Clients) TektonTrigger

func (c *Clients) TektonTrigger() operatorv1alpha1.TektonTriggerInterface

type KubeClient

type KubeClient struct {
	Kube *kubernetes.Clientset
}

KubeClient holds instances of interfaces for making requests to kubernetes client.

func NewKubeClient

func NewKubeClient(configPath string, clusterName string) (*KubeClient, *rest.Config, error)

NewKubeClient instantiates and returns several clientsets required for making request to the kube client specified by the combination of clusterName and configPath. Clients can make requests within namespace.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL