Documentation ¶
Index ¶
- func Validator(model FHub) error
- type Build
- type Container
- type FHub
- type Function
- func (f *Function) Unmarshal(field string, value cue.Value) (err error)
- func (f Function) UnmarshalInput(data []byte) (map[string]any, error)
- func (f Function) UnmarshalOutput(data []byte) (map[string]any, error)
- func (f Function) ValidateInput(data []byte) error
- func (f Function) ValidateOutput(data []byte) error
- type Grpc
- type Http
- type Local
- type Parameter
- type Serving
- type Unmarshaler
- type ValidatorCtxValueKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Build ¶
type Container ¶
type FHub ¶
type FHub struct { // Function namespace Name string `validate:"required"` // Function version Version string `validate:"required"` // FHub schema version SpecVersion string `validate:"required"` Build Build Serving Serving Functions map[string]Function `validate:"min=1,dive"` }
func UnmarshalBytes ¶
func UnmarshalFile ¶
func UnmarshalHttp ¶
func UnmarshalString ¶
type Function ¶
type Function struct { Inputs []string `validate:"min=1"` Outputs []string `validate:"min=1"` // contains filtered or unexported fields }
func (Function) UnmarshalInput ¶ added in v0.0.8
func (Function) UnmarshalOutput ¶ added in v0.0.8
func (Function) ValidateInput ¶
func (Function) ValidateOutput ¶
type Parameter ¶ added in v0.0.7
type Parameter struct { Label string // contains filtered or unexported fields }
type Unmarshaler ¶
type ValidatorCtxValueKey ¶
type ValidatorCtxValueKey string
const ValidatorCtxValue ValidatorCtxValueKey = "value"
Click to show internal directories.
Click to hide internal directories.