Documentation
¶
Overview ¶
Package util implements different utilities required by the tenant service
Package util implements different utilities required by the tenant service ¶
Package util implements different utilities required by the tenant service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
func PrintError(message string)
PrintError prints 'message' with red color text message: Message to be printed
func PrintInfo ¶
func PrintInfo(message string)
PrintInfo prints a 'message' with cSkyyblue color text message: Message to be printed
func PrintSuccess ¶
func PrintSuccess(message string)
PrintSuccess prints 'message' with green color text message: Message to be printed
func PrintYAML ¶
func PrintYAML(obj interface{}) error
PrintYAML takes input object, marshal it using YAML format and prints it into standard output obj: Mandatory. Reference to the object to be printed Returns error if something goes wrong
func StartService ¶
func StartService()
StartService setups all dependecies required to start the tenant service and start the service
Types ¶
type Version ¶
type Version struct { VersionNumber string `yaml:"version"` Platform string Commit string Date string }
Version defines the structure containns all information to be printed when 'version' command is requested.
func GetVersion ¶
func GetVersion() Version
GetVersion returns the version information Returns the version inforamtion