Documentation ¶
Index ¶
- type Build
- type ClMock
- type Connector
- func (conn Connector) Download(appendum string, downloadPath string) error
- func (conn Connector) Get(appendum string) ([]byte, error)
- func (conn *Connector) GetToken(appendum string) error
- func (conn *Connector) InitAAKaaS(aAKaaSEndpoint string, username string, password string, ...)
- func (conn *Connector) InitBuildFramework(config ConnectorConfiguration, com abaputils.Communication, ...) error
- func (conn Connector) Post(appendum string, importBody string) ([]byte, error)
- func (conn Connector) UploadSarFile(appendum string, sarFile []byte) error
- type ConnectorConfiguration
- type DownloadClientMock
- type Result
- type RunState
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶ added in v1.88.0
type Build struct { Connector Connector BuildID string `json:"build_id"` RunState RunState `json:"run_state"` ResultState resultState `json:"result_state"` Phase string `json:"phase"` Entitytype string `json:"entitytype"` Startedby string `json:"startedby"` StartedAt string `json:"started_at"` FinishedAt string `json:"finished_at"` Tasks []task Values []Value }
Build : Information for all data comming from Build Framework
func (*Build) GetResult ¶ added in v1.88.0
GetResult : Returns the last Build artefact created from build step
func (*Build) IsFinished ¶ added in v1.88.0
IsFinished : Returns Build run state
type ClMock ¶ added in v1.88.0
ClMock : Mock for Build Framework Client used for BF test
func (*ClMock) SendRequest ¶ added in v1.88.0
func (c *ClMock) SendRequest(method string, url string, bdy io.Reader, hdr http.Header, cookies []*http.Cookie) (*http.Response, error)
SendRequest : BF Send Fake request
func (*ClMock) SetOptions ¶ added in v1.88.0
func (c *ClMock) SetOptions(opts piperhttp.ClientOptions)
SetOptions : BF Client options
type Connector ¶
type Connector struct { Client piperhttp.Sender DownloadClient piperhttp.Downloader Header map[string][]string Baseurl string }
Connector : Connector Utility Wrapping http client
func (*Connector) InitAAKaaS ¶
func (conn *Connector) InitAAKaaS(aAKaaSEndpoint string, username string, password string, inputclient piperhttp.Sender)
InitAAKaaS : initialize Connector for communication with AAKaaS backend
func (*Connector) InitBuildFramework ¶ added in v1.88.0
func (conn *Connector) InitBuildFramework(config ConnectorConfiguration, com abaputils.Communication, inputclient piperhttp.Sender) error
InitBuildFramework : initialize Connector for communication with ABAP SCP instance
type ConnectorConfiguration ¶ added in v1.88.0
type ConnectorConfiguration struct { CfAPIEndpoint string CfOrg string CfSpace string CfServiceInstance string CfServiceKeyName string Host string Username string Password string AddonDescriptor string MaxRuntimeInMinutes int }
ConnectorConfiguration : Handover Structure for Connector Creation
type DownloadClientMock ¶ added in v1.88.0
type DownloadClientMock struct{}
DownloadClientMock : Mock for Download Client used for artefact test
func (*DownloadClientMock) DownloadFile ¶ added in v1.88.0
func (dc *DownloadClientMock) DownloadFile(url, filename string, header http.Header, cookies []*http.Cookie) error
DownloadFile : Empty file download
func (*DownloadClientMock) SetOptions ¶ added in v1.88.0
func (dc *DownloadClientMock) SetOptions(opts piperhttp.ClientOptions)
SetOptions : Download Client options
type Result ¶ added in v1.88.0
type Result struct { BuildID string `json:"build_id"` TaskID int `json:"task_id"` Name string `json:"name"` AdditionalInfo string `json:"additional_info"` Mimetype string `json:"mimetype"` // contains filtered or unexported fields }
Result : Artefact from Build Framework step
type RunState ¶ added in v1.88.0
type RunState string
RunState : Current Status of the Build
const ( // Initializing : Build Framework prepared Initializing RunState = "INITIALIZING" // Accepted : Build Framework triggered Accepted RunState = "ACCEPTED" // Running : Build Framework performs build Running RunState = "RUNNING" // Finished : Build Framework ended successful Finished RunState = "FINISHED" // Failed : Build Framework endded with error Failed RunState = "FAILED" )