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]) (*git.LocalRepository, error)
- type Config
- type P2PStageConfig
- type Parameter
Constants ¶
View Source
const ( CORECTL_DIR = ".config" CORECTL_CONFIG = "corectl.yaml" )
Variables ¶
This section is empty.
Functions ¶
func RegisterBoolParameterAsFlag ¶ added in v0.24.0
func ResetConfigRepositoryState ¶
func ResetConfigRepositoryState(repositoryParam *Parameter[string]) (*git.LocalRepository, error)
Types ¶
type Config ¶
type Config struct { GitHub struct { Token Parameter[string] `yaml:"token"` Organization Parameter[string] `yaml:"organization"` } `yaml:"github"` Repositories struct { CPlatform Parameter[string] `yaml:"cplatform"` Templates Parameter[string] `yaml:"templates"` AllowDirty Parameter[bool] `yaml:"allow-dirty"` } `yaml:"repositories"` P2P struct { FastFeedback P2PStageConfig `yaml:"fast-feedback"` ExtendedTest P2PStageConfig `yaml:"extended-test"` Prod P2PStageConfig `yaml:"prod"` } `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 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.