util

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MPL-2.0 Imports: 11 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 basetypes.BoolValue) contentfulManagement.OptBool

func ErrorDetailFromContentfulManagementResponse

func ErrorDetailFromContentfulManagementResponse(response interface{}, err error) string

func JxDecodeOpaque added in v0.0.15

func JxDecodeOpaque(decoder *jx.Decoder) (interface{}, error)

func JxEncodeOpaqueOrdered added in v0.0.15

func JxEncodeOpaqueOrdered(encoder *jx.Encoder, value interface{}, options JxEncodeOpaqueOptions) error

func JxNormalizeOpaqueBytes added in v0.0.15

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

func NewEmptyListMust added in v0.0.3

func NewEmptyListMust(elementType attr.Type) basetypes.ListValue

func NewEmptySetMust added in v0.0.9

func NewEmptySetMust(elementType attr.Type) basetypes.SetValue

func NewStringListValueFromStringSlice added in v0.0.12

func NewStringListValueFromStringSlice(ctx context.Context, slice []string) (basetypes.ListValue, diag.Diagnostics)

func OptBoolToBoolValue added in v0.0.5

func OptBoolToBoolValue(b contentfulManagement.OptBool) basetypes.BoolValue

func OptNilStringToStringValue added in v0.0.10

func OptNilStringToStringValue(s contentfulManagement.OptNilString) basetypes.StringValue

func OptStringToStringValue added in v0.0.3

func OptStringToStringValue(s contentfulManagement.OptString) basetypes.StringValue

func StringValueToOptNilString added in v0.0.10

func StringValueToOptNilString(value basetypes.StringValue) contentfulManagement.OptNilString

func StringValueToOptString added in v0.0.3

func StringValueToOptString(s basetypes.StringValue) contentfulManagement.OptString

Types

type ClientWithUserAgent added in v0.0.5

type ClientWithUserAgent struct {
	UserAgent string
	// contains filtered or unexported fields
}

func NewClientWithUserAgent added in v0.0.5

func NewClientWithUserAgent(client *http.Client, userAgent string) *ClientWithUserAgent

func (*ClientWithUserAgent) Do added in v0.0.5

type JxEncodeOpaqueOptions added in v0.0.15

type JxEncodeOpaqueOptions struct {
	EscapeStrings bool
}

Jump to

Keyboard shortcuts

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