shutdownmarker

package
v0.0.0-...-aeff3be Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(p string) error

Create writes a marker file on the given path to indicate that a component is going to be scaled down in the future. The presence of this file means that a component should perform some operations specified by the component itself before being shutdown.

func Exists

func Exists(p string) (bool, error)

Exists returns true if the shutdown marker file exists on the given path, false otherwise

func GetPath

func GetPath(dirPath string) string

GetPath returns the absolute path of the shutdown marker file

func Remove

func Remove(p string) error

Remove removes the shutdown marker file on the given path if it exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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