Documentation
¶
Index ¶
- func CheckResponse(ctx context.Context, resp *http.Response) error
- func CheckUrl(url string, ctx context.Context) error
- func CreateRequest(url, method string, parameters interface{}) *http.Request
- func GetApplicationClient(cfg config.Config) applicationAPIClient.ClientService
- func GetComponentClient(cfg config.Config) componentAPIClient.ClientService
- func GetDeploymentClient(cfg config.Config) deploymentAPIClient.ClientService
- func GetEnvironmentClient(cfg config.Config) environmentAPIClient.ClientService
- func GetHTTPDefaultClient(timeout time.Duration) *http.Client
- func GetJobClient(cfg config.Config) pipelineJobAPIClient.ClientService
- func GetK8sJobClient(cfg config.Config) jobAPIClient.ClientService
- func GetPlatformClient(cfg config.Config) platformAPIClient.ClientService
- func GetUrl(schema string, domainName string) string
- func TriggerWebhookPush(ctx context.Context, cfg config.Config, ...) error
- type Repository
- type WebhookPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
CheckResponse Checks that the response was successful
func CreateRequest ¶
CreateRequest setup correct header for running tests
func GetApplicationClient ¶
func GetApplicationClient(cfg config.Config) applicationAPIClient.ClientService
GetApplicationClient Gets the Application API client
func GetComponentClient ¶
func GetComponentClient(cfg config.Config) componentAPIClient.ClientService
GetComponentClient Gets the Component API client
func GetDeploymentClient ¶
func GetDeploymentClient(cfg config.Config) deploymentAPIClient.ClientService
GetDeploymentClient Gets the Deployment API client
func GetEnvironmentClient ¶
func GetEnvironmentClient(cfg config.Config) environmentAPIClient.ClientService
GetEnvironmentClient Gets the Environment API client
func GetHTTPDefaultClient ¶
GetHTTPDefaultClient returns a new simple HTTP client
func GetJobClient ¶
func GetJobClient(cfg config.Config) pipelineJobAPIClient.ClientService
GetJobClient Gets the Job API client
func GetK8sJobClient ¶
func GetK8sJobClient(cfg config.Config) jobAPIClient.ClientService
GetK8sJobClient Gets the K8s job API client
func GetPlatformClient ¶
func GetPlatformClient(cfg config.Config) platformAPIClient.ClientService
GetPlatformClient Gets the Platform API client
Types ¶
type Repository ¶
type Repository struct {
SSHURL string `json:"ssh_url"`
}
Repository For serializing payload -> Repository
type WebhookPayload ¶
type WebhookPayload struct { Ref string `json:"ref"` After string `json:"after"` Repository Repository `json:"repository"` }
WebhookPayload For serializing payload
Click to show internal directories.
Click to hide internal directories.