Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
PathExists is used to check if a local path exists.
Types ¶
type CacheConfig ¶
CacheConfig is the data structure for configuring the go-cache.
type Config ¶
type Config struct { Plugins PluginsConfig `json:"plugins"` Logging LoggingConfig `json:"logging"` Cache CacheConfig `json:"cache"` Git GitConfig `json:"git"` HTTP HTTPConfig `json:"http"` Tests Tests `json:"tests"` }
Config is the data structure for chick base configurations.
func ReadConfig ¶
ReadConfig reads the chicka config file into a data structure.
type Controller ¶
type Controller struct { Ctx context.Context Cancel context.CancelFunc }
Controller is a struct for managing executions.
func NewController ¶
func NewController() *Controller
NewController sets up the controller for managing tests.
func (*Controller) Reset ¶
func (ctrl *Controller) Reset()
Reset sets a new context with cancel support into the controller.
type ErrorResult ¶
ErrorResult is the struct used to store error information.
type ErrorSvc ¶
ErrorSvc is the interface to use for handling errors.
func NewErrorSvc ¶
NewErrorSvc returns the error service interface.
type GitConfig ¶
type GitConfig struct {
URL string `json:"url"`
}
GitConfig is the data structure for configuring the plugins git repo.
type HTTPConfig ¶
HTTPConfig is the data struct for configuring HTTP services.
type LoggerSvc ¶
type LoggerSvc interface { Send(result Result) Listen() }
LoggerSvc is the interface for managing logging functions.
func NewLoggerSvc ¶
NewLoggerSvc returns a LoggerSvc interface.
type LoggingConfig ¶
type LoggingConfig struct {
Path string `json:"path"`
}
LoggingConfig is the data structure for configuring logging.
type PluginsConfig ¶
type PluginsConfig struct {
Path string `json:"path"`
}
PluginsConfig is the data structure for configuring plugins.
type Result ¶
type Result struct { Command string `json:"command"` Expect bool `json:"expect"` Result bool `json:"result"` Data interface{} `json:"data"` Description string `json:"description"` }
Result is a struct for storing plugin execution results.