Documentation ¶
Index ¶
- Constants
- func Path() (string, error)
- func RegisterBoolParameterAsFlag(p *Parameter[bool], fs *pflag.FlagSet)
- func RegisterStringParameterAsFlag(p *Parameter[string], fs *pflag.FlagSet)
- func ResetConfigRepositoryState(repositoryParam *Parameter[string], dryRun bool) (*git.LocalRepository, error)
- type Config
- type GitHubConfig
- type P2PConfig
- type P2PStageConfig
- type Parameter
- type RepositoriesConfig
Constants ¶
View Source
const ( CORECTL_DIR = ".config" CORECTL_CONFIG = "corectl.yaml" )
Variables ¶
This section is empty.
Functions ¶
func RegisterBoolParameterAsFlag ¶ added in v0.24.0
Types ¶
type Config ¶
type Config struct { GitHub GitHubConfig `yaml:"github"` Repositories RepositoriesConfig `yaml:"repositories"` P2P P2PConfig `yaml:"p2p"` // contains filtered or unexported fields }
func DiscoverConfig ¶
func NewTestPersistedConfig ¶ added in v0.24.0
func NewTestPersistedConfig() *Config
func ReadConfig ¶
func (*Config) IsPersisted ¶
type GitHubConfig ¶ added in v0.25.2
type P2PConfig ¶ added in v0.25.2
type P2PConfig struct { FastFeedback P2PStageConfig `yaml:"fast-feedback"` ExtendedTest P2PStageConfig `yaml:"extended-test"` Prod P2PStageConfig `yaml:"prod"` }
type P2PStageConfig ¶
type Parameter ¶
type Parameter[V interface{}] struct { Value V // contains filtered or unexported fields }
func (Parameter[V]) MarshalYAML ¶
MarshalYAML It's important to use here value receiver, since we define parameters as values (not references) in configuration
func (*Parameter[V]) UnmarshalYAML ¶
UnmarshalYAML It's important to use reference receiver, so we modify the actual Parameter struct and not a local copy
Click to show internal directories.
Click to hide internal directories.