Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type ConfigOpt
- type ConfigOpts
- type ConfigPersistent
- func (c *ConfigPersistent) ConfigFileGlob() string
- func (c *ConfigPersistent) ConfigFileName(intentName string) string
- func (c *ConfigPersistent) ExpectSchemaLoadsSuccessful() bool
- func (c *ConfigPersistent) SchemaDefinitionFilePath() string
- func (c *ConfigPersistent) TargetBasePath() string
- func (c *ConfigPersistent) TargetName() string
- func (c *ConfigPersistent) TargetPath() string
- type ConfigPersistentOpt
- type ConfigPersistentOpts
Constants ¶
View Source
const ( SchemaFileName = "schema.json" IntentFileName = "intent-%s.json" IntentFileGlob = "intent-*.json" )
Variables ¶
View Source
var (
ErrTargetUndefined = fmt.Errorf("target not defined")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) DownloadPath ¶
func (*Config) GetSchemaStore ¶
func (*Config) SchemaPathCleanup ¶
func (*Config) SchemaStorePath ¶
func (*Config) SchemasPath ¶
func (*Config) Validation ¶
func (c *Config) Validation() *config.Validation
type ConfigOpt ¶
func WithCachePath ¶
func WithLogLevel ¶
func WithSchemaPathCleanup ¶
func WithValidation ¶
func WithValidation(validation *config.Validation) ConfigOpt
type ConfigOpts ¶
type ConfigOpts []ConfigOpt
type ConfigPersistent ¶
type ConfigPersistent struct {
*Config
// contains filtered or unexported fields
}
func NewConfigPersistent ¶
func NewConfigPersistent(opts ConfigOpts, optsP ConfigPersistentOpts) (*ConfigPersistent, error)
func (*ConfigPersistent) ConfigFileGlob ¶
func (c *ConfigPersistent) ConfigFileGlob() string
func (*ConfigPersistent) ConfigFileName ¶
func (c *ConfigPersistent) ConfigFileName(intentName string) string
func (*ConfigPersistent) ExpectSchemaLoadsSuccessful ¶
func (c *ConfigPersistent) ExpectSchemaLoadsSuccessful() bool
func (*ConfigPersistent) SchemaDefinitionFilePath ¶
func (c *ConfigPersistent) SchemaDefinitionFilePath() string
func (*ConfigPersistent) TargetBasePath ¶
func (c *ConfigPersistent) TargetBasePath() string
func (*ConfigPersistent) TargetName ¶
func (c *ConfigPersistent) TargetName() string
func (*ConfigPersistent) TargetPath ¶
func (c *ConfigPersistent) TargetPath() string
type ConfigPersistentOpt ¶
type ConfigPersistentOpt func(c *ConfigPersistent) error
func WithSchemaDefintionFilePath ¶
func WithSchemaDefintionFilePath(schemaDefinitionFile string) ConfigPersistentOpt
func WithSuccessfullSchemaLoad ¶
func WithSuccessfullSchemaLoad() ConfigPersistentOpt
func WithTargetName ¶
func WithTargetName(targetName string) ConfigPersistentOpt
func WithTargetsBasePath ¶
func WithTargetsBasePath(targetBasePath string) ConfigPersistentOpt
type ConfigPersistentOpts ¶
type ConfigPersistentOpts []ConfigPersistentOpt
Click to show internal directories.
Click to hide internal directories.