Documentation ¶
Index ¶
- func ComputeChecksum(filename string) (string, error)
- func CreateDirectory(path string) error
- func GetConfigFileName(path string) (string, error)
- func GetOutboundIP() string
- func InterfaceToMap(in interface{}) map[string]string
- func Min(x, y int) int
- func ValidateStruct(ctx context.Context, ymlContent []byte) (*core.TASConfig, error)
- func WriteFileToDirectory(path, filename string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeChecksum ¶
ComputeChecksum compute the md5 hash for the given filename
func CreateDirectory ¶
CreateDirectory creates directory recursively if does not exists
func GetConfigFileName ¶
GetConfigFileName returns the name of the configuration file
func GetOutboundIP ¶
func GetOutboundIP() string
GetOutboundIP returns preferred outbound ip of this container
func InterfaceToMap ¶
InterfaceToMap converts interface{} to map[string]string
func ValidateStruct ¶
func WriteFileToDirectory ¶
WriteFileToDirectory writes `data` file to `filename`/`path`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.