mimo

package
v0.0.0-...-2e7c69a Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 11 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
	Log() *logrus.Entry

	// Result messages
	SetResultMessage(string)

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

	// Subscription
	GetSubscriptionDocument() *api.SubscriptionDocument

	// PatchOpenShiftClusterDocument works without a lease and only operates on
	// the single document in this context
	PatchOpenShiftClusterDocument(context.Context, database.OpenShiftClusterDocumentMutator) (*api.OpenShiftClusterDocument, error)

	// Kubernetes client
	ClientHelper() (clienthelper.Interface, error)

	// Azure Networking clients
	InterfacesClient() (armnetwork.InterfacesClient, error)
	LoadBalancersClient() (armnetwork.LoadBalancersClient, error)
	PrivateLinkServicesClient() (armnetwork.PrivateLinkServicesClient, error)

	// Azure Compute clients
	ResourceSKUsClient() (armcompute.ResourceSKUsClient, error)

	// Azure Container Registry clients
	TokensClient() (armcontainerregistry.TokensClient, error)
	RegistriesClient() (armcontainerregistry.RegistriesClient, error)
}

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