common

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAttributeFlags added in v0.7.0

func HandleAttributeFlags(c *base.Command, suffix, fullField string, sepFields []base.CombinedSliceFlagValue, defaultFunc func(), setFunc func(map[string]interface{})) error

HandleAttributeFlags takes in a command and a func to call for default (that is, set to nil) and non-default values. Suffix can be used to allow this logic to be used for various needs, e.g. -attr vs -secret.

func HelpMap

func HelpMap(resType string) map[string]func() string

func PopulateAttributeFlags added in v0.7.0

func PopulateAttributeFlags(c *base.Command, f *base.FlagSet, flagNames map[string][]string, command string)

func PopulateCommonFlags

func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string, flagNames map[string][]string, command string)

func PopulateSecretFlags added in v0.7.0

func PopulateSecretFlags(c *base.Command, f *base.FlagSet, flagNames map[string][]string, command string)

func SynopsisFunc

func SynopsisFunc(inFunc, resType string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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