util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterConfigForV0AndV1Cluster

func ClusterConfigForV0AndV1Cluster() *spv1.ClusterConfig

ClusterConfigForV0AndV1Cluster returns a ClusterConfig with values that match the configuration hard-coded for clusters created with V0 and V1 state

func StateV1FromStateV0

func StateV1FromStateV0(stateV0 *v0.State) *v1.State

StateV1FromStateV0 migrates state from V0 to V1

func StateV2FromStateV1

func StateV2FromStateV1(stateV1 *v1.State) *v2.State

StateV2FromStateV1 migrates state from V1 to V2

func Version

func Version(r io.Reader) (int, error)

Version returns the state version

func VersionFromFile

func VersionFromFile(filename string) (int, error)

VersionFromFile returns the state version of the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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