util

package
v0.0.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolValueToOptBool added in v0.0.5

func BoolValueToOptBool(b types.Bool) cm.OptBool

func ContentfulManagementErrorDetailReasons added in v0.0.26

func ContentfulManagementErrorDetailReasons(detailsJSONBytes []byte) string

func ContentfulManagementValidationFailedErrorDetails added in v0.0.24

func ContentfulManagementValidationFailedErrorDetails(detailsJSONBytes []byte) ([]string, bool)

func ContentfulManagementValidationFailedErrorDetailsErrorPathToString added in v0.0.24

func ContentfulManagementValidationFailedErrorDetailsErrorPathToString(path []any) (string, bool)

func ContentfulRateLimitLinearJitterBackoff added in v0.0.53

func ContentfulRateLimitLinearJitterBackoff(minDelay, maxDelay time.Duration, attemptNum int, resp *http.Response) time.Duration

func ErrorDetailFromContentfulManagementError added in v0.0.25

func ErrorDetailFromContentfulManagementError(response cm.Error) string

func ErrorDetailFromContentfulManagementErrorStatusCode added in v0.0.24

func ErrorDetailFromContentfulManagementErrorStatusCode(response cm.ErrorStatusCodeResponse) string

func ErrorDetailFromContentfulManagementResponse

func ErrorDetailFromContentfulManagementResponse(response any, err error) string

func JxDecodeOpaque added in v0.0.15

func JxDecodeOpaque(decoder *jx.Decoder) (any, error)

func JxEncodeOpaqueOrdered added in v0.0.15

func JxEncodeOpaqueOrdered(encoder *jx.Encoder, value any, options JxEncodeOpaqueOptions) error

func JxNormalizeOpaqueBytes added in v0.0.15

func JxNormalizeOpaqueBytes(bytes []byte, options JxEncodeOpaqueOptions) ([]byte, error)

func OptBoolToBoolValue added in v0.0.5

func OptBoolToBoolValue(b cm.OptBool) types.Bool

func OptNilStringToStringValue added in v0.0.10

func OptNilStringToStringValue(s cm.OptNilString) types.String

func OptStringToStringValue added in v0.0.3

func OptStringToStringValue(s cm.OptString) types.String

func StringValueToOptNilString added in v0.0.10

func StringValueToOptNilString(value types.String) cm.OptNilString

func StringValueToOptString added in v0.0.3

func StringValueToOptString(s types.String) cm.OptString

Types

type JxEncodeOpaqueOptions added in v0.0.15

type JxEncodeOpaqueOptions struct {
	EscapeStrings bool
}

type ValidationFailedErrorDetails added in v0.0.24

type ValidationFailedErrorDetails struct {
	Errors []ValidationFailedErrorDetailsError `json:"errors"`
}

type ValidationFailedErrorDetailsError added in v0.0.24

type ValidationFailedErrorDetailsError struct {
	Name    string `json:"name"`
	Details string `json:"details"`
	Path    []any  `json:"path"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL