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
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.
Click to show internal directories.
Click to hide internal directories.