util

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDifferentCRDVersion

func HasDifferentCRDVersion(config config.Config, crdVersion string) bool

HasDifferentCRDVersion returns true if any other CRD version is tracked in the project configuration.

func HasDifferentWebhookVersion

func HasDifferentWebhookVersion(config config.Config, webhookVersion string) bool

HasDifferentWebhookVersion returns true if any other webhook version is tracked in the project configuration.

func RunCmd

func RunCmd(msg, cmd string, args ...string) error

RunCmd prints the provided message and command and then executes it binding stdout and stderr

func YesNo

func YesNo(reader *bufio.Reader) bool

YesNo reads from stdin looking for one of "y", "yes", "n", "no" and returns true for "y" and false for "n"

Types

This section is empty.

Jump to

Keyboard shortcuts

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