versioning

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDaemonVersion added in v0.0.8

func ChangeDaemonVersion(ctx context.Context, logger chassis.Logger, def *v1.ChangeDaemonVersionCommand) error

TODO-RC2: There's a bit of a race condition with this right now. If you call GetOSVersionDiff and then call this method you'll accidentally upgrade the entire OS with any changes that were pulled in from the `nix-channel --update` that was run during GetOSVersionDiff. This can be avoided by running `nix-channel --rollback` but will require some stateful logic which checks if a rollback is really needed. It's out of scope for RC1 but should be revisited later.

func GetDaemonVersion

func GetDaemonVersion(logger chassis.Logger) (*v1.CurrentDaemonVersion, error)

func GetOSVersionDiff

func GetOSVersionDiff(ctx context.Context, logger chassis.Logger) (string, error)

func RebuildAndSwitchOS added in v0.0.19

func RebuildAndSwitchOS(ctx context.Context, logger chassis.Logger) error

NOTE: must call this after calling GetOSVersionDiff if you want to perform a channel update.

func SetSystemImage added in v0.0.8

func SetSystemImage(ctx context.Context, logger chassis.Logger, def *v1.SetSystemImageCommand) error

func SetTimeZone added in v0.0.12

func SetTimeZone(ctx context.Context, logger chassis.Logger, timeZone string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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