patch

package
v0.0.0-...-bc60ea4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 16 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Level = 6

Level is the current implemented patch level of the state format and content.

View Source
var Sublevel = 3

Sublevel is the current implemented sublevel for the Level. Sublevel 0 is the first patch for the new Level, rollback below x.0 is not possible. Sublevel patches > 0 do not prevent rollbacks.

Functions

func Apply

func Apply(s *state.State) error

Apply applies any necessary patches to update the provided state to conventions required by the current patch level of the system.

func Init

func Init(s *state.State)

Init initializes an empty state to the current implemented patch level.

func Mock

func Mock(level int, sublevel int, p map[int][]PatchFunc) (restore func())

Mock mocks the current patch level and available patches.

Types

type PatchFunc

type PatchFunc func(s *state.State) error

Jump to

Keyboard shortcuts

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