config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoBundle

type RepoBundle struct {
	TargetDir string           `yaml:"target"`
	Sources   []RepoSyncSource `yaml:"sources"`
}

type RepoBundleOptions

type RepoBundleOptions struct {
	SourcePrefix string   `yaml:"source-prefix"`
	TargetPrefix string   `yaml:"target-prefix"`
	Extensions   []string `yaml:"extensions"`
}

type RepoSyncAuth added in v0.2.0

type RepoSyncAuth struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type RepoSyncConfig

type RepoSyncConfig struct {
	Sources []RepoSyncSource      `yaml:"sources"`
	Bundle  map[string]RepoBundle `yaml:"bundle"`
}

func LoadConfig

func LoadConfig(file string) (*RepoSyncConfig, error)

type RepoSyncSource

type RepoSyncSource struct {
	Url       string            `yaml:"url"`
	Ref       string            `yaml:"ref"`
	Group     []string          `yaml:"group"`
	TargetDir string            `yaml:"target"`
	Bundle    RepoBundleOptions `yaml:"bundle"`
	Auth      RepoSyncAuth      `yaml:"auth"`
}

Jump to

Keyboard shortcuts

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