Documentation
¶
Index ¶
Constants ¶
View Source
const BASEURL_PATTERN string = `([\\/]|([\\/][a-zA-Z]|[\\/][a-zA-Z][a-zA-Z0-9_-]*[a-zA-Z0-9])+)?`
View Source
const BLANK = ""
View Source
const RESOURCE_NAME_PATTERN string = `[a-zA-Z][a-zA-Z0-9_-]*`
View Source
const TIMEOUT_PATTERN string = `([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?([0-9]+[uµ]s)?([0-9]+ns)?`
View Source
const VERSION_PATTERN string = `[v]?(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Version string `json:"version"`
Agent *configAgent `json:"agent"`
Main *invokers.CommandEntrypoint `json:"main-resource"`
Resources map[string]invokers.CommandEntrypoint `json:"resources"`
Settings map[string]interface{} `json:"settings"`
SettingsFormat *string `json:"settings-format"`
HttpServer *configHttpServer `json:"http-server"`
}
func (*Configuration) GetAgent ¶ added in v1.0.7
func (c *Configuration) GetAgent() *configAgent
func (*Configuration) GetHttpServer ¶ added in v1.0.7
func (c *Configuration) GetHttpServer() *configHttpServer
type Locator ¶ added in v1.0.4
type Locator struct{}
func NewLocator ¶ added in v1.0.4
func NewLocator() *Locator
type Manager ¶ added in v1.0.4
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v1.0.4
func NewManager(options ManagerOptions) *Manager
func (*Manager) Load ¶ added in v1.0.4
func (m *Manager) Load() (cfg *Configuration, result ValidationResult, err error)
type ManagerOptions ¶ added in v1.0.7
type ValidationResult ¶ added in v1.0.4
type ValidationResult interface {
Valid() bool
Errors() []gojsonschema.ResultError
}
type Validator ¶ added in v1.0.4
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶ added in v1.0.4
func NewValidator() *Validator
func (*Validator) Validate ¶ added in v1.0.4
func (v *Validator) Validate(cfg *Configuration) (ValidationResult, error)
Click to show internal directories.
Click to hide internal directories.