upgradescript

package
v0.0.0-...-a606d81 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 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 provisionhksv3.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 provisionhksv3.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