core

package
v2.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 4 Imported by: 190

README

Genruntime/Core

This package contains simple shared declarations used across the generic reconciler and generated code.

Documentation

Index

Constants

View Source
const (
	ErrorRetryable = ErrorClassification("retryable")
	ErrorFatal     = ErrorClassification("fatal")
)
View Source
const (
	UnknownErrorCode    = "UnknownError"
	UnknownErrorMessage = "There was an unknown deployment error"
)

Variables

This section is empty.

Functions

func AsTypedError

func AsTypedError[T error](err error) (T, bool)

func NewNotOwnedError

func NewNotOwnedError(namespace string, name string, gvk schema.GroupVersionKind, sourceName string, sourceGvk schema.GroupVersionKind) error

Types

type CloudErrorDetails

type CloudErrorDetails struct {
	Classification ErrorClassification
	Code           string
	Message        string
}

type ErrorClassification

type ErrorClassification string

type NotOwnedError

type NotOwnedError struct {
	Namespace  string
	TargetName string
	TargetType string
	SourceName string
	SourceType string
}

NotOwnedError indicates the target resource is not owned by the resource attempting to write it

func AsNotOwnedError

func AsNotOwnedError(err error) (*NotOwnedError, bool)

func (*NotOwnedError) Error

func (e *NotOwnedError) Error() string

Jump to

Keyboard shortcuts

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