solman

package
v1.130.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

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

type Connection struct {
	Endpoint string
	User     string
	Password string
}

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

type FileSystem interface {
	FileExists(path string) (bool, error)
}

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.

Jump to

Keyboard shortcuts

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