mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Bye bye openapi (#1081)
* add DateTime sans mgo * change all uses of strfmt.DateTime to common.DateTime, remove test strfmt usage * remove api tests, system-test dep on api test multiple reasons to remove the api tests: * awkward dependency with fn_go meant generating bindings on a branched fn to vendor those to test new stuff. this is at a minimum not at all intuitive, worth it, nor a fun way to spend the finite amount of time we have to live. * api tests only tested a subset of functionality that the server/ api tests already test, and we risk having tests where one tests some thing and the other doesn't. let's not. we have too many test suites as it is, and these pretty much only test that we updated the fn_go bindings, which is actually a hassle as noted above and the cli will pretty quickly figure out anyway. * fn_go relies on openapi, which relies on mgo, which is deprecated and we'd like to remove as a dependency. openapi is a _huge_ dep built in a NIH fashion, that cannot simply remove the mgo dep as users may be using it. we've now stolen their date time and otherwise killed usage of it in fn core, for fn_go it still exists but that's less of a problem. * update deps removals: * easyjson * mgo * go-openapi * mapstructure * fn_go * purell * go-validator also, had to lock docker. we shouldn't use docker on master anyway, they strongly advise against that. had no luck with latest version rev, so i locked it to what we were using before. until next time. the rest is just playing dep roulette, those end up removing a ton tho * fix exec test to work * account for john le cache
This commit is contained in:
96
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
96
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json
generated
vendored
@@ -59,11 +59,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@@ -84,12 +79,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@@ -572,13 +561,75 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180315",
|
||||
"revision": "20180607",
|
||||
"rootUrl": "https://cloudbuild.googleapis.com/",
|
||||
"schemas": {
|
||||
"ArtifactObjects": {
|
||||
"description": "Files in the workspace to upload to Cloud Storage upon successful\ncompletion of all build steps.",
|
||||
"id": "ArtifactObjects",
|
||||
"properties": {
|
||||
"location": {
|
||||
"description": "Cloud Storage bucket and optional object path, in the form\n\"gs://bucket/path/to/somewhere/\". (see [Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\nFiles in the workspace matching any path pattern will be uploaded to\nCloud Storage with this location as a prefix.",
|
||||
"type": "string"
|
||||
},
|
||||
"paths": {
|
||||
"description": "Path globs used to match files in the build's workspace.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"timing": {
|
||||
"$ref": "TimeSpan",
|
||||
"description": "Stores timing information for pushing all artifact objects.\n@OutputOnly"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ArtifactResult": {
|
||||
"description": "An artifact that was uploaded during a build. This\nis a single record in the artifact manifest JSON file.",
|
||||
"id": "ArtifactResult",
|
||||
"properties": {
|
||||
"fileHash": {
|
||||
"description": "The file hash of the artifact.",
|
||||
"items": {
|
||||
"$ref": "FileHashes"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"location": {
|
||||
"description": "The path of an artifact in a Google Cloud Storage bucket, with the\ngeneration number. For example,\n`gs://mybucket/path/to/output.jar#generation`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Artifacts": {
|
||||
"description": "Artifacts produced by a build that should be uploaded upon\nsuccessful completion of all build steps.",
|
||||
"id": "Artifacts",
|
||||
"properties": {
|
||||
"images": {
|
||||
"description": "A list of images to be pushed upon the successful completion of all build\nsteps.\n\nThe images will be pushed using the builder service account's credentials.\n\nThe digests of the pushed images will be stored in the Build resource's\nresults field.\n\nIf any of the images fail to be pushed, the build is marked FAILURE.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"objects": {
|
||||
"$ref": "ArtifactObjects",
|
||||
"description": "A list of objects to be uploaded to Cloud Storage upon successful\ncompletion of all build steps.\n\nFiles in the workspace matching specified paths globs will be uploaded to\nthe specified Cloud Storage location using the builder service account's\ncredentials.\n\nThe location and generation of the uploaded objects will be stored in the\nBuild resource's results field.\n\nIf any objects fail to be pushed, the build is marked FAILURE."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Build": {
|
||||
"description": "A build resource in the Container Builder API.\n\nAt a high level, a `Build` describes where to find source code, how to build\nit (for example, the builder image to run on the source), and where to store\nthe built artifacts.\n\nFields can include the following variables, which will be expanded when the\nbuild is created:\n\n- $PROJECT_ID: the project ID of the build.\n- $BUILD_ID: the autogenerated ID of the build.\n- $REPO_NAME: the source repository name specified by RepoSource.\n- $BRANCH_NAME: the branch name specified by RepoSource.\n- $TAG_NAME: the tag name specified by RepoSource.\n- $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or\n resolved from the specified branch or tag.\n- $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.",
|
||||
"id": "Build",
|
||||
"properties": {
|
||||
"artifacts": {
|
||||
"$ref": "Artifacts",
|
||||
"description": "Artifacts produced by the build that should be uploaded upon\nsuccessful completion of all build steps."
|
||||
},
|
||||
"buildTriggerId": {
|
||||
"description": "The ID of the `BuildTrigger` that triggered this build, if it was\ntriggered automatically.\n@OutputOnly",
|
||||
"type": "string"
|
||||
@@ -772,12 +823,14 @@
|
||||
"description": "Requested hash for SourceProvenance.",
|
||||
"enumDescriptions": [
|
||||
"No hash requested.",
|
||||
"Use a sha256 hash."
|
||||
"Use a sha256 hash.",
|
||||
"Use a md5 hash."
|
||||
],
|
||||
"items": {
|
||||
"enum": [
|
||||
"NONE",
|
||||
"SHA256"
|
||||
"SHA256",
|
||||
"MD5"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@@ -991,11 +1044,13 @@
|
||||
"description": "The type of hash that was performed.",
|
||||
"enum": [
|
||||
"NONE",
|
||||
"SHA256"
|
||||
"SHA256",
|
||||
"MD5"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"No hash requested.",
|
||||
"Use a sha256 hash."
|
||||
"Use a sha256 hash.",
|
||||
"Use a md5 hash."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1127,6 +1182,10 @@
|
||||
"description": "Artifacts created by the build pipeline.",
|
||||
"id": "Results",
|
||||
"properties": {
|
||||
"artifactManifest": {
|
||||
"description": "Path to the artifact manifest. Only populated when artifacts are uploaded.",
|
||||
"type": "string"
|
||||
},
|
||||
"buildStepImages": {
|
||||
"description": "List of build step digests, in the order corresponding to build step\nindices.",
|
||||
"items": {
|
||||
@@ -1140,6 +1199,11 @@
|
||||
"$ref": "BuiltImage"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"numArtifacts": {
|
||||
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
175
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
175
vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go
generated
vendored
@@ -120,6 +120,147 @@ type ProjectsTriggersService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// ArtifactObjects: Files in the workspace to upload to Cloud Storage
|
||||
// upon successful
|
||||
// completion of all build steps.
|
||||
type ArtifactObjects struct {
|
||||
// Location: Cloud Storage bucket and optional object path, in the
|
||||
// form
|
||||
// "gs://bucket/path/to/somewhere/". (see [Bucket
|
||||
// Name
|
||||
// Requirements](https://cloud.google.com/storage/docs/bucket-naming
|
||||
// #requirements)).
|
||||
//
|
||||
// Files in the workspace matching any path pattern will be uploaded
|
||||
// to
|
||||
// Cloud Storage with this location as a prefix.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// Paths: Path globs used to match files in the build's workspace.
|
||||
Paths []string `json:"paths,omitempty"`
|
||||
|
||||
// Timing: Stores timing information for pushing all artifact
|
||||
// objects.
|
||||
// @OutputOnly
|
||||
Timing *TimeSpan `json:"timing,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Location") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Location") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ArtifactObjects) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ArtifactObjects
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ArtifactResult: An artifact that was uploaded during a build. This
|
||||
// is a single record in the artifact manifest JSON file.
|
||||
type ArtifactResult struct {
|
||||
// FileHash: The file hash of the artifact.
|
||||
FileHash []*FileHashes `json:"fileHash,omitempty"`
|
||||
|
||||
// Location: The path of an artifact in a Google Cloud Storage bucket,
|
||||
// with the
|
||||
// generation number. For
|
||||
// example,
|
||||
// `gs://mybucket/path/to/output.jar#generation`.
|
||||
Location string `json:"location,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "FileHash") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "FileHash") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ArtifactResult) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ArtifactResult
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Artifacts: Artifacts produced by a build that should be uploaded
|
||||
// upon
|
||||
// successful completion of all build steps.
|
||||
type Artifacts struct {
|
||||
// Images: A list of images to be pushed upon the successful completion
|
||||
// of all build
|
||||
// steps.
|
||||
//
|
||||
// The images will be pushed using the builder service account's
|
||||
// credentials.
|
||||
//
|
||||
// The digests of the pushed images will be stored in the Build
|
||||
// resource's
|
||||
// results field.
|
||||
//
|
||||
// If any of the images fail to be pushed, the build is marked FAILURE.
|
||||
Images []string `json:"images,omitempty"`
|
||||
|
||||
// Objects: A list of objects to be uploaded to Cloud Storage upon
|
||||
// successful
|
||||
// completion of all build steps.
|
||||
//
|
||||
// Files in the workspace matching specified paths globs will be
|
||||
// uploaded to
|
||||
// the specified Cloud Storage location using the builder service
|
||||
// account's
|
||||
// credentials.
|
||||
//
|
||||
// The location and generation of the uploaded objects will be stored in
|
||||
// the
|
||||
// Build resource's results field.
|
||||
//
|
||||
// If any objects fail to be pushed, the build is marked FAILURE.
|
||||
Objects *ArtifactObjects `json:"objects,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Images") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Images") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *Artifacts) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod Artifacts
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Build: A build resource in the Container Builder API.
|
||||
//
|
||||
// At a high level, a `Build` describes where to find source code, how
|
||||
@@ -142,6 +283,11 @@ type ProjectsTriggersService struct {
|
||||
// resolved from the specified branch or tag.
|
||||
// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
|
||||
type Build struct {
|
||||
// Artifacts: Artifacts produced by the build that should be uploaded
|
||||
// upon
|
||||
// successful completion of all build steps.
|
||||
Artifacts *Artifacts `json:"artifacts,omitempty"`
|
||||
|
||||
// BuildTriggerId: The ID of the `BuildTrigger` that triggered this
|
||||
// build, if it was
|
||||
// triggered automatically.
|
||||
@@ -276,7 +422,7 @@ type Build struct {
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BuildTriggerId") to
|
||||
// ForceSendFields is a list of field names (e.g. "Artifacts") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@@ -284,13 +430,12 @@ type Build struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "BuildTriggerId") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
// NullFields is a list of field names (e.g. "Artifacts") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
@@ -378,6 +523,7 @@ type BuildOptions struct {
|
||||
// Possible values:
|
||||
// "NONE" - No hash requested.
|
||||
// "SHA256" - Use a sha256 hash.
|
||||
// "MD5" - Use a md5 hash.
|
||||
SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
|
||||
|
||||
// SubstitutionOption: Option to specify behavior when there is an error
|
||||
@@ -750,6 +896,7 @@ type Hash struct {
|
||||
// Possible values:
|
||||
// "NONE" - No hash requested.
|
||||
// "SHA256" - Use a sha256 hash.
|
||||
// "MD5" - Use a md5 hash.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// Value: The hash value.
|
||||
@@ -1014,6 +1161,10 @@ func (s *RepoSource) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Results: Artifacts created by the build pipeline.
|
||||
type Results struct {
|
||||
// ArtifactManifest: Path to the artifact manifest. Only populated when
|
||||
// artifacts are uploaded.
|
||||
ArtifactManifest string `json:"artifactManifest,omitempty"`
|
||||
|
||||
// BuildStepImages: List of build step digests, in the order
|
||||
// corresponding to build step
|
||||
// indices.
|
||||
@@ -1022,7 +1173,11 @@ type Results struct {
|
||||
// Images: Container images that were built as a part of the build.
|
||||
Images []*BuiltImage `json:"images,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "BuildStepImages") to
|
||||
// NumArtifacts: Number of artifacts uploaded. Only populated when
|
||||
// artifacts are uploaded.
|
||||
NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@@ -1030,7 +1185,7 @@ type Results struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "BuildStepImages") to
|
||||
// NullFields is a list of field names (e.g. "ArtifactManifest") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
|
||||
Reference in New Issue
Block a user