fileio

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package fileio supports reading and writing config files to the filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHalConfig

func ParseHalConfig(halPath string) (*config.Hal, error)

ParseHalConfig reads the YAML file at halPath parses it into a *config.Hal. The config.Hal is validated; if there are any errors, they will be returned in error and *config.Hal will be nil.

func WriteConfigs

func WriteConfigs(hal *config.Hal, dir string) error

WriteConfigs generates the service configs from the supplied hal, and writes them to the directory dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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