namespace

package
v2.1.9-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExportPrinters = map[string]printers.ResourcePrinter{
	"json": &printers.JSONPrinter{},
	"yaml": &printers.YAMLPrinter{},
}
View Source
var ExportResourcePrefixMappings = map[string]string{
	"pods":                   "api/v1",
	"configmaps":             "api/v1",
	"services":               "api/v1",
	"replicationcontrollers": "api/v1",
	"deployments":            "apis/extensions/v1beta1",
	"daemonsets":             "apis/extensions/v1beta1",
	"replicasets":            "apis/extensions/v1beta1",
	"statefulsets":           "apis/apps/v1beta1",
	"jobs":                   "apis/batch/v1",
	"cronjobs":               "apis/batch/v1beta1",
}

Functions

func NewFormatter

func NewFormatter(next types.Formatter) types.Formatter

func NewLinkHandler

func NewLinkHandler(next types.RequestHandler, manager *clustermanager.Manager) types.RequestHandler

func ProjectMap

func ProjectMap(apiContext *types.APIContext, refresh bool) (map[string]string, error)

Types

type ActionWrapper

type ActionWrapper struct {
	ClusterManager *clustermanager.Manager
}

func (ActionWrapper) ActionHandler

func (w ActionWrapper) ActionHandler(actionName string, action *types.Action, apiContext *types.APIContext) error

Jump to

Keyboard shortcuts

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