mysql

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLConnector

type MySQLConnector struct {
	Resource MySQLOptions
	Action   MySQLQuery
}

func (*MySQLConnector) GetMetaInfo

func (m *MySQLConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)

func (*MySQLConnector) Run

func (m *MySQLConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}) (common.RuntimeResult, error)

func (*MySQLConnector) TestConnection

func (m *MySQLConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)

func (*MySQLConnector) ValidateActionOptions

func (m *MySQLConnector) ValidateActionOptions(actionOptions map[string]interface{}) (common.ValidateResult, error)

func (*MySQLConnector) ValidateResourceOptions

func (m *MySQLConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)

type MySQLOptions

type MySQLOptions struct {
	Host             string     `validate:"required"`
	Port             string     `validate:"required"`
	DatabaseName     string     `validate:"required"`
	DatabaseUsername string     `validate:"required"`
	DatabasePassword string     `validate:"required"`
	SSL              SSLOptions `validate:"required,omitempty"`
}

type MySQLQuery

type MySQLQuery struct {
	Mode  string `validate:"required,oneof=gui sql"`
	Query string
}

type SSLOptions

type SSLOptions struct {
	SSL        bool
	ServerCert string `validate:"required_unless=SSL false"`
	ClientKey  string
	ClientCert string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL