Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatastoreType ¶ added in v0.60.0
type DatastoreType string
DatastoreType represents the type of datastore to use for persisting deployment data.
const ( // DatastoreTypeFile indicates data should be persisted to local JSON files (default behavior). DatastoreTypeFile DatastoreType = "file" // DatastoreTypeCatalog indicates data should be persisted to the remote catalog service. DatastoreTypeCatalog DatastoreType = "catalog" // DatastoreTypeAll indicates data should be persisted to both local JSON files and the remote catalog service. // This is useful to keep backward compatibility during the transition period from file-based to remote catalog. DatastoreTypeAll DatastoreType = "all" )
func (DatastoreType) IsValid ¶ added in v0.60.0
func (d DatastoreType) IsValid() bool
IsValid checks if the DatastoreType is a valid value.
func (DatastoreType) String ¶ added in v0.60.0
func (d DatastoreType) String() string
String returns the string representation of the DatastoreType.
type DomainConfig ¶
type DomainConfig struct {
Environments map[string]Environment `mapstructure:"environments" yaml:"environments"`
Jira *jira.Config `mapstructure:"jira" yaml:"jira"`
}
DomainConfig represents the parsed and validated domain configuration.
func Load ¶
func Load(filePath string) (*DomainConfig, error)
Load loads domain configuration from a YAML file.
type Environment ¶
type Environment struct {
NetworkTypes []string `mapstructure:"network_types" yaml:"network_types"`
Datastore DatastoreType `mapstructure:"datastore" yaml:"datastore"`
}
Environment represents a single environment configuration.
Click to show internal directories.
Click to hide internal directories.