Documentation ¶
Index ¶
- type RawBody
- type TriggerConnector
- func (r *TriggerConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (r *TriggerConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (r *TriggerConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (r *TriggerConnector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (r *TriggerConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type TriggerTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TriggerConnector ¶
type TriggerConnector struct {
Action TriggerTemplate
}
func (*TriggerConnector) GetMetaInfo ¶
func (r *TriggerConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
AI Agent have no meta info
func (*TriggerConnector) Run ¶
func (r *TriggerConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, rawActionOptions map[string]interface{}) (common.RuntimeResult, error)
func (*TriggerConnector) TestConnection ¶
func (r *TriggerConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
AI Agent have no test connection method
func (*TriggerConnector) ValidateActionTemplate ¶
func (r *TriggerConnector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*TriggerConnector) ValidateResourceOptions ¶
func (r *TriggerConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
AI Agent have no validate resource options method
type TriggerTemplate ¶
type TriggerTemplate struct { URL string Method string `validate:"oneof=GET POST PUT PATCH DELETE HEAD OPTIONS"` BodyType string `validate:"oneof=none form-data x-www-form-urlencoded raw json binary"` UrlParams []map[string]string Headers []map[string]string Body interface{} `validate:"required_unless=BodyType none"` Cookies []map[string]string }
func (*TriggerTemplate) ReflectBodyToRaw ¶
func (t *TriggerTemplate) ReflectBodyToRaw() *RawBody
Click to show internal directories.
Click to hide internal directories.