solman

package
v1.143.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 8 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 Create added in v1.131.0

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 added in v1.131.0

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 added in v1.131.0

func (a *CreateAction) Perform(command Exec) (string, error)

Perform creates a new transport request

func (*CreateAction) WithCMOpts added in v1.131.0

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 added in v1.131.0

func (a *CreateAction) WithChangeDocumentID(id string)

WithChangeDocumentID specifies the change document for that the transport request is created.

func (*CreateAction) WithConnection added in v1.131.0

func (a *CreateAction) WithConnection(c Connection)

WithConnection specifies all the connection details which are required in order to connect so SOLMAN

func (*CreateAction) WithDevelopmentSystemID added in v1.131.0

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

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