Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionRunner ¶
type FunctionRunner interface { // Run method accepts resourceList in wireformat and returns resourceList in wire format. Run(r io.Reader, w io.Writer) error }
FunctionRunner knows how to run a function.
type FunctionRuntime ¶
type FunctionRuntime interface {
GetRunner(ctx context.Context, fn *v1.Function) (FunctionRunner, error)
}
FunctionRuntime provides a way to obtain a function runner to be used for a given function configuration. If the function is not found, this should return an error that includes a NotFoundError in the chain.
type MultiRuntime ¶
type MultiRuntime struct {
// contains filtered or unexported fields
}
MultiRuntime is a compound FunctionRuntime that will use the first available runner.
func NewMultiRuntime ¶
func NewMultiRuntime(runtimes []FunctionRuntime) *MultiRuntime
NewMultiRuntime builds a MultiRuntime.
func (*MultiRuntime) Add ¶
func (r *MultiRuntime) Add(runtime FunctionRuntime)
Add adds the provided runtime to the end of the MultiRuntime list.
func (*MultiRuntime) GetRunner ¶
func (r *MultiRuntime) GetRunner(ctx context.Context, fn *v1.Function) (FunctionRunner, error)
GetRunner implements FunctionRuntime
type NotFoundError ¶
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type RenderOptions ¶
type RenderOptions struct { PkgPath string Runtime FunctionRuntime }
type Renderer ¶
type Renderer interface {
Render(ctx context.Context, pkg filesys.FileSystem, opts RenderOptions) (*fnresult.ResultList, error)
}
Click to show internal directories.
Click to hide internal directories.