callback

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package callback provides functions for creating resource providers that may need to be called multiple times while waiting for resources to settle.

Index

Constants

View Source
const (
	//ServiceInternalError ...
	ServiceInternalError string = "ServiceInternal"
	//MaxRetries is the number of retries allowed to report status.
	MaxRetries uint = 3
)

Variables

This section is empty.

Functions

func TranslateErrorCode

func TranslateErrorCode(errorCode string) string

TranslateErrorCode : Translate the error code into a standard Cloudformation error

func TranslateOperationStatus

func TranslateOperationStatus(operationStatus string) string

TranslateOperationStatus Translate the operation Status into a standard Cloudformation error

Types

type CloudFormationCallbackAdapter

type CloudFormationCallbackAdapter struct {
	// contains filtered or unexported fields
}

CloudFormationCallbackAdapter used to report progress events back to CloudFormation.

func New

New creates a CloudFormationCallbackAdapter and returns a pointer to the struct.

func (*CloudFormationCallbackAdapter) ReportProgress

func (c *CloudFormationCallbackAdapter) ReportProgress(bearerToken string, code string, operationStatus string, currentOperationStatus string, resourceModel string, statusMessage string) error

ReportProgress reports the current status back to the Cloudformation service.

Jump to

Keyboard shortcuts

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