context

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentContext

func CurrentContext(ctx context.Context) string

CurrentContext returns the current context name

func WithCurrentContext

func WithCurrentContext(ctx gocontext.Context, contextName string) context.Context

WithCurrentContext sets the name of the current docker context

Types

type ContextFlags

type ContextFlags struct {
	Context string
}

ContextFlags are the global CLI flags nolint stutter

func (*ContextFlags) AddContextFlags

func (c *ContextFlags) AddContextFlags(flags *pflag.FlagSet)

AddContextFlags adds persistent (global) flags

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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