storage

package
v0.0.0-...-865ae8c Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drain

func Drain(ctx context.Context, cfg *DrainCfg, logger log.Logger, m prometheus.Registerer, gitlabPAT string) error

Types

type DrainCfg

type DrainCfg struct {
	GitLab struct {
		ApiURL string `yaml:"api_url"`
	}
	Storage StorageCfg    `yaml:"storage"`
	DryRun  bool          `yaml:"dry_run"`
	Group   RepositoryCfg `yaml:"group"`
	Snippet RepositoryCfg `yaml:"snippet"`
	Project RepositoryCfg `yaml:"project"`
}

type RepositoryCfg

type RepositoryCfg struct {
	Concurrency            int64         `yaml:"concurrency"`
	MoveTimeout            time.Duration `yaml:"move_timeout"`
	MoveStatusUpdate       time.Duration `yaml:"move_status_update"`
	SkipRepositories       []int         `yaml:"skip_repositories"`
	SkipPooledRepositories bool          `yaml:"skip_pooled_repositories"`
	DestinationStorage     string        `yaml:"destination_storage"`
}

type StorageCfg

type StorageCfg struct {
	Move        []string `yaml:"move"`
	Concurrency int64    `yaml:"concurrency"`
}

Jump to

Keyboard shortcuts

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