Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
standalone.RunConfig `yaml:",inline"`
AppDirPath string `yaml:"appDirPath"`
AppLogFileName string
DaprdLogFileName string
AppLogWriteCloser io.WriteCloser
DaprdLogWriteCloser io.WriteCloser
}
App represents the configuration options for the apps in the run file.
func (*App) CloseAppLogFile ¶
func (*App) CloseDaprdLogFile ¶
func (*App) CreateAppLogFile ¶
CreateAppLogFile creates the log file, sets internal file handle and returns error if any.
func (*App) CreateDaprdLogFile ¶
CreateDaprdLogFile creates the log file, sets internal file handle and returns error if any.
func (*App) GetLogsDir ¶
type Common ¶
type Common struct {
}
Common represents the configuration options for the common section in the run file.
type RunFileConfig ¶
type RunFileConfig struct {
Common Common `yaml:"common"`
Apps []App `yaml:"apps"`
Version int `yaml:"version"`
Name string `yaml:"name,omitempty"`
}
RunFileConfig represents the complete configuration options for the run file. It is meant to be used with - "dapr run --run-file <path-to-run-file>" command.
func (*RunFileConfig) GetApps ¶
func (a *RunFileConfig) GetApps(runFilePath string) ([]App, error)
GetApps orchestrates the parsing of supplied run file, validating fields and consolidating SharedRunConfig for the apps. It returns a list of apps with the merged values for the SharedRunConfig from common section of the YAML file.