internal

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfiguredAndV1

func ConfiguredAndV1() bool

ConfiguredAndV1 returns true if the project is already configured and it is v1

func FindCurrentRepo

func FindCurrentRepo() (string, error)

FindCurrentRepo attempts to determine the current repository though a combination of go/packages and `go mod` commands/tricks.

func IsDNS1123Label

func IsDNS1123Label(value string) []string

IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).

func PrintV1DeprecationWarning

func PrintV1DeprecationWarning()

PrintV1DeprecationWarning prints a deprecation warning if some v1 feature is used

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 ValidateGoVersion

func ValidateGoVersion() error

ValidateGoVersion verifies that Go is installed and the current go version is supported by kubebuilder

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