Documentation ¶
Index ¶
- Constants
- type Action
- type Connector
- func (s *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (s *Connector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (s *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (s *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (s *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type Resource
Constants ¶
View Source
const ( BASIC_AUTH = "basic" KEY_PAIR_AUTH = "key" )
View Source
const ( FIELD_CONTEXT = "context" FIELD_QUERY = "query" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Mode string `validate:"oneof=gui sql sql-safe"` Query string RawQuery string Context map[string]interface{} }
func (*Action) IsSafeMode ¶
func (*Action) SetRawQueryAndContext ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) GetMetaInfo ¶
func (s *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
func (*Connector) TestConnection ¶
func (s *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
func (*Connector) ValidateActionTemplate ¶
func (s *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*Connector) ValidateResourceOptions ¶
func (s *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
Click to show internal directories.
Click to hide internal directories.