file

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStateFromFile

func GetStateFromFile(filename string) (*state.KongState, error)

GetStateFromFile reads in a file with filename and constructs a state. It will return an error if the file representation is invalid or if there is any error during processing. All entities without an ID will get a `placeholder-{iota}` ID assigned to them.

func KongStateToFile

func KongStateToFile(kongState *state.KongState, filename string) error

KongStateToFile writes a state object to file with filename. It will omit timestamps and IDs while writing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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