cmdutil

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BinName = "ec2-metadata-mock"

BinName is the name of this tool's binary

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, val string) bool

Contains finds a string in the given array

func PrintFlags

func PrintFlags(flags *pflag.FlagSet)

PrintFlags prints all flags of a command, if set

func RegisterHandlers

func RegisterHandlers(cmd *cobra.Command, config cfg.Config)

RegisterHandlers binds paths to handlers for ALL commands

func ValidateRFC3339TimeFormat

func ValidateRFC3339TimeFormat(flagName string, input string) error

ValidateRFC3339TimeFormat validates an input time matches RFC3339 format

Types

This section is empty.

Jump to

Keyboard shortcuts

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