config

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Method      string `yaml:"method"`
	SourceToken string `yaml:"source_token"`
	TargetToken string `yaml:"target_token"`
}

AuthConfig holds authentication settings.

type Config

type Config struct {
	Source         SourceConfig  `yaml:"source"`
	Target         TargetConfig  `yaml:"target"`
	Auth           AuthConfig    `yaml:"auth"`
	Copy           CopyConfig    `yaml:"copy"`
	Verify         VerifyConfig  `yaml:"verify"`
	Report         ReportConfig  `yaml:"report"`
	Exclude        ExcludeConfig `yaml:"exclude"`
	LFS            bool          `yaml:"lfs"`
	Force          bool          `yaml:"force"`
	CodeOnly       bool          `yaml:"code_only"`
	NonInteractive bool          `yaml:"non_interactive"`
	Verbose        bool          `yaml:"verbose"`
}

Config represents the YAML configuration file.

func Load

func Load(path string) (*Config, error)

Load reads and parses a YAML config file.

type CopyConfig

type CopyConfig struct {
	Issues       bool `yaml:"issues"`
	PullRequests bool `yaml:"pull_requests"`
	Wiki         bool `yaml:"wiki"`
	AllMetadata  bool `yaml:"all_metadata"`
}

CopyConfig holds copy settings.

type ExcludeConfig

type ExcludeConfig struct {
	Workflows bool     `yaml:"workflows"` // exclude .github/workflows
	Actions   bool     `yaml:"actions"`   // exclude .github/actions
	Copilot   bool     `yaml:"copilot"`   // exclude .github/copilot-instructions.md, .github/copilot/
	GitHub    bool     `yaml:"github"`    // exclude entire .github directory
	Paths     []string `yaml:"paths"`     // additional paths to exclude
}

ExcludeConfig holds path exclusion settings.

type ReportConfig

type ReportConfig struct {
	Path    string `yaml:"path"`
	SignKey string `yaml:"sign_key"`
}

ReportConfig holds report settings.

type SourceConfig

type SourceConfig struct {
	Repo   string `yaml:"repo"`
	Host   string `yaml:"host"`
	Public bool   `yaml:"public"`
}

SourceConfig holds source repository settings.

type TargetConfig

type TargetConfig struct {
	Org        string `yaml:"org"`
	Host       string `yaml:"host"`
	Name       string `yaml:"name"`
	Visibility string `yaml:"visibility"`
}

TargetConfig holds target repository settings.

type VerifyConfig

type VerifyConfig struct {
	Skip       bool   `yaml:"skip"`
	QuickMode  bool   `yaml:"quick"`
	VerifyOnly bool   `yaml:"verify_only"`
	Since      string `yaml:"since"`
}

VerifyConfig holds verification settings.

Jump to

Keyboard shortcuts

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