Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Add(Serviceable) (Serviceable, error)
Get(MatchDefinition) ([]Serviceable, error)
Remove(Serviceable)
Validate(serviceables []Serviceable, branch string, tns tns.Client) error
Close()
}
type Function ¶
type Function interface {
// Instantiate creates a Function instance for the given Function
Instantiate(ctx FunctionContext, branch, commit string) (sdk FunctionInstance, runtime vm.Runtime, sdkPlugin interface{}, err error)
}
type FunctionContext ¶
type FunctionContext struct {
Config structureSpec.Function
Project string
Application string
}
FunctionContext wraps the methods used for interacting with a WASM function.
type FunctionInstance ¶
type MatchDefinition ¶
type ServiceComponent ¶
type ServiceComponent interface {
substrate.Service
CheckTns(MatchDefinition) ([]Serviceable, error)
Cache() Cache
}
type Serviceable ¶
type Serviceable interface {
Match(MatchDefinition) matcherSpec.Index
Validate(MatchDefinition) error
Project() (cid.Cid, error)
Commit() string
Matcher() MatchDefinition
Id() string
Ready() error
Close()
Service() ServiceComponent
}
Click to show internal directories.
Click to hide internal directories.