vendor: update all dependencies
This commit is contained in:
parent
0b6fba34a3
commit
eb87cf6f12
2008 changed files with 352633 additions and 1004750 deletions
63
vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
generated
vendored
63
vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
generated
vendored
|
@ -1451,7 +1451,7 @@ type CreateProjectInput struct {
|
|||
// How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait
|
||||
// until timing out any build that has not been marked as completed. The default
|
||||
// is 60 minutes.
|
||||
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"`
|
||||
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -1488,8 +1488,8 @@ func (s *CreateProjectInput) Validate() error {
|
|||
if s.Source == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Source"))
|
||||
}
|
||||
if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 1))
|
||||
if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 5 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 5))
|
||||
}
|
||||
if s.Artifacts != nil {
|
||||
if err := s.Artifacts.Validate(); err != nil {
|
||||
|
@ -1774,6 +1774,11 @@ type EnvironmentVariable struct {
|
|||
|
||||
// The value of the environment variable.
|
||||
//
|
||||
// We strongly discourage using environment variables to store sensitive values,
|
||||
// especially AWS secret key IDs and secret access keys. Environment variables
|
||||
// can be displayed in plain text using tools such as the AWS CodeBuild console
|
||||
// and the AWS Command Line Interface (AWS CLI).
|
||||
//
|
||||
// Value is a required field
|
||||
Value *string `locationName:"value" type:"string" required:"true"`
|
||||
}
|
||||
|
@ -2287,7 +2292,7 @@ type Project struct {
|
|||
// How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait
|
||||
// before timing out any related build that did not get marked as completed.
|
||||
// The default is 60 minutes.
|
||||
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"`
|
||||
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -2563,6 +2568,23 @@ type ProjectEnvironment struct {
|
|||
// Image is a required field
|
||||
Image *string `locationName:"image" min:"1" type:"string" required:"true"`
|
||||
|
||||
// If set to true, enables running the Docker daemon inside a Docker container;
|
||||
// otherwise, false or not specified (the default). This value must be set to
|
||||
// true only if this build project will be used to build Docker images, and
|
||||
// the specified build environment image is not one provided by AWS CodeBuild
|
||||
// with Docker support. Otherwise, all associated builds that attempt to interact
|
||||
// with the Docker daemon will fail. Note that you must also start the Docker
|
||||
// daemon so that your builds can interact with it as needed. One way to do
|
||||
// this is to initialize the Docker daemon in the install phase of your build
|
||||
// spec by running the following build commands. (Do not run the following build
|
||||
// commands if the specified build environment image is provided by AWS CodeBuild
|
||||
// with Docker support.)
|
||||
//
|
||||
// - nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375
|
||||
// --storage-driver=vfs& - timeout -t 15 sh -c "until docker info; do echo .;
|
||||
// sleep 1; done"
|
||||
PrivilegedMode *bool `locationName:"privilegedMode" type:"boolean"`
|
||||
|
||||
// The type of build environment to use for related builds.
|
||||
//
|
||||
// Type is a required field
|
||||
|
@ -2629,6 +2651,12 @@ func (s *ProjectEnvironment) SetImage(v string) *ProjectEnvironment {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetPrivilegedMode sets the PrivilegedMode field's value.
|
||||
func (s *ProjectEnvironment) SetPrivilegedMode(v bool) *ProjectEnvironment {
|
||||
s.PrivilegedMode = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetType sets the Type field's value.
|
||||
func (s *ProjectEnvironment) SetType(v string) *ProjectEnvironment {
|
||||
s.Type = &v
|
||||
|
@ -2673,12 +2701,15 @@ type ProjectSource struct {
|
|||
// * For source code in a GitHub repository, the HTTPS clone URL to the repository
|
||||
// that contains the source and the build spec. Also, you must connect your
|
||||
// AWS account to your GitHub account. To do this, use the AWS CodeBuild
|
||||
// console to begin creating a build project, and follow the on-screen instructions
|
||||
// to complete the connection. (After you have connected to your GitHub account,
|
||||
// you do not need to finish creating the build project, and you may then
|
||||
// leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use
|
||||
// this connection, in the source object, set the auth object's type value
|
||||
// to OAUTH.
|
||||
// console to begin creating a build project. When you use the console to
|
||||
// connect (or reconnect) with GitHub, on the GitHub Authorize application
|
||||
// page that displays, for Organization access, choose Request access next
|
||||
// to each repository you want to allow AWS CodeBuild to have access to.
|
||||
// Then choose Authorize application. (After you have connected to your GitHub
|
||||
// account, you do not need to finish creating the build project, and you
|
||||
// may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to
|
||||
// then use this connection, in the source object, set the auth object's
|
||||
// type value to OAUTH.
|
||||
Location *string `locationName:"location" type:"string"`
|
||||
|
||||
// The type of repository that contains the source code to be built. Valid values
|
||||
|
@ -2837,7 +2868,7 @@ type StartBuildInput struct {
|
|||
|
||||
// The number of build timeout minutes, from 5 to 480 (8 hours), that overrides,
|
||||
// for this build only, the latest setting already defined in the build project.
|
||||
TimeoutInMinutesOverride *int64 `locationName:"timeoutInMinutesOverride" min:"1" type:"integer"`
|
||||
TimeoutInMinutesOverride *int64 `locationName:"timeoutInMinutesOverride" min:"5" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -2859,8 +2890,8 @@ func (s *StartBuildInput) Validate() error {
|
|||
if s.ProjectName != nil && len(*s.ProjectName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ProjectName", 1))
|
||||
}
|
||||
if s.TimeoutInMinutesOverride != nil && *s.TimeoutInMinutesOverride < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutesOverride", 1))
|
||||
if s.TimeoutInMinutesOverride != nil && *s.TimeoutInMinutesOverride < 5 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutesOverride", 5))
|
||||
}
|
||||
if s.ArtifactsOverride != nil {
|
||||
if err := s.ArtifactsOverride.Validate(); err != nil {
|
||||
|
@ -3107,7 +3138,7 @@ type UpdateProjectInput struct {
|
|||
|
||||
// The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild
|
||||
// to wait before timing out any related build that did not get marked as completed.
|
||||
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"`
|
||||
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -3135,8 +3166,8 @@ func (s *UpdateProjectInput) Validate() error {
|
|||
if s.ServiceRole != nil && len(*s.ServiceRole) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1))
|
||||
}
|
||||
if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 1))
|
||||
if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 5 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 5))
|
||||
}
|
||||
if s.Artifacts != nil {
|
||||
if err := s.Artifacts.Validate(); err != nil {
|
||||
|
|
354
vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go
generated
vendored
354
vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go
generated
vendored
|
@ -1,354 +0,0 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codebuild_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/codebuild"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCodeBuild_BatchGetBuilds() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.BatchGetBuildsInput{
|
||||
Ids: []*string{ // Required
|
||||
aws.String("NonEmptyString"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.BatchGetBuilds(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_BatchGetProjects() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.BatchGetProjectsInput{
|
||||
Names: []*string{ // Required
|
||||
aws.String("NonEmptyString"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.BatchGetProjects(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_CreateProject() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.CreateProjectInput{
|
||||
Artifacts: &codebuild.ProjectArtifacts{ // Required
|
||||
Type: aws.String("ArtifactsType"), // Required
|
||||
Location: aws.String("String"),
|
||||
Name: aws.String("String"),
|
||||
NamespaceType: aws.String("ArtifactNamespace"),
|
||||
Packaging: aws.String("ArtifactPackaging"),
|
||||
Path: aws.String("String"),
|
||||
},
|
||||
Environment: &codebuild.ProjectEnvironment{ // Required
|
||||
ComputeType: aws.String("ComputeType"), // Required
|
||||
Image: aws.String("NonEmptyString"), // Required
|
||||
Type: aws.String("EnvironmentType"), // Required
|
||||
EnvironmentVariables: []*codebuild.EnvironmentVariable{
|
||||
{ // Required
|
||||
Name: aws.String("NonEmptyString"), // Required
|
||||
Value: aws.String("String"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
Name: aws.String("ProjectName"), // Required
|
||||
Source: &codebuild.ProjectSource{ // Required
|
||||
Type: aws.String("SourceType"), // Required
|
||||
Auth: &codebuild.SourceAuth{
|
||||
Type: aws.String("SourceAuthType"), // Required
|
||||
Resource: aws.String("String"),
|
||||
},
|
||||
Buildspec: aws.String("String"),
|
||||
Location: aws.String("String"),
|
||||
},
|
||||
Description: aws.String("ProjectDescription"),
|
||||
EncryptionKey: aws.String("NonEmptyString"),
|
||||
ServiceRole: aws.String("NonEmptyString"),
|
||||
Tags: []*codebuild.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("KeyInput"),
|
||||
Value: aws.String("ValueInput"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
TimeoutInMinutes: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.CreateProject(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_DeleteProject() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.DeleteProjectInput{
|
||||
Name: aws.String("NonEmptyString"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteProject(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_ListBuilds() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.ListBuildsInput{
|
||||
NextToken: aws.String("String"),
|
||||
SortOrder: aws.String("SortOrderType"),
|
||||
}
|
||||
resp, err := svc.ListBuilds(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_ListBuildsForProject() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.ListBuildsForProjectInput{
|
||||
ProjectName: aws.String("NonEmptyString"), // Required
|
||||
NextToken: aws.String("String"),
|
||||
SortOrder: aws.String("SortOrderType"),
|
||||
}
|
||||
resp, err := svc.ListBuildsForProject(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_ListCuratedEnvironmentImages() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
var params *codebuild.ListCuratedEnvironmentImagesInput
|
||||
resp, err := svc.ListCuratedEnvironmentImages(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_ListProjects() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.ListProjectsInput{
|
||||
NextToken: aws.String("NonEmptyString"),
|
||||
SortBy: aws.String("ProjectSortByType"),
|
||||
SortOrder: aws.String("SortOrderType"),
|
||||
}
|
||||
resp, err := svc.ListProjects(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_StartBuild() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.StartBuildInput{
|
||||
ProjectName: aws.String("NonEmptyString"), // Required
|
||||
ArtifactsOverride: &codebuild.ProjectArtifacts{
|
||||
Type: aws.String("ArtifactsType"), // Required
|
||||
Location: aws.String("String"),
|
||||
Name: aws.String("String"),
|
||||
NamespaceType: aws.String("ArtifactNamespace"),
|
||||
Packaging: aws.String("ArtifactPackaging"),
|
||||
Path: aws.String("String"),
|
||||
},
|
||||
BuildspecOverride: aws.String("String"),
|
||||
EnvironmentVariablesOverride: []*codebuild.EnvironmentVariable{
|
||||
{ // Required
|
||||
Name: aws.String("NonEmptyString"), // Required
|
||||
Value: aws.String("String"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
SourceVersion: aws.String("String"),
|
||||
TimeoutInMinutesOverride: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.StartBuild(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_StopBuild() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.StopBuildInput{
|
||||
Id: aws.String("NonEmptyString"), // Required
|
||||
}
|
||||
resp, err := svc.StopBuild(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodeBuild_UpdateProject() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codebuild.New(sess)
|
||||
|
||||
params := &codebuild.UpdateProjectInput{
|
||||
Name: aws.String("NonEmptyString"), // Required
|
||||
Artifacts: &codebuild.ProjectArtifacts{
|
||||
Type: aws.String("ArtifactsType"), // Required
|
||||
Location: aws.String("String"),
|
||||
Name: aws.String("String"),
|
||||
NamespaceType: aws.String("ArtifactNamespace"),
|
||||
Packaging: aws.String("ArtifactPackaging"),
|
||||
Path: aws.String("String"),
|
||||
},
|
||||
Description: aws.String("ProjectDescription"),
|
||||
EncryptionKey: aws.String("NonEmptyString"),
|
||||
Environment: &codebuild.ProjectEnvironment{
|
||||
ComputeType: aws.String("ComputeType"), // Required
|
||||
Image: aws.String("NonEmptyString"), // Required
|
||||
Type: aws.String("EnvironmentType"), // Required
|
||||
EnvironmentVariables: []*codebuild.EnvironmentVariable{
|
||||
{ // Required
|
||||
Name: aws.String("NonEmptyString"), // Required
|
||||
Value: aws.String("String"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
ServiceRole: aws.String("NonEmptyString"),
|
||||
Source: &codebuild.ProjectSource{
|
||||
Type: aws.String("SourceType"), // Required
|
||||
Auth: &codebuild.SourceAuth{
|
||||
Type: aws.String("SourceAuthType"), // Required
|
||||
Resource: aws.String("String"),
|
||||
},
|
||||
Buildspec: aws.String("String"),
|
||||
Location: aws.String("String"),
|
||||
},
|
||||
Tags: []*codebuild.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("KeyInput"),
|
||||
Value: aws.String("ValueInput"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
TimeoutInMinutes: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.UpdateProject(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue