kubernetes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListNamespaces

func ListNamespaces(f *cmdutil.Factory) ([]string, error)

ListNamespaces returns the names of all the pods in a namespace

func ListResourceTypes

func ListResourceTypes(f *cmdutil.Factory) ([]string, error)

ListResourceTypes returns the list of available resource types for the kubernetes cluster

func ListResources

func ListResources(f *cmdutil.Factory, cmd *cobra.Command, args []string) ([]string, error)

ListResources returns the names of all resources for a type

Types

type DefaultPortForwarder

type DefaultPortForwarder struct {
	Factory *cmdutil.Factory
	genericclioptions.IOStreams
}

DefaultPortForwarder creates port forwarder instance for the resource

func (*DefaultPortForwarder) ForwardPorts

func (f *DefaultPortForwarder) ForwardPorts(method string, url *url.URL, opts portforward.PortForwardOptions) error

ForwardPorts starts port forwarding for a specific resource

Jump to

Keyboard shortcuts

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