config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitHub GitHubConfig `mapstructure:"github"`
	Pull   PullConfig   `mapstructure:"pull"`
}

Config 应用程序配置结构

func LoadWithDefaults

func LoadWithDefaults() (*Config, error)

LoadWithDefaults 从环境变量加载配置

func (*Config) Validate

func (c *Config) Validate() error

Validate 验证配置

type GitHubConfig

type GitHubConfig struct {
	Token    string `mapstructure:"token"`
	Owner    string `mapstructure:"owner"`
	Repo     string `mapstructure:"repo"`
	Workflow string `mapstructure:"workflow"`
}

GitHubConfig GitHub相关配置

type PullConfig

type PullConfig struct {
	SourceRegistry   string `mapstructure:"source_registry"`
	ContainerRuntime string `mapstructure:"container_runtime"`
}

PullConfig Pull命令配置

Jump to

Keyboard shortcuts

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