typedef

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeRepo = "repo"
	TypeUser = "user"
	TypeOrg  = "org"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiStorage

type MultiStorage struct {
	Storage         `mapstructure:",squash"`
	Endpoint        string `yaml:"endpoint"`
	Bucket          string `yaml:"bucket"`
	Region          string `yaml:"region"`
	AccessKeyID     string `yaml:"accessKeyID"`
	SecretAccessKey string `yaml:"secretAccessKey"`
}

type Repository

type Repository struct {
	Name     string   `yaml:"name"`
	URL      string   `yaml:"url"`
	Cron     string   `yaml:"cron"`
	Storage  []string `yaml:"storage"`
	UseCache bool     `yaml:"useCache"`
	Type     string   `yaml:"type"` // repo, user, org (default: repo)
	OrgName  string   `yaml:"orgName"`
}

func (*Repository) GetType added in v0.1.2

func (r *Repository) GetType() string

type Storage

type Storage struct {
	Name string `yaml:"name"`
	Type string `yaml:"type"`
	Path string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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