Documentation
¶
Index ¶
- func APICommandSetup(individualURLVariables map[misc.AstarteService]string, ...) (*client.Client, error)
- func AskForConfirmation(s string) (bool, error)
- func PromptChoice(question string, defaultValue string, allowEmpty, nonInteractive bool) (string, error)
- func UnmarshalYAMLToJSON(content []byte) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APICommandSetup ¶ added in v0.11.0
func APICommandSetup(individualURLVariables map[misc.AstarteService]string, keyVariable, keyFileVariable string) (*client.Client, error)
APICommandSetup is a helper for setting up a generic command using Astarte API. individualURLs must contain the service->variable association.
func AskForConfirmation ¶ added in v0.10.4
AskForConfirmation asks the user if he wants to continue.
func PromptChoice ¶ added in v0.10.4
func PromptChoice(question string, defaultValue string, allowEmpty, nonInteractive bool) (string, error)
PromptChoice gets input from the user
func UnmarshalYAMLToJSON ¶ added in v0.10.4
UnmarshalYAMLToJSON converts a valid Kubernetes YAML resource to its JSON representation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.