Files
2ec3aa8db5 S3 dualstack mode check (#3721)
* added files to handle dualstack mode for minio s3 handler

* added changes on api.go

* Update tempodb/backend/s3/s3.go

Co-authored-by: Mario <[email protected]>

* Update tempodb/backend/s3/config.go

Co-authored-by: Mario <[email protected]>

* Update docs/sources/tempo/configuration/manifest.md

Co-authored-by: Mario <[email protected]>

* Update docs/sources/tempo/setup/linux.md

Co-authored-by: Mario <[email protected]>

* Update docs/sources/tempo/configuration/manifest.md

Co-authored-by: Mario <[email protected]>

* Update docs/sources/tempo/configuration/_index.md

Co-authored-by: Mario <[email protected]>

* added docs for dualstack

* final commit

* initiate client object

* Fix IAM test

* Added changelog entry

* Update docs/sources/tempo/configuration/_index.md

---------

Co-authored-by: Mario <[email protected]>
Co-authored-by: Kim Nylander <[email protected]>
2024-06-19 11:48:41 +02:00

56 lines
1.3 KiB
Go

package decoder
import (
"reflect"
"unsafe"
"github.com/goccy/go-json/internal/errors"
"github.com/goccy/go-json/internal/runtime"
)
type invalidDecoder struct {
typ *runtime.Type
kind reflect.Kind
structName string
fieldName string
}
func newInvalidDecoder(typ *runtime.Type, structName, fieldName string) *invalidDecoder {
return &invalidDecoder{
typ: typ,
kind: typ.Kind(),
structName: structName,
fieldName: fieldName,
}
}
func (d *invalidDecoder) DecodeStream(s *Stream, depth int64, p unsafe.Pointer) error {
return &errors.UnmarshalTypeError{
Value: "object",
Type: runtime.RType2Type(d.typ),
Offset: s.totalOffset(),
Struct: d.structName,
Field: d.fieldName,
}
}
func (d *invalidDecoder) Decode(ctx *RuntimeContext, cursor, depth int64, p unsafe.Pointer) (int64, error) {
return 0, &errors.UnmarshalTypeError{
Value: "object",
Type: runtime.RType2Type(d.typ),
Offset: cursor,
Struct: d.structName,
Field: d.fieldName,
}
}
func (d *invalidDecoder) DecodePath(ctx *RuntimeContext, cursor, depth int64) ([][]byte, int64, error) {
return nil, 0, &errors.UnmarshalTypeError{
Value: "object",
Type: runtime.RType2Type(d.typ),
Offset: cursor,
Struct: d.structName,
Field: d.fieldName,
}
}