provider

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNonMatchingEntites = errors.New("updated entity properties don't match")
)

Ensure SwoProvider satisfies various provider interfaces.

Functions

func BackoffRetry added in v0.0.24

func BackoffRetry[T any](operation backoff.Operation[T]) (T, error)

func GetStringDataType

func GetStringDataType(s string) string

func IIf added in v0.0.11

func IIf[T any](condition bool, trueValue T, falseValue T) T

func New

func New(version string, transport http.RoundTripper) func() provider.Provider

func NewAlertResource

func NewAlertResource() resource.Resource

func NewApiTokenResource added in v0.0.11

func NewApiTokenResource() resource.Resource

func NewDashboardResource

func NewDashboardResource() resource.Resource

func NewLogFilterResource added in v0.0.9

func NewLogFilterResource() resource.Resource

func NewNotificationResource

func NewNotificationResource() resource.Resource

func NewUriResource

func NewUriResource() resource.Resource

func NewWebsiteResource

func NewWebsiteResource() resource.Resource

func ReadRetry added in v0.0.24

func ReadRetry[T any](ctx context.Context, id string, operation ReadOperation[T]) (T, error)

Types

type ConditionMap

type ConditionMap struct {
	// contains filtered or unexported fields
}

type ReadOperation added in v0.0.24

type ReadOperation[T any] func(context.Context, string) (T, error)

Jump to

Keyboard shortcuts

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