client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 19 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
	// Registry to store docker images for user services
	// Default value for tm cloud is knative.registry.svc.cluster.local
	// RegistryHost    string
	// RegistrySecret  string
	// RegistrySkipTLS bool
	// 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
	Build           *buildApi.Clientset
	Serving         *servingApi.Clientset
	LegacyEventing  *legacyEventingApi.Clientset
	Eventing        *eventingApi.Clientset
	GithubSource    *githubSource.Clientset
	TektonPipelines *pipelineApi.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
}

Jump to

Keyboard shortcuts

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