Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig gets the values from ./config/config.yaml and parses them into a Config struct.
func GetCurrPkg ¶ added in v0.0.7
func GetCurrPkg() string
GetCurrPkg returns the current directory's import path e.g: "github.com/example-inc/app-operator"
func MustInProjectRoot ¶
func MustInProjectRoot()
MustInProjectRoot checks if the current dir is the project root.
Types ¶
type OperatorType ¶ added in v0.0.7
type OperatorType int
const ( OperatorTypeGo OperatorType = iota OperatorTypeAnsible )
func GetOperatorType ¶ added in v0.0.7
func GetOperatorType() OperatorType
GetOperatorType returns type of operator is in cwd This function should be called after verifying the user is in project root e.g: "go", "ansible"
Click to show internal directories.
Click to hide internal directories.