Documentation ¶
Index ¶
- func AddKubectlFlagsToCmd(cmd *cobra.Command) clientcmd.ClientConfig
- func MarshalLocalYAMLFile(path string, obj interface{}) error
- func NewVersionCmd(cliName string) *cobra.Command
- func PromptCredentials(username, password string) (string, string)
- func UnmarshalLocalFile(path string, obj interface{}) error
- func UnmarshalRemoteFile(url string, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKubectlFlagsToCmd ¶
func AddKubectlFlagsToCmd(cmd *cobra.Command) clientcmd.ClientConfig
AddKubectlFlagsToCmd adds kubectl like flags to a command and returns the ClientConfig interface for retrieving the values.
func MarshalLocalYAMLFile ¶ added in v0.3.0
MarshalLocalYAMLFile writes JSON or YAML to a file on disk. The caller is responsible for checking error return values.
func NewVersionCmd ¶
NewVersionCmd returns a new `version` command to be used as a sub-command to root
func PromptCredentials ¶ added in v0.3.2
PromptCredentials is a helper to prompt the user for a username and password
func UnmarshalLocalFile ¶ added in v0.3.0
UnmarshalLocalFile retrieves JSON or YAML from a file on disk. The caller is responsible for checking error return values.
func UnmarshalRemoteFile ¶ added in v0.3.0
UnmarshalRemoteFile retrieves JSON or YAML through a GET request. The caller is responsible for checking error return values.
Types ¶
This section is empty.