Update 'images' to v0.113.0
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
b8c2e4c45c
commit
8514c95837
646 changed files with 36206 additions and 22388 deletions
2
vendor/github.com/googleapis/gax-go/v2/.release-please-manifest.json
generated
vendored
2
vendor/github.com/googleapis/gax-go/v2/.release-please-manifest.json
generated
vendored
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"v2": "2.14.0"
|
||||
"v2": "2.14.1"
|
||||
}
|
||||
|
|
|
|||
12
vendor/github.com/googleapis/gax-go/v2/CHANGES.md
generated
vendored
12
vendor/github.com/googleapis/gax-go/v2/CHANGES.md
generated
vendored
|
|
@ -1,5 +1,17 @@
|
|||
# Changelog
|
||||
|
||||
## [2.14.1](https://github.com/googleapis/gax-go/compare/v2.14.0...v2.14.1) (2024-12-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update golang.org/x/net to v0.33.0 ([#391](https://github.com/googleapis/gax-go/issues/391)) ([547a5b4](https://github.com/googleapis/gax-go/commit/547a5b43aa6f376f71242da9f18e65fbdfb342f6))
|
||||
|
||||
|
||||
### Documentation
|
||||
|
||||
* fix godoc to refer to the proper envvar ([#387](https://github.com/googleapis/gax-go/issues/387)) ([dc6baf7](https://github.com/googleapis/gax-go/commit/dc6baf75c1a737233739630b5af6c9759f08abcd))
|
||||
|
||||
## [2.14.0](https://github.com/googleapis/gax-go/compare/v2.13.0...v2.14.0) (2024-11-13)
|
||||
|
||||
|
||||
|
|
|
|||
2
vendor/github.com/googleapis/gax-go/v2/internal/version.go
generated
vendored
2
vendor/github.com/googleapis/gax-go/v2/internal/version.go
generated
vendored
|
|
@ -30,4 +30,4 @@
|
|||
package internal
|
||||
|
||||
// Version is the current tagged release of the library.
|
||||
const Version = "2.14.0"
|
||||
const Version = "2.14.1"
|
||||
|
|
|
|||
88
vendor/github.com/googleapis/gax-go/v2/internallog/grpclog/grpclog.go
generated
vendored
Normal file
88
vendor/github.com/googleapis/gax-go/v2/internallog/grpclog/grpclog.go
generated
vendored
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
// Copyright 2024, Google Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Package grpclog in intended for internal use by generated clients only.
|
||||
package grpclog
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"log/slog"
|
||||
"strings"
|
||||
|
||||
"google.golang.org/grpc/metadata"
|
||||
"google.golang.org/protobuf/encoding/protojson"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
// ProtoMessageRequest returns a lazily evaluated [slog.LogValuer] for
|
||||
// the provided message. The context is used to extract outgoing headers.
|
||||
func ProtoMessageRequest(ctx context.Context, msg proto.Message) slog.LogValuer {
|
||||
return &protoMessage{ctx: ctx, msg: msg}
|
||||
}
|
||||
|
||||
// ProtoMessageResponse returns a lazily evaluated [slog.LogValuer] for
|
||||
// the provided message.
|
||||
func ProtoMessageResponse(msg proto.Message) slog.LogValuer {
|
||||
return &protoMessage{msg: msg}
|
||||
}
|
||||
|
||||
type protoMessage struct {
|
||||
ctx context.Context
|
||||
msg proto.Message
|
||||
}
|
||||
|
||||
func (m *protoMessage) LogValue() slog.Value {
|
||||
if m == nil || m.msg == nil {
|
||||
return slog.Value{}
|
||||
}
|
||||
|
||||
var groupValueAttrs []slog.Attr
|
||||
|
||||
if m.ctx != nil {
|
||||
var headerAttr []slog.Attr
|
||||
if m, ok := metadata.FromOutgoingContext(m.ctx); ok {
|
||||
for k, v := range m {
|
||||
headerAttr = append(headerAttr, slog.String(k, strings.Join(v, ",")))
|
||||
}
|
||||
}
|
||||
if len(headerAttr) > 0 {
|
||||
groupValueAttrs = append(groupValueAttrs, slog.Any("headers", headerAttr))
|
||||
}
|
||||
}
|
||||
mo := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true}
|
||||
if b, err := mo.Marshal(m.msg); err == nil {
|
||||
var m map[string]any
|
||||
if err := json.Unmarshal(b, &m); err == nil {
|
||||
groupValueAttrs = append(groupValueAttrs, slog.Any("payload", m))
|
||||
}
|
||||
}
|
||||
|
||||
return slog.GroupValue(groupValueAttrs...)
|
||||
}
|
||||
2
vendor/github.com/googleapis/gax-go/v2/internallog/internallog.go
generated
vendored
2
vendor/github.com/googleapis/gax-go/v2/internallog/internallog.go
generated
vendored
|
|
@ -44,7 +44,7 @@ import (
|
|||
|
||||
// New returns a new [slog.Logger] default logger, or the provided logger if
|
||||
// non-nil. The returned logger will be a no-op logger unless the environment
|
||||
// variable GOOGLE_SDK_DEBUG_LOGGING is set.
|
||||
// variable GOOGLE_SDK_GO_LOGGING_LEVEL is set.
|
||||
func New(l *slog.Logger) *slog.Logger {
|
||||
if l != nil {
|
||||
return l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue