config

package
v0.0.0-...-1661e1d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 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 {
	Token string `json:"token"`
}

type Config

type Config struct {
	Sites []Site `json:"sites"`
}

func Load

func Load(file string) (Config, error)

type RepoCoordicate

type RepoCoordicate struct {
	Org  string `json:"org"`
	Repo string `json:"repo"`
}

type Site

type Site struct {
	Type     `json:"type"`
	Address  string `json:"address"`
	Auth     `json:"auth"`
	Includes []RepoCoordicate `json:"includes"`
	Excludes []RepoCoordicate `json:"excludes"`
}

type Type

type Type string
const (
	TypeGitHub Type = "github"
	TypeGitLab Type = "gitlab"
)

Jump to

Keyboard shortcuts

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