upgradescript

package
v7.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(upgradeType provisioncsv3.UpgradeType, targetVersion, upgradeID string) bool

Exists returns true if the upgrade script exists on disk (i.e. Write() has been called for this upgrade), else false

func GetUpgradeScriptFullPath

func GetUpgradeScriptFullPath(filename string) string

GetUpgradeScriptFullPath returns path to the upgrade script

func RemoveCurrent

func RemoveCurrent() error

RemoveCurrent removes the /current file after an upgrade has completed

func Write

func Write(script []byte, upgradeType provisioncsv3.UpgradeType, targetVersion, upgradeID string) error

Write takes the script data to write to /upgrade/upgradeScriptFilename

Types

This section is empty.

Jump to

Keyboard shortcuts

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