internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationRevert is the name of the command annotation that is used to control the Revert flag.
	AnnotationRevert = "revert"
)

Variables

This section is empty.

Functions

func RemoveSessions

func RemoveSessions(cmd *cobra.Command) (session.State, func(), error)

RemoveSessions creates a Handler for the given session operation for removing a session session expects that cmd has offline and session flags defined. otherwise it fails.

func Sessions

func Sessions(cmd *cobra.Command) (session.State, session.Options, func(), error)

Sessions creates a Handler for the given session operation session expects that cmd has offline, namespace, route, deployment and session flags defined. otherwise it fails.

func ToOptions

func ToOptions(annotations map[string]string, flags *pflag.FlagSet) (session.Options, error)

ToOptions converts between FlagSet to a Handler Options.

func ToRemoveOptions

func ToRemoveOptions(flags *pflag.FlagSet) (session.Options, error)

ToRemoveOptions converts between FlagSet to a Handler Options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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