cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SubCommandFactories = []SubCommandFactory{}

Functions

This section is empty.

Types

type CatalogCommand

type CatalogCommand struct {
	Short            string `json:"short-description,omitempty"`
	Long             string `json:"long-description,omitempty"`
	CatalogBaseURL   string `json:"catalog-base-url,omitempty"`
	CatalogPublicKey string `json:"catalog-public-key,omitempty"`
}

type CatalogCommandIndex

type CatalogCommandIndex struct {
	Latest   string   `json:"latest,omitempty"`
	Versions []string `json:"versions,omitempty"`
}

type CatalogIndex

type CatalogIndex struct {
	Commands map[string]*CatalogCommand `json:"commands,omitempty"`
}

type Options

type Options struct {
	Context        context.Context
	Kubeconfig     string
	Master         string
	CacheExpires   time.Time
	InfoLog        io.Writer
	DebugLog       io.Writer
	CatalogIndex   *CatalogIndex
	CommandVersion string
}

func (*Options) LoadBuildConfig

func (o *Options) LoadBuildConfig() (*restclient.Config, error)

func (*Options) NewApiClient

func (o *Options) NewApiClient() (*kubernetes.Clientset, error)

type SubCommandFactory

type SubCommandFactory func(options *Options) *cobra.Command

Directories

Path Synopsis
This package implements a sub command plugin for camel-k.
This package implements a sub command plugin for camel-k.
This package implements a sub command plugin for kubectl.
This package implements a sub command plugin for kubectl.
This package implements a sub command plugin for version.
This package implements a sub command plugin for version.

Jump to

Keyboard shortcuts

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