Documentation ¶
Index ¶
- Constants
- type Action
- type Connector
- func (h *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (h *Connector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (h *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (h *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (h *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type Inputs
- type Pairs
- type Parameters
- type Resource
Constants ¶
View Source
const ( METHOD_GET = "GET" METHOD_POST = "POST" METHOD_PUT = "PUT" METHOD_DELETE = "DELETE" METHOD_PATCH = "PATCH" BODY_NONE = "none" BODY_RAW = "raw" BODY_BINARY = "binary" BODY_FORM = "form-data" BODY_XWFU = "x-www-form-urlencoded" AUTH_NONE = "none" AUTH_BASIC = "basic" AUTH_BEARER = "bearer" HF_API_ADDRESS = "https://api-inference.huggingface.co/models/" INPUT_PAIRS_MODE = "pairs" INPUT_TEXT_MODE = "text" INPUT_JSON_MODE = "json" INPUT_BINARY_MODE = "binary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { ModelID string Params Parameters }
type Connector ¶
func (*Connector) GetMetaInfo ¶
func (h *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
func (*Connector) TestConnection ¶
func (h *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
func (*Connector) ValidateActionTemplate ¶
func (h *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*Connector) ValidateResourceOptions ¶
func (h *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
type Parameters ¶
Click to show internal directories.
Click to hide internal directories.