Documentation ¶
Index ¶
- type Action
- type Connection
- type Create
- type CreateAction
- 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 Create ¶
type Create interface { WithConnection(Connection) WithChangeDocumentID(string) WithDevelopmentSystemID(string) WithCMOpts([]string) Perform(command Exec) (string, error) }
Create collects everything which is needed for creating a transport request
type CreateAction ¶
type CreateAction struct { Connection Connection ChangeDocumentID string DevelopmentSystemID string CMOpts []string }
CreateAction Collects all the properties we need for creating a transport request
func (*CreateAction) Perform ¶
func (a *CreateAction) Perform(command Exec) (string, error)
Perform creates a new transport request
func (*CreateAction) WithCMOpts ¶
func (a *CreateAction) WithCMOpts(opts []string)
WithCMOpts sets additional options for calling the cm client tool. E.g. -D options. Useful for troubleshooting
func (*CreateAction) WithChangeDocumentID ¶
func (a *CreateAction) WithChangeDocumentID(id string)
WithChangeDocumentID specifies the change document for that the transport request is created.
func (*CreateAction) WithConnection ¶
func (a *CreateAction) WithConnection(c Connection)
WithConnection specifies all the connection details which are required in order to connect so SOLMAN
func (*CreateAction) WithDevelopmentSystemID ¶
func (a *CreateAction) WithDevelopmentSystemID(id string)
WithDevelopmentSystemID specifies the development system ID.
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.