Documentation ¶
Index ¶
- func DevContextFrom(ctx context.Context) (context.Context, bool)
- func FlagsFrom(ctx context.Context) (map[string]string, bool)
- func NameFrom(ctx context.Context) (string, bool)
- func RootNameFrom(ctx context.Context) (string, bool)
- func TempFolderFrom(ctx context.Context) (string, bool)
- func WithDevContext(parent context.Context, devCtx context.Context) context.Context
- func WithFlags(parent context.Context, flagSet *flag.FlagSet) context.Context
- func WithFlagsMap(parent context.Context, flagsMap map[string]string) context.Context
- func WithName(parent context.Context, name string) context.Context
- func WithRootName(parent context.Context, name string) context.Context
- func WithTempFolder(parent context.Context, name string) context.Context
- func WithValue(parent context.Context, key interface{}, val interface{}) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevContextFrom ¶
DevContextFrom returns a context used to start and stop dev configurations
func RootNameFrom ¶
RootNameFrom returns the root name of the Ankor Cli config
func TempFolderFrom ¶
TempFolderFrom returns the name of the temporary Ankor Cli folder
func WithDevContext ¶
WithDevContext creates a new context with the dev context
func WithFlagsMap ¶
WithFlagsMap creates a new context with the given flags
func WithRootName ¶
WithRootName returns a copy of parent with the root name included
func WithTempFolder ¶
WithTempFolder returns a copy of parent in which the Ankor Cli temp folder is set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.