Documentation
¶
Index ¶
- func CreateFile(filename string, directoryPerm, filePerm fs.FileMode) error
- func FileExists(path string) bool
- func FirstRunPrompt() error
- func OpenLink(link string) error
- func PromptBool(label string) (bool, error)
- func PromptFilePath(label, defaultValue string) (string, error)
- func PromptFilePathNoValidate(label, defaultValue string) (string, error)
- func PromptString(label string) (string, error)
- func RenderTabularData(headers []string, data [][]string) string
- func StringInSlice(elem string, list []string) bool
- func WriteError(w http.ResponseWriter, message string, status int)
- type AwsArn
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile safely creates an empty file and any missing directory structure. The directories will have directoryPerm filemode. The file will have filePerm filemode.
func FileExists ¶
func FirstRunPrompt ¶
func FirstRunPrompt() error
FirstRunPrompt gets user input to bootstrap a bare-minimum configuration.
func PromptBool ¶
func PromptFilePath ¶
func PromptString ¶
func RenderTabularData ¶ added in v0.3.4
RenderTabularData creates a string for given data in a pretty tabular format, with the provided headers
func StringInSlice ¶ added in v0.3.21
func WriteError ¶
func WriteError(w http.ResponseWriter, message string, status int)
WriteError writes a status code and plaintext error to the provided http.ResponseWriter. The error is written as plaintext so AWS SDKs will display it inline with an error message.
Types ¶
type AwsArn ¶
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.