Documentation ¶
Index ¶
- func ComputeChecksum(filename string) (string, error)
- func CreateDirectory(path string) error
- func DeleteDirectory(path string) error
- func GenerateUUID() string
- func GetArgs(command string, frameWork string, frameworkVersion int, configFile string, ...) []string
- func GetConfigFileName(path string) (string, error)
- func GetDefaultQueryAndHeaders() (query map[string]interface{}, headers map[string]string)
- func GetOutboundIP() string
- func GetTASFilePath(path string) (string, error)
- func GetVersion(ymlContent []byte) (int, error)
- func InterfaceToMap(in interface{}) map[string]string
- func Min(x, y int) int
- func ValidateStructTASYml(ctx context.Context, ymlContent []byte, ymlFilename string) (interface{}, error)
- func ValidateStructTASYmlV1(ctx context.Context, ymlContent []byte, ymlFilename string) (*core.TASConfig, error)
- func ValidateStructTASYmlV2(ctx context.Context, ymlContent []byte, ymlFileName string) (*core.TASConfigV2, error)
- func ValidateSubModule(module *core.SubModule) 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 DeleteDirectory ¶ added in v0.3.20
DeleteDirectory deletes directory and all its children
func GetConfigFileName ¶
GetConfigFileName returns the name of the configuration file
func GetDefaultQueryAndHeaders ¶ added in v0.6.20
GetDefaultQueryAndHeaders returns the query and headers that should be supplied with each request made to TAS Server
func GetOutboundIP ¶
func GetOutboundIP() string
GetOutboundIP returns preferred outbound ip of this container
func GetTASFilePath ¶ added in v0.10.2
GetTASFilePath returns tas file path
func GetVersion ¶ added in v0.5.0
GetVersion returns version of tas yml file
func InterfaceToMap ¶
InterfaceToMap converts interface{} to map[string]string
func ValidateStructTASYml ¶ added in v0.10.2
func ValidateStructTASYml(ctx context.Context, ymlContent []byte, ymlFilename string) (interface{}, error)
ValidateStructTASYml validates the TAS config for all supported version
func ValidateStructTASYmlV1 ¶ added in v0.5.0
func ValidateStructTASYmlV2 ¶ added in v0.5.0
func ValidateStructTASYmlV2(ctx context.Context, ymlContent []byte, ymlFileName string) (*core.TASConfigV2, error)
ValidateStructTASYmlV2 validates tas configuration file
func ValidateSubModule ¶ added in v0.5.0
ValidateSubModule validates submodule
func WriteFileToDirectory ¶
WriteFileToDirectory writes `data` file to `filename`/`path`
Types ¶
This section is empty.