utility

package
v0.0.0-...-f374617 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyJsonPatch

func ApplyJsonPatch(patch []byte) (err error)

func GenerateCorrelationId

func GenerateCorrelationId(min int, max int) (id int)

func Get

func Get(df, tf, location string) (string, error)

Get function is responsible for taking date format, time format and location as args for time and return time in string format and return error if any else nil.

func GetAllEnvironmentVariablesSet

func GetAllEnvironmentVariablesSet()

GetAllEnvironmentVariablesSet get the env values

func GetMD5Hash

func GetMD5Hash(text string) string

GetMD5Hash returns the md5sum hash of an input string

func GetMD5Uid

func GetMD5Uid(text string) string

GetMD5Uid returns the md5sum hash of an input string in the form of UUID, i.e., in the format - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

func GetUserInputs

func GetUserInputs() (*types.UserInput, error)

GetUserInputs get user inputs

func HomeDir

func HomeDir() string

func ReadConfigFile

func ReadConfigFile(filename string) *types.Config

func ReadConfigMap

func ReadConfigMap()

Types

type TmaaSAnnotations

type TmaaSAnnotations struct {
	VendorID      string `json:"vendorId"`
	XGVelaID      string `json:"xgvelaId"`
	NfClass       string `json:"nfClass"`
	NfType        string `json:"nfType"`
	NfID          string `json:"nfId"`
	NfServiceID   string `json:"nfServiceId"`
	NfServiceType string `json:"nfServiceType"`
}

func GetAnnotations

func GetAnnotations() (*TmaaSAnnotations, error)

Directories

Path Synopsis
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

Jump to

Keyboard shortcuts

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