Documentation
¶
Overview ¶
Package config parses the optional batch YAML configuration and merges it with built-in defaults into a fully-resolved migration plan.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Target Target `yaml:"target"`
Run Run `yaml:"run"`
Defaults Options `yaml:"defaults"`
Jobs []Job `yaml:"jobs"`
}
File is the top-level YAML document.
type Job ¶
type Job struct {
Source SourceSpec `yaml:"source"`
TargetOwner string `yaml:"target_owner"`
Options Options `yaml:",inline"`
}
Job is one migration unit: a source plus per-job option overrides.
type Options ¶
type Options struct {
Issues *bool `yaml:"issues"`
PullRequests *bool `yaml:"pull_requests"`
Labels *bool `yaml:"labels"`
Milestones *bool `yaml:"milestones"`
Releases *bool `yaml:"releases"`
Wiki *bool `yaml:"wiki"`
LFS *bool `yaml:"lfs"`
Mirror *bool `yaml:"mirror"`
Private *bool `yaml:"private"`
MirrorInterval *string `yaml:"mirror_interval"`
}
Options are tri-state migration toggles; a nil pointer means "inherit".
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions is the built-in baseline: content toggles on, LFS/mirror/ private off.
type Run ¶
type Run struct {
Concurrency *int `yaml:"concurrency"`
RateLimit *int `yaml:"rate_limit"`
SkipExisting *bool `yaml:"skip_existing"`
}
Run holds run-level settings shared by every job.
Click to show internal directories.
Click to hide internal directories.