mimo

package
v0.0.0-...-b534984 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRetryableError

func IsRetryableError(err error) bool

Types

type MIMOError

type MIMOError interface {
	error
	MIMOErrorVariety() MIMOErrorVariety
}

func NewMIMOError

func NewMIMOError(err error, variety MIMOErrorVariety) MIMOError

func TerminalError

func TerminalError(err error) MIMOError

func TransientError

func TransientError(err error) MIMOError

type MIMOErrorVariety

type MIMOErrorVariety string
const (
	MIMOErrorTypeTransientError MIMOErrorVariety = "TransientError"
	MIMOErrorTypeTerminalError  MIMOErrorVariety = "TerminalError"
)

type TaskContext

type TaskContext interface {
	context.Context
	Now() time.Time
	Environment() env.Interface
	ClientHelper() (clienthelper.Interface, error)
	Log() *logrus.Entry
	LocalFpAuthorizer() (autorest.Authorizer, error)

	// OpenShiftCluster
	GetClusterUUID() string
	GetOpenShiftClusterProperties() api.OpenShiftClusterProperties
	GetOpenshiftClusterDocument() *api.OpenShiftClusterDocument

	SetResultMessage(string)
	GetResultMessage() string
}

func GetTaskContext

func GetTaskContext(c context.Context) (TaskContext, error)

Jump to

Keyboard shortcuts

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