shared

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoHeaderKey = "no-header"
	// ForceKey is the flag name for skipping the interactive prompt on destructive IAM commands.
	ForceKey = "force"
)

Variables

This section is empty.

Functions

func KeyValuePairsToMap

func KeyValuePairsToMap(pairs []string) map[string]string

func ParseAccessCredentialScopes

func ParseAccessCredentialScopes(ss []string) ([]clientiam.AccessCredentialsScope, error)

func ParseConditionsJSON

func ParseConditionsJSON(s, path string) (map[string]interface{}, error)

func ParseOptionalRFC3339

func ParseOptionalRFC3339(s string) (*time.Time, error)

func PromptDestructiveUnlessForce

func PromptDestructiveUnlessForce(force bool, summary string) (proceed bool, err error)

PromptDestructiveUnlessForce prompts for typing "yes" unless force is true. On abort (anything other than "yes"), returns proceed=false and err=nil.

func UserDisplay

func UserDisplay(u base.AppUser) string

func UserPtrDisplay

func UserPtrDisplay(u *base.AppUser) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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