config

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package config provides types and functions used for specifying the tool settings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Version defines the configuration version.
	Version int `toml:"version"`
	// Schema defines the schema resources configuration.
	Schema SchemaConfig `toml:"schema"`
}

Config defines the tool configuration.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig loads configuration from the provided path.

type SchemaConfig

type SchemaConfig struct {
	Directory string   `toml:"directory"`
	Sequence  []string `toml:"sequence"`
}

SchemaConfig defines the schema migration resources configurations.

Jump to

Keyboard shortcuts

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