Documentation
¶
Index ¶
- Variables
- func DeployViaHavenerConfig(hvnr havener.Havener, havenerConfig string) error
- func Execute()
- func GetHumanReadableTime(date time.Time) string
- func ListManifestFiles(release string) (map[string]*yamlv3.Node, error)
- func LogTask()
- func NewHvnrRootCmd() *cobra.Command
- func PrintOutputMessage(messages chan OutputMsg) error
- func PrintOutputMessageAsBlock(messages chan OutputMsg)
- func PromptUser(message string) bool
- func PurgeHelmReleases(hvnr havener.Havener, helmReleaseNames ...string) error
- func RenderNodeDetails(topDetails *havener.TopDetails) string
- func UpgradeViaHavenerConfig(hvnr havener.Havener, havenerConfig string) error
- func WaitCmdFunc(hvnr *havener.Hvnr, settings WaitCmdSettings) error
- type OutputMsg
- type WaitCmdSettings
Constants ¶
This section is empty.
Variables ¶
var NoUserPrompt = false
NoUserPrompt defines whether a user confirmation is required or should be omitted
Functions ¶
func DeployViaHavenerConfig ¶ added in v0.18.0
DeployViaHavenerConfig entry function for running a helm install
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetHumanReadableTime ¶ added in v1.0.0
GetHumanReadableTime returns the time as string in the format: hh:mm:ss from a date object.
func ListManifestFiles ¶ added in v1.1.0
ListManifestFiles breaks up the manifest string of a Helm Release to return a map with the template filename as the key and the unmarshaled YAML data as the value.
func LogTask ¶ added in v1.0.0
func LogTask()
LogTask processes all log messages coming from havener package.
func NewHvnrRootCmd ¶ added in v1.4.1
NewHvnrRootCmd returns the cobra base cmd
func PrintOutputMessage ¶ added in v1.0.0
PrintOutputMessage reads from the given output message channel and prints the respective messages without any buffering or sorting.
func PrintOutputMessageAsBlock ¶ added in v1.0.0
func PrintOutputMessageAsBlock(messages chan OutputMsg)
PrintOutputMessageAsBlock reads from the given output message channel and buffers the input until the channel is closed. Once closed, it prints the output messages sorted by the origin.
func PromptUser ¶
PromptUser prompts the user via STDIN to confirm the message with either 'yes', or 'no' -- yes being translated into true, everything else is false.
func PurgeHelmReleases ¶ added in v0.18.0
PurgeHelmReleases delete releases via helm
func RenderNodeDetails ¶ added in v1.4.0
func RenderNodeDetails(topDetails *havener.TopDetails) string
RenderNodeDetails renders a box with usage details per node
func UpgradeViaHavenerConfig ¶ added in v0.18.0
UpgradeViaHavenerConfig override an existing helm chart
func WaitCmdFunc ¶ added in v1.5.1
func WaitCmdFunc(hvnr *havener.Hvnr, settings WaitCmdSettings) error
WaitCmdFunc blocks until either the configured condition is reached or the timeout occurred.