Documentation ¶
Index ¶
- Constants
- func BoolPointer(b bool) *bool
- func GetContextWithCaller(ctx context.Context, caller Caller) context.Context
- func GetFirstElementOf(parent string, children ...string) (key string)
- func IsCreateState(ctx context.Context) bool
- func IsDataRead(ctx context.Context) bool
- func IsRefreshState(ctx context.Context) bool
- func IsUpdateState(ctx context.Context) bool
- func PtrString[T ~string](val *T) string
- func Retry(f Retryable, interval time.Duration, attempts int) (int, error)
- func RetryUntilTimeout(f Retryable, interval time.Duration, timeout time.Duration) (int, error)
- func SetPrimitiveList[T any](data any) []T
- func SetPrimitiveValue(input, model interface{}, key string)
- func StringPointer(s string) *string
- func UpdateDataSourceSchema(d *schema.Schema) *schema.Schema
- type Caller
- type RequestURL
- type Retryable
Constants ¶
View Source
const DEV = "DEV"
Variables ¶
This section is empty.
Functions ¶
func BoolPointer ¶ added in v1.1.4
func GetContextWithCaller ¶ added in v1.1.7
func GetFirstElementOf ¶
func IsCreateState ¶ added in v1.1.7
func IsDataRead ¶ added in v1.1.7
func IsRefreshState ¶ added in v1.1.7
func IsUpdateState ¶ added in v1.1.7
func RetryUntilTimeout ¶
Retry is a wrapper to retry functions.
func SetPrimitiveList ¶ added in v1.2.0
func SetPrimitiveValue ¶
func SetPrimitiveValue(input, model interface{}, key string)
func StringPointer ¶ added in v1.1.8
Types ¶
type RequestURL ¶
type RequestURL string
func ConstructRequestURL ¶
func ConstructRequestURL(paths ...string) (url RequestURL)
ConstructRequestURL constructs a request URL based on paths.
func (RequestURL) AppendQueryParams ¶
func (ru RequestURL) AppendQueryParams(queryParameters url.Values) (url RequestURL)
AppendQueryParams appends query parameters to a request URL.
func (RequestURL) String ¶
func (ru RequestURL) String() (urlString string)
String converts a request URL to a string.
Click to show internal directories.
Click to hide internal directories.