package
0.0.0-20211026125059-0b1262a25dbf
Repository: https://github.com/9elements/contest-client.git
Documentation: pkg.go.dev

# Functions

AddFileToS3 will upload a single file to S3, it will require a pre-built aws session and will set file info like content type and encryption on the uploaded file.
CheckJobStatus sends request to an API that returns if a job finished or not.
CheckJobSuccess parses the job report if the job was successful or not.
CreateAwsSession creates an AWS Session and returns it to reuse it.
Load returns the name and factory which are needed to register the Reporter.
New builds a new TargetSuccessReporter.
Function that upload the job report into a S3 bucket.
RetrieveJobReport retrieves the job report and returns it in 2 datatypes to use it in further proceeding.
SendSlackMsg sends a msg to slack depending on the success of the job.
UpdateGithubStatus updates different Github statuses depending on the success of the job.

# Variables

Name defines the name of the preexecutionhook used within the plugin registry.

# Structs

PushToS3 uploads a file to a specific AWS S3 Bucket.