configuration

package
v0.0.0-...-605001f Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: EUPL-1.2 Imports: 3 Imported by: 0

Documentation

Overview

Package configuration handles the configuration functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	GentooStage Definition            `toml:"gentoo-staging"`
	Fixups      Definition            `toml:"kit-fixups"`
	Ports       Definition            `toml:"ports"`
	Liguros     Definition            `toml:"liguros-repo"`
	Repo        map[string]Definition `toml:"repo"`
}

Configuration contains the Liguros configuration

func ReadProgConfig

func ReadProgConfig(filename, filepath string) Configuration

ReadProgConfig Reads configuration file and returns content, with default values for entities not set.

type Copying

type Copying struct {
	Source      string `toml:"source"`
	Destination string `toml:"dest,omitempty"`
}

Copying defines the structure for Copyfiles

type Definition

type Definition struct {
	Reference plumbing.ReferenceName `toml:"reference"`
	Copyfiles []Copying              `toml:"copyfiles,omitempty"`
	Eclasses  []string               `toml:"eclasses,omitempty"`
	Filter    []string               `toml:"filter,omitempty"`
	Select    []string               `toml:"select,omitempty"`
	URL       string                 `toml:"URL"`
}

Definition defines the internal structure

Jump to

Keyboard shortcuts

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