config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 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 Auth

type Auth struct {
	Type        string            `yaml:"type"`
	Credentials map[string]string `yaml:"credentials"`
}

type Config

type Config struct {
	Repos []Repo `yaml:"repos"`
}

func GetConfig

func GetConfig(cf string) (Config, error)

GetConfig return the unmarshaled yaml configuration

type Directory

type Directory struct {
	Source   string `yaml:"source"`
	Target   string `yaml:"target"`
	Revision string `yaml:"revision"`
}

type Repo

type Repo struct {
	Auth        Auth        `yaml:"auth"`
	Directories []Directory `yaml:"directories"`
	URL         string      `yaml:"url"`
}

Jump to

Keyboard shortcuts

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