Documentation
¶
Index ¶
- type Cfg
- func (self *Cfg) AddFlow(flow *app.Flow) error
- func (self *Cfg) GetConfigDir() string
- func (self *Cfg) GetFlow(name string) (*app.Flow, bool)
- func (self *Cfg) GetTotalSteps() int
- func (self *Cfg) RemoveFlow(flowName string) error
- func (self *Cfg) Save() error
- func (self *Cfg) UpdateFlow(flow *app.Flow) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
Version string `json:"version"`
ProjectName string `json:"projectName"`
BaseUrl string `json:"baseUrl"`
BeforeRun []string `json:"beforeRun"`
Flows []*app.Flow `json:"flows"`
AfterRun []string `json:"afterRun"`
// contains filtered or unexported fields
}
func LoadConfig ¶
func NewDefaultConfig ¶
func (*Cfg) GetConfigDir ¶
GetConfigDir returns the directory containing the config file. Used for resolving relative file paths in file uploads.
func (*Cfg) GetFlow ¶
GetFlow returns a pointer to the named flow with a boolean 'ok' if it's found.
func (*Cfg) GetTotalSteps ¶
func (*Cfg) RemoveFlow ¶
Click to show internal directories.
Click to hide internal directories.