values

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevContextFrom

func DevContextFrom(ctx context.Context) (context.Context, bool)

DevContextFrom returns a context used to start and stop dev configurations

func FlagsFrom

func FlagsFrom(ctx context.Context) (map[string]string, bool)

FlagsFrom returns a context used to start and stop dev configurations

func NameFrom

func NameFrom(ctx context.Context) (string, bool)

NameFrom returns the name of the Ankor Cli config

func RootNameFrom

func RootNameFrom(ctx context.Context) (string, bool)

RootNameFrom returns the root name of the Ankor Cli config

func TempFolderFrom

func TempFolderFrom(ctx context.Context) (string, bool)

TempFolderFrom returns the name of the temporary Ankor Cli folder

func WithDevContext

func WithDevContext(parent context.Context, devCtx context.Context) context.Context

WithDevContext creates a new context with the dev context

func WithFlags

func WithFlags(parent context.Context, flagSet *flag.FlagSet) context.Context

WithFlags creates a new context with the given flags

func WithFlagsMap

func WithFlagsMap(parent context.Context, flagsMap map[string]string) context.Context

WithFlagsMap creates a new context with the given flags

func WithName

func WithName(parent context.Context, name string) context.Context

WithName returns a copy of parent in which the Ankor Cli name value is set

func WithRootName

func WithRootName(parent context.Context, name string) context.Context

WithRootName returns a copy of parent with the root name included

func WithTempFolder

func WithTempFolder(parent context.Context, name string) context.Context

WithTempFolder returns a copy of parent in which the Ankor Cli temp folder is set

func WithValue

func WithValue(parent context.Context, key interface{}, val interface{}) context.Context

WithValue returns a copy of parent in which the value associated with key is val.

Types

This section is empty.

Jump to

Keyboard shortcuts

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