Bumping k8s dependencies to 1.13
This commit is contained in:
2
vendor/github.com/googleapis/gnostic/apps/disco/main.go
generated
vendored
2
vendor/github.com/googleapis/gnostic/apps/disco/main.go
generated
vendored
@@ -151,7 +151,7 @@ Usage:
|
||||
|
||||
func handleExportArgumentsForBytes(arguments map[string]interface{}, bytes []byte) (handled bool, err error) {
|
||||
// Unpack the discovery document.
|
||||
info, err := compiler.ReadInfoFromBytes("source", bytes)
|
||||
info, err := compiler.ReadInfoFromBytes("", bytes)
|
||||
if err != nil {
|
||||
return true, err
|
||||
}
|
||||
|
8
vendor/github.com/googleapis/gnostic/apps/disco/openapiv3.go
generated
vendored
8
vendor/github.com/googleapis/gnostic/apps/disco/openapiv3.go
generated
vendored
@@ -18,8 +18,8 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
discovery "github.com/googleapis/gnostic/discovery"
|
||||
openapi3 "github.com/googleapis/gnostic/OpenAPIv3"
|
||||
discovery "github.com/googleapis/gnostic/discovery"
|
||||
)
|
||||
|
||||
func pathForMethod(path string) string {
|
||||
@@ -59,9 +59,9 @@ func buildOpenAPI3SchemaOrReferenceForSchema(schema *discovery.Schema) *openapi3
|
||||
}
|
||||
}
|
||||
if schema.Items != nil {
|
||||
s2 := buildOpenAPI3SchemaOrReferenceForSchema(schema.Items)
|
||||
s.Items = &openapi3.ItemsItem{}
|
||||
s.Items.SchemaOrReference = append(s.Items.SchemaOrReference, s2)
|
||||
s.Items = &openapi3.ItemsItem{
|
||||
SchemaOrReference: []*openapi3.SchemaOrReference{buildOpenAPI3SchemaOrReferenceForSchema(schema.Items)},
|
||||
}
|
||||
}
|
||||
if (schema.Properties != nil) && (len(schema.Properties.AdditionalProperties) > 0) {
|
||||
s.Properties = &openapi3.Properties{}
|
||||
|
5
vendor/github.com/googleapis/gnostic/apps/report-messages/README.md
generated
vendored
Normal file
5
vendor/github.com/googleapis/gnostic/apps/report-messages/README.md
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# report-messages tool
|
||||
|
||||
This directory contains a command-line tool that provides a text
|
||||
report listing the messages in a gnostic messages file.
|
||||
|
69
vendor/github.com/googleapis/gnostic/apps/report-messages/main.go
generated
vendored
Normal file
69
vendor/github.com/googleapis/gnostic/apps/report-messages/main.go
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
// Copyright 2018 Google Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Filter and display messages produced by gnostic invocations.
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/googleapis/gnostic/printer"
|
||||
|
||||
plugins "github.com/googleapis/gnostic/plugins"
|
||||
)
|
||||
|
||||
func readMessagesFromFileWithName(filename string) *plugins.Messages {
|
||||
data, err := ioutil.ReadFile(filename)
|
||||
if err != nil {
|
||||
fmt.Printf("File error: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
messages := &plugins.Messages{}
|
||||
err = proto.Unmarshal(data, messages)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return messages
|
||||
}
|
||||
|
||||
func printMessages(code *printer.Code, messages *plugins.Messages) {
|
||||
for _, message := range messages.Messages {
|
||||
line := fmt.Sprintf("%-7s %-14s %s %+v",
|
||||
message.Level,
|
||||
message.Code,
|
||||
message.Text,
|
||||
message.Keys)
|
||||
code.Print(line)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
args := flag.Args()
|
||||
|
||||
if len(args) != 1 {
|
||||
fmt.Printf("Usage: report-messages <file.pb>\n")
|
||||
return
|
||||
}
|
||||
|
||||
messages := readMessagesFromFileWithName(args[0])
|
||||
|
||||
code := &printer.Code{}
|
||||
printMessages(code, messages)
|
||||
fmt.Printf("%s", code)
|
||||
}
|
Reference in New Issue
Block a user