utils

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package utils :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExist

func CheckFileExist(path string) bool

CheckFileExist: CheckFileExist

func CheckFileExistAndIsExecAll

func CheckFileExistAndIsExecAll(path string) bool

func CreateValidationEvent

func CreateValidationEvent(command msg.Command, tenant string) (evt *msg.Event)

CreateValidationEvent : Connector create validation event functions.

func DownloadConfigurationsKeys

func DownloadConfigurationsKeys(url, ressource string) (body string, err error)

DownloadConfigurationsKeys : Download configurationsKeys from url

func DownloadPivot

func DownloadPivot(url, ressource string) (pivot *models.Pivot, err error)

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

func DownloadVersions(url, ressource string) (versions []string, err error)

DownloadVersions : Download versions from url

func DownloadWorkers

func DownloadWorkers(url, filePath string) (err error)

DownloadWorkers : Download workers from url

func GenerateHash

func GenerateHash(logicalName string) string

func GetConnectorCommandType

func GetConnectorCommandType(commandName string, list []models.CommandType) (result models.CommandType)

GetConnectorCommand : GetConnectorCommand

func GetConnectorEventType

func GetConnectorEventType(eventName string, list []models.EventType) (result models.EventType)

GetConnectorEvent : GetConnectorEvent

func GetConnectorProductByVersion

func GetConnectorProductByVersion(major, minor int8, productConnectors map[models.Version]*models.ProductConnector) (result *models.ProductConnector)

GetPivotByVersion : GetPivotByVersion

func GetMaxVersion

func GetMaxVersion(versions []models.Version) (maxversion models.Version)

GetMaxVersion : GetMaxVersion

func GetPivotByVersion

func GetPivotByVersion(major, minor int8, pivots map[models.Version]*models.Pivot) (result *models.Pivot)

GetPivotByVersion : GetPivotByVersion

func IsExecAll

func IsExecAll(mode os.FileMode) bool

IsExecAll : IsExecAll

func Unzip

func Unzip(zipPath string, dirPath string) ([]string, error)

Unzip : Unzip file

func ValidatePayload

func ValidatePayload(payload, payloadSchema string) (result bool)

ValidatePayload : Validate payload

Types

This section is empty.

Jump to

Keyboard shortcuts

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