context

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current added in v1.0.10

func Current() string

Current returns the current context name

func WithCurrentContext

func WithCurrentContext(contextName string)

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