decider

package
v2.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package decider works out whether a service instance update is an Upgrade or and Update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation int
const (
	Failed Operation = iota
	Update
	Upgrade
)

func DecideOperation

func DecideOperation(serviceMaintenanceInfoVersion *version.Version, details paramparser.UpdateDetails) (Operation, error)

DecideOperation works out whether the platform (typically CloudFoundry) is trying to perform an Update of plan/parameters, or an Upgrade of Maintenance Info version. Is it an error to perform both at the same time. CloudFoundry provides only the fields it intends to change in the request body, but provides previous values for all fields. Where there is ambiguity, we rely on this CloudFoundry behavior.

Jump to

Keyboard shortcuts

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