utilities

package
v0.0.0-...-f562870 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: 0BSD Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteError

func DeleteError(err error) diag.ErrorDiagnostic

func DeterminePollInterval

func DeterminePollInterval(attributes map[string]attr.Value) time.Duration

func DetermineTimeout

func DetermineTimeout(attributes map[string]attr.Value) time.Duration

func GetNamespacedResourceError

func GetNamespacedResourceError(err error, name string, namespace string) diag.Diagnostic

func GetResourceError

func GetResourceError(err error, name string) diag.Diagnostic

func IsDeletionError

func IsDeletionError(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func JsonMarshalError

func JsonMarshalError(err error) diag.ErrorDiagnostic

func JsonUnmarshalError

func JsonUnmarshalError(err error) diag.ErrorDiagnostic

func MapDeletionPropagation

func MapDeletionPropagation(value string) *v1.DeletionPropagation

func MarshalJsonError

func MarshalJsonError(err error) diag.ErrorDiagnostic

func MarshalYamlError

func MarshalYamlError(err error) diag.ErrorDiagnostic

func NewJSONPathParser

func NewJSONPathParser(relaxedExpression string) (*jsonpath.JSONPath, error)

func OfflineProviderError

func OfflineProviderError() diag.ErrorDiagnostic

func PatchError

func PatchError(err error) diag.ErrorDiagnostic

func ProcessJSONPathInput

func ProcessJSONPathInput(jsonPathExpression, jsonPathCond string) (string, string, error)

func UnexpectedDataSourceDataError

func UnexpectedDataSourceDataError(data any) diag.ErrorDiagnostic

func UnexpectedResourceDataError

func UnexpectedResourceDataError(data any) diag.ErrorDiagnostic

func WaitTimeoutExceeded

func WaitTimeoutExceeded() diag.ErrorDiagnostic

Types

type DataSourceData

type DataSourceData struct {
	Client  dynamic.Interface
	Offline bool
}

type ResourceData

type ResourceData struct {
	Client         dynamic.Interface
	FieldManager   string
	ForceConflicts bool
	Offline        bool
}

Jump to

Keyboard shortcuts

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