util

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL