Documentation ¶
Index ¶
- Constants
- func FormNodeIdExtDescriptorMappingWithValidation(utils TmsUtils, nodeNameExtDescriptorMapping map[string]interface{}, ...) (map[int64]string, error)
- func GetYamlAsMap(utils TmsUtils, yamlPath string) (map[string]interface{}, error)
- func UploadDescriptors(config Options, communicationInstance CommunicationInterface, utils TmsUtils) error
- type CommunicationInstance
- func (communicationInstance *CommunicationInstance) ExportFileToNode(fileInfo FileInfo, nodeName, description, namedUser string) (NodeUploadResponseEntity, error)
- func (communicationInstance *CommunicationInstance) GetMtaExtDescriptor(nodeId int64, mtaId, mtaVersion string) (MtaExtDescriptor, error)
- func (communicationInstance *CommunicationInstance) GetNodes() ([]Node, error)
- func (communicationInstance *CommunicationInstance) UpdateMtaExtDescriptor(nodeId, idOfMtaExtDescriptor int64, ...) (MtaExtDescriptor, error)
- func (communicationInstance *CommunicationInstance) UploadFile(file, namedUser string) (FileInfo, error)
- func (communicationInstance *CommunicationInstance) UploadFileToNode(fileInfo FileInfo, nodeName, description, namedUser string) (NodeUploadResponseEntity, error)
- func (communicationInstance *CommunicationInstance) UploadMtaExtDescriptorToNode(nodeId int64, file, mtaVersion, description, namedUser string) (MtaExtDescriptor, error)
- type CommunicationInterface
- type Entry
- type FileInfo
- type MtaExtDescriptor
- type Node
- type NodeUploadRequestEntity
- type NodeUploadResponseEntity
- type Options
- type QueueEntry
- type TmsUtils
Constants ¶
View Source
const CALM_REROUTING_ENDPOINT_TO_CTMS = "/imp-cdm-transport-management-api/v1"
View Source
const DEFAULT_TR_DESCRIPTION = "Created by Piper"
Variables ¶
This section is empty.
Functions ¶
func FormNodeIdExtDescriptorMappingWithValidation ¶ added in v1.280.0
func GetYamlAsMap ¶ added in v1.280.0
func UploadDescriptors ¶ added in v1.280.0
func UploadDescriptors(config Options, communicationInstance CommunicationInterface, utils TmsUtils) error
Types ¶
type CommunicationInstance ¶
type CommunicationInstance struct {
// contains filtered or unexported fields
}
func NewCommunicationInstance ¶
func NewCommunicationInstance(httpClient piperHttp.Uploader, tmsUrl, uaaUrl, clientId, clientSecret string, isVerbose bool, clientOptions piperHttp.ClientOptions) (*CommunicationInstance, error)
NewCommunicationInstance returns CommunicationInstance structure with http client prepared for communication with TMS backend
func (*CommunicationInstance) ExportFileToNode ¶ added in v1.280.0
func (communicationInstance *CommunicationInstance) ExportFileToNode(fileInfo FileInfo, nodeName, description, namedUser string) (NodeUploadResponseEntity, error)
func (*CommunicationInstance) GetMtaExtDescriptor ¶
func (communicationInstance *CommunicationInstance) GetMtaExtDescriptor(nodeId int64, mtaId, mtaVersion string) (MtaExtDescriptor, error)
func (*CommunicationInstance) GetNodes ¶
func (communicationInstance *CommunicationInstance) GetNodes() ([]Node, error)
func (*CommunicationInstance) UpdateMtaExtDescriptor ¶
func (communicationInstance *CommunicationInstance) UpdateMtaExtDescriptor(nodeId, idOfMtaExtDescriptor int64, file, mtaVersion, description, namedUser string) (MtaExtDescriptor, error)
func (*CommunicationInstance) UploadFile ¶
func (communicationInstance *CommunicationInstance) UploadFile(file, namedUser string) (FileInfo, error)
func (*CommunicationInstance) UploadFileToNode ¶
func (communicationInstance *CommunicationInstance) UploadFileToNode(fileInfo FileInfo, nodeName, description, namedUser string) (NodeUploadResponseEntity, error)
func (*CommunicationInstance) UploadMtaExtDescriptorToNode ¶
func (communicationInstance *CommunicationInstance) UploadMtaExtDescriptorToNode(nodeId int64, file, mtaVersion, description, namedUser string) (MtaExtDescriptor, error)
type CommunicationInterface ¶
type CommunicationInterface interface { GetNodes() ([]Node, error) GetMtaExtDescriptor(nodeId int64, mtaId, mtaVersion string) (MtaExtDescriptor, error) UpdateMtaExtDescriptor(nodeId, idOfMtaExtDescriptor int64, file, mtaVersion, description, namedUser string) (MtaExtDescriptor, error) UploadMtaExtDescriptorToNode(nodeId int64, file, mtaVersion, description, namedUser string) (MtaExtDescriptor, error) UploadFile(file, namedUser string) (FileInfo, error) UploadFileToNode(fileInfo FileInfo, nodeName, description, namedUser string) (NodeUploadResponseEntity, error) ExportFileToNode(fileInfo FileInfo, nodeName, description, namedUser string) (NodeUploadResponseEntity, error) }
func SetupCommunication ¶ added in v1.280.0
func SetupCommunication(config Options) (communicationInstance CommunicationInterface)
type FileInfo ¶
func UploadFile ¶ added in v1.280.0
func UploadFile(config Options, communicationInstance CommunicationInterface, utils TmsUtils) (FileInfo, error)
type MtaExtDescriptor ¶
type NodeUploadRequestEntity ¶
type NodeUploadResponseEntity ¶
type NodeUploadResponseEntity struct { TransportRequestId int64 `json:"transportRequestId"` TransportRequestDescription string `json:"transportRequestDescription"` QueueEntries []QueueEntry `json:"queueEntries"` }
type QueueEntry ¶
Click to show internal directories.
Click to hide internal directories.