client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Namespace to work in passed with "-n" argument or defined in kube configs
	Namespace string
	// Output format for k8s objects in "tm get" result. Can be either "yaml" (default) or "json"
	Output string
	// Debug enables verbose output for CLI commands
	Debug bool
	// Dry run of some commands
	Dry bool
	// Wait till deployment operation finishes
	Wait bool
)

CLI global flags

Functions

func ConfigPath added in v0.0.10

func ConfigPath(cfgFile string) string

ConfigPath calculates local path to get tm config from

Types

type ConfigSet

type ConfigSet struct {
	Core            *kubernetes.Clientset
	Serving         *servingApi.Clientset
	Eventing        *eventingApi.Clientset
	GithubSource    *githubSource.Clientset
	TektonPipelines *tektonResource.Clientset
	TektonTasks     *tektonTask.Clientset
	TektonTriggers  *triggersApi.Clientset
	Registry        *Registry
	Log             *logwrapper.StandardLogger
	Printer         *printerwrapper.Printer
	Config          *rest.Config
}

ConfigSet contains different information that may be needed by underlying functions

func NewClient

func NewClient(cfgFile string, output ...io.Writer) (ConfigSet, error)

NewClient returns ConfigSet created from available configuration file or from in-cluster environment

type Registry added in v0.0.10

type Registry struct {
	Host    string
	Secret  string
	SkipTLS bool
}

Registry to store container images for user services

Jump to

Keyboard shortcuts

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