Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailOnError ¶
func IsVariable ¶
This is treated so special to be kept in sync everywhere we want to check if a field in the task body of a pipeline task is set to a variable IsVariable checks if the value is a pipeline variable
Types ¶
type AuthHelper ¶
type AuthHelper struct { HttpHelper HttpHelper // contains filtered or unexported fields }
func (*AuthHelper) GetToken ¶
func (aus *AuthHelper) GetToken() (token string, err error)
func (*AuthHelper) Register ¶
func (aus *AuthHelper) Register() (err error)
type FormattedError ¶
type FormattedError struct { Inner error Message string StackTrace string Misc map[string]interface{} }
func (*FormattedError) WrapError ¶
func (fe *FormattedError) WrapError(err error, msgFormat string, msgArgs ...interface{})
type HttpClient ¶
func NewHttpClient ¶
func NewHttpClient() HttpClient
type HttpHelper ¶
type HttpHelper interface {
HttpRequest(method string, url string, body io.Reader, headers []Header, timeout time.Duration) (out []byte, err error, statusCode int)
}
func NewHttpHelper ¶
func NewHttpHelper(client HttpClient) HttpHelper
type LogHelper ¶
type LogHelper interface {
Log(line string, isLastLine bool, taskId string) (jobId string, err error)
}
func NewLogHelper ¶
func NewLogHelper(authHelper AuthHelper, httpHelper HttpHelper) LogHelper
Click to show internal directories.
Click to hide internal directories.