Documentation
¶
Index ¶
Constants ¶
View Source
const ( CORECTL_DIR = ".config" CORECTL_CONFIG = "corectl.yaml" )
Variables ¶
This section is empty.
Functions ¶
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"` } `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 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.