utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChecksumSHA256

func ChecksumSHA256(filePath string) ([]byte, error)

func GetAccountFromMMID

func GetAccountFromMMID(mmid string) string

func GetDateTime

func GetDateTime(t *datetime.DateTime) (int64, error)

func GetNetworkFromMMID

func GetNetworkFromMMID(mmid string) string

func GetNodeFromMMID

func GetNodeFromMMID(mmid string) *network.Node

func GetNodeIDFromMMID

func GetNodeIDFromMMID(mmid string) string

func GetTenantFromMMID

func GetTenantFromMMID(mmid string) string

func GetVRFFromMMID

func GetVRFFromMMID(mmid string) string

func NewMMID

func NewMMID(accountID, tenantID, netID, vrfID, nodeID string) string

func RandString

func RandString(length int) string

RandString generates a random ASCII string with at least one digit and one special character.

func ReadJsonFile

func ReadJsonFile(jsonFile string) ([]byte, error)

ReadJsonFile parse json data from a file

func WaitForCtrlC

func WaitForCtrlC()

WaitForCtrlC waits until an os.Interrupt signal is sent (ctrl + c)

Types

This section is empty.

Jump to

Keyboard shortcuts

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