Documentation ¶
Overview ¶
Package utils :
Index ¶
- func CheckFileExist(path string) bool
- func CheckFileExistAndIsExecAll(path string) bool
- func CreateValidationEvent(command msg.Command, tenant string) (evt *msg.Event)
- func DownloadConfigurationsKeys(url, ressource string) (body string, err error)
- func DownloadPivot(url, ressource string) (pivot *models.Pivot, err error)
- func DownloadProductConnector(url, ressource string) (productConnector *models.ProductConnector, err error)
- func DownloadVersions(url, ressource string) (versions []string, err error)
- func DownloadWorkers(url, filePath string) (err error)
- func GenerateHash(logicalName string) string
- func GetConnectorCommandType(commandName string, list []models.CommandType) (result models.CommandType)
- func GetConnectorEventType(eventName string, list []models.EventType) (result models.EventType)
- func GetConnectorProductByVersion(major, minor int8, ...) (result *models.ProductConnector)
- func GetMaxVersion(versions []models.Version) (maxversion models.Version)
- func GetPivotByVersion(major, minor int8, pivots map[models.Version]*models.Pivot) (result *models.Pivot)
- func IsExecAll(mode os.FileMode) bool
- func Unzip(zipPath string, dirPath string) ([]string, error)
- func ValidatePayload(payload, payloadSchema string) (result bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidationEvent ¶
CreateValidationEvent : Connector create validation event functions.
func DownloadConfigurationsKeys ¶
DownloadConfigurationsKeys : Download configurationsKeys from url
func DownloadPivot ¶
DownloadPivot : Download pivot from url
func DownloadProductConnector ¶
func DownloadProductConnector(url, ressource string) (productConnector *models.ProductConnector, err error)
DownloadConnectorProduct : Download connector product from url
func DownloadVersions ¶
DownloadVersions : Download versions from url
func DownloadWorkers ¶
DownloadWorkers : Download workers from url
func GenerateHash ¶
func GetConnectorCommandType ¶
func GetConnectorCommandType(commandName string, list []models.CommandType) (result models.CommandType)
GetConnectorCommand : GetConnectorCommand
func GetConnectorEventType ¶
GetConnectorEvent : GetConnectorEvent
func GetConnectorProductByVersion ¶
func GetConnectorProductByVersion(major, minor int8, productConnectors map[models.Version]*models.ProductConnector) (result *models.ProductConnector)
GetPivotByVersion : GetPivotByVersion
func GetMaxVersion ¶
GetMaxVersion : GetMaxVersion
func GetPivotByVersion ¶
func GetPivotByVersion(major, minor int8, pivots map[models.Version]*models.Pivot) (result *models.Pivot)
GetPivotByVersion : GetPivotByVersion
func ValidatePayload ¶
ValidatePayload : Validate payload
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.