config

package
v0.0.0-...-1849458 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	URL      string `yaml:"url"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Insecure bool   `yaml:"insecure"`
}

APIConfig contains all settings to communicate with the oVirt API

type Config

type Config struct {
	Keep        int        `yaml:"keep"`
	Description string     `yaml:"description"`
	Cluster     string     `yaml:"cluster"`
	API         *APIConfig `yaml:"api"`
	Includes    []string   `yaml:"includes"`
	Excludes    []string   `yaml:"excludes"`
}

Config represents the configuration for the application

func Load

func Load(reader io.Reader) (*Config, error)

Load reads config from reader

Jump to

Keyboard shortcuts

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