operation

package
v0.0.0-...-b80afe7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package operation provides open service broker operation abstraction.

Index

Constants

This section is empty.

Variables

View Source
var ErrOperationDoesNotExist = errors.New("operation doesn't exist")

ErrOperationDoesNotExist is raised when an operation doesn't exist and it should.

View Source
var ErrOperatorExists = errors.New("operation exists")

ErrOperatorExists is raised when an operation exists and it shouldn't.

Functions

func Complete

func Complete(entry *registry.Entry, status error) error

Complete sets the asynchronous operation completion on the registry entry.

func End

func End(entry *registry.Entry) error

End ends an asynchronous operation on the registry entry.

func Start

func Start(entry *registry.Entry, t Type) error

Start begins an asynchronous operation on the registry entry.

Types

type Type

type Type string

Type is the type of operation being performed.

const (
	// TypeProvision is used when a resource is being created.
	TypeProvision Type = "provision"

	// TypeUpdate is used when a resource is being updated.
	TypeUpdate Type = "update"

	// TypeDeprovision is used when a resource is being deleted.
	TypeDeprovision Type = "deprovision"
)

Jump to

Keyboard shortcuts

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