controller

package
v0.0.0-...-8ce0de3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvironmentForRepositoryController

func AddEnvironmentForRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

AddEnvironmentForRepositoryController is the controller function for the POST /repositories/{name}/environments endpoint. The "name" path parameter containing the Repository name and the request body containing the information for the new Environment gets read from the APIGatewayProxyRequest struct

func AddRepositoryController

func AddRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

AddRepositoryController is the controller function for the POST /repositories endpoint. The request body with the information for the new Repository gets read from the APIGatewayProxyRequest struct.

func DeleteSingleEnvironmentController

func DeleteSingleEnvironmentController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

DeleteSingleEnvironmentController is the controller function for the DELETE /repositories/{name}/environments/{branch} endpoint. The "name" path parameter containing the Repository name and the "branch" path parameter containing the branch name gets read from the APIGatewayProxyRequest struct

func DeleteSingleRepositoryController

func DeleteSingleRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

DeleteSingleRepositoryController is the controller function for the DELETE /repositories/{name} endpoint. The "name" path parameter gets read from the APIGatewayProxyRequest struct.

func GetAllEnvironmentsForRepositoryController

func GetAllEnvironmentsForRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetAllEnvironmentsForRepositoryController is the controller function for the GET /repositories/{name}/environments endpoint. The "name" path parameter containing the Repository name gets read from the APIGatewayProxyRequest struct

func GetAllEnvironmentsStatusInformationController

func GetAllEnvironmentsStatusInformationController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetAllEnvironmentsStatusInformationController is the controller function for the GET /repositories/environments/status endpoint.

func GetAllRepositoriesController

func GetAllRepositoriesController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetAllRepositoriesController is the controller function for the GET /repositories endpoint.

func GetConfigurationController

func GetConfigurationController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetConfigurationController is the controller function for the GET /configuration endpoint.

func GetGlobalRepositoryConfigController

func GetGlobalRepositoryConfigController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetGlobalRepositoryConfigController is the controller function for the GET /repositories/environments endpoint.

func GetSingleEnvironmentForRepositoryController

func GetSingleEnvironmentForRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetSingleEnvironmentForRepositoryController is the controller function for the GET /repositories/{name}/environments/{branch} endpoint. The "name" path parameter containing the Repository name and the "branch" path parameter containing the branch name gets read from the APIGatewayProxyRequest struct

func GetSingleEnvironmentStatusInformationController

func GetSingleEnvironmentStatusInformationController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetSingleEnvironmentStatusInformationController is the controller function for the GET /repositories/{name}/environments/{branch}/status endpoint. The "name" path parameter containing the Repository name and the "branch" path parameter containing the branch name gets read from the APIGatewayProxyRequest struct

func GetSingleRepositoryController

func GetSingleRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GetSingleRepositoryController is the controller function for the GET /repositories/{name} endpoint. The "name" path parameter gets read from the APIGatewayProxyRequest struct.

func GitHubWebhookCreateController

func GitHubWebhookCreateController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GitHubWebhookCreateController is the controller function for the POST /webhooks/github endpoint with X-GitHub-Event = create. GitHub sends the create event after a new Git branch was created. The GitHub Webhook endpoint is secured through HMAC.

func GitHubWebhookDeleteController

func GitHubWebhookDeleteController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GitHubWebhookDeleteController is the controller function for the POST /webhooks/github endpoint with X-GitHub-Event = delete. GitHub sends the delete event after a Git branch was deleted. The GitHub Webhook endpoint is secured through HMAC.

func GitHubWebhookPingController

func GitHubWebhookPingController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

GitHubWebhookPingController is the controller function for the POST /webhooks/github endpoint with X-GitHub-Event = ping. GitHub sends the ping event after the Webhook was successfully added to GitHub. The GitHub Webhook endpoint is secured through HMAC.

func PutConfigurationController

func PutConfigurationController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

PutConfigurationController is the controller function for the PUT /configuration endpoint. The request body with the update information gets read from the APIGatewayProxyRequest struct.

func PutGlobalRepositoryConfigController

func PutGlobalRepositoryConfigController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

PutGlobalRepositoryConfigController is the controller function for the PUT /repositories/environments endpoint. The request body with the updates information gets read from the APIGatewayProxyRequest struct.

func PutSinglEnvironmentForRepositoryController

func PutSinglEnvironmentForRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

PutSinglEnvironmentForRepositoryController is the controller function for the PUT /repositories/{name}/environments/{branch} endpoint. The "name" path parameter containing the Repository name, the "branch" path parameter containing the branch name and the request body containing the updated information for the Environment gets read from the APIGatewayProxyRequest struct

func PutSingleRepositoryController

func PutSingleRepositoryController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

PutSingleRepositoryController is the controller function for the PUT /repositories/{name} endpoint. The request body containing the information for the new Repository gets read from the APIGatewayProxyRequest struct

func TriggerEnvironemtStatusChangeController

func TriggerEnvironemtStatusChangeController(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

TriggerEnvironemtStatusChangeController is the controller function for the POST /triggers/schedule endpoint. The request body containing the desired status for the Environment gets read from the APIGatewayProxyRequest struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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