Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOTELCollectorVersion string
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶ added in v1.16.0
type Config ¶
type Config struct { BaseConfig `yaml:",inline"` ConcreteHandlers []*HandlerConfig `yaml:"-"` }
func ConfigFromProjectPath ¶ added in v1.4.0
ConfigFromProjectPath - loads the config nitric.yaml file from the project path, defaults to the current working directory
type DockerConfig ¶ added in v1.23.0
type Function ¶
type Function struct { // Parent Project backreference Project *Project // The functions unique name Name string `yaml:"-"` // The location of the function handler Handler string `yaml:"handler"` // The functions type Config *HandlerConfig `yaml:"-"` }
func FunctionFromHandler ¶
func FunctionFromHandler(handlerFile string, config *HandlerConfig) (Function, error)
func (*Function) GetRuntime ¶ added in v1.23.0
type HandlerConfig ¶ added in v1.16.0
type HandlerConfig struct { Type string `yaml:"type" mapstructure:"type"` Match string `yaml:"match" mapstructure:"match"` Docker *DockerConfig `yaml:"docker,omitempty" mapstructure:"docker,omitempty"` }
Click to show internal directories.
Click to hide internal directories.