Documentation ¶
Index ¶
- type Action
- type Connection
- type Exec
- type FileSystem
- type UploadAction
- func (a *UploadAction) Perform(fs FileSystem, command Exec) error
- func (a *UploadAction) WithApplicationID(id string)
- func (a *UploadAction) WithCMOpts(opts []string)
- func (a *UploadAction) WithChangeDocumentID(id string)
- func (a *UploadAction) WithConnection(c Connection)
- func (a *UploadAction) WithFile(f string)
- func (a *UploadAction) WithTransportRequestID(id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface { WithConnection(Connection) WithChangeDocumentID(string) WithTransportRequestID(string) WithApplicationID(string) WithFile(string) WithCMOpts([]string) Perform(fs FileSystem, command Exec) error }
Action collects everything which is needed to perform a SOLMAN upload
type Connection ¶
Connection Everything we need for connecting to CTS
type Exec ¶
type Exec interface { command.ExecRunner GetExitCode() int }
Exec interface collecting everything which is execution related and needed in the context of a SOLMAN upload.
type FileSystem ¶
FileSystem interface collecting everything which is file system related and needed in the context of a SOLMAN upload.
type UploadAction ¶
type UploadAction struct { Connection Connection ChangeDocumentID string TransportRequestID string ApplicationID string File string CMOpts []string }
UploadAction Collects all the properties we need for the deployment
func (*UploadAction) Perform ¶
func (a *UploadAction) Perform(fs FileSystem, command Exec) error
Perform performs the SOLMAN upload
func (*UploadAction) WithApplicationID ¶
func (a *UploadAction) WithApplicationID(id string)
WithApplicationID specifies the application ID.
func (*UploadAction) WithCMOpts ¶
func (a *UploadAction) WithCMOpts(opts []string)
WithCMOpts sets additional options for calling the cm client tool. E.g. -D options. Useful for troubleshooting
func (*UploadAction) WithChangeDocumentID ¶
func (a *UploadAction) WithChangeDocumentID(id string)
WithChangeDocumentID specifies the change document which receives the executable.
func (*UploadAction) WithConnection ¶
func (a *UploadAction) WithConnection(c Connection)
WithConnection specifies all the connection details which are required in order to connect to SOLMAN
func (*UploadAction) WithFile ¶
func (a *UploadAction) WithFile(f string)
WithFile specifies the executable which should be uploaded into a transport on SOLMAN
func (*UploadAction) WithTransportRequestID ¶
func (a *UploadAction) WithTransportRequestID(id string)
WithTransportRequestID specifies the transport request which receives the executable.