Documentation
¶
Index ¶
- func ChangeDaemonVersion(ctx context.Context, logger chassis.Logger, def *v1.ChangeDaemonVersionCommand) error
- func GetDaemonVersion(logger chassis.Logger) (*v1.CurrentDaemonVersion, error)
- func GetOSVersionDiff(ctx context.Context, logger chassis.Logger) (string, error)
- func RebuildAndSwitchOS(ctx context.Context, logger chassis.Logger) error
- func SetSystemImage(ctx context.Context, logger chassis.Logger, def *v1.SetSystemImageCommand) error
- func SetTimeZone(ctx context.Context, logger chassis.Logger, timeZone string) error
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 RebuildAndSwitchOS ¶ added in v0.0.19
NOTE: must call this after calling GetOSVersionDiff if you want to perform a channel update.
func SetSystemImage ¶ added in v0.0.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.