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 {
Tenant Parameter[string] `yaml:"tenant"`
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
Click to show internal directories.
Click to hide internal directories.