Documentation ¶
Index ¶
- func GetFactory() model.ConnectorFactory
- type AzureLogin
- type Connector
- func (c *Connector) CreateLogin(ctx context.Context, ...) error
- func (c *Connector) CreateUser(ctx context.Context, database string, user *model.User) error
- func (c *Connector) DeleteLogin(ctx context.Context, name string) error
- func (c *Connector) DeleteUser(ctx context.Context, database, username string) error
- func (c *Connector) ExecContext(ctx context.Context, command string, args ...interface{}) error
- func (c *Connector) GetLogin(ctx context.Context, name string) (*model.Login, error)
- func (c *Connector) GetUser(ctx context.Context, database, username string) (*model.User, error)
- func (c *Connector) PingContext(ctx context.Context) error
- func (c *Connector) QueryContext(ctx context.Context, query string, scanner func(*sql.Rows) error, ...) error
- func (c *Connector) QueryRowContext(ctx context.Context, query string, scanner func(*sql.Row) error, ...) error
- func (c *Connector) UpdateLogin(ctx context.Context, name, password, defaultDatabase, defaultLanguage string) error
- func (c *Connector) UpdateUser(ctx context.Context, database string, user *model.User) error
- type FedauthMSI
- type LoginUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFactory ¶
func GetFactory() model.ConnectorFactory
Types ¶
type AzureLogin ¶
type Connector ¶
type Connector struct { Host string `json:"host"` Port string `json:"port"` Database string `json:"database"` Login *LoginUser AzureLogin *AzureLogin FedauthMSI *FedauthMSI Timeout time.Duration `json:"timeout,omitempty"` Token string }
func (*Connector) CreateLogin ¶
func (*Connector) CreateUser ¶
func (*Connector) DeleteLogin ¶
func (*Connector) DeleteUser ¶
func (*Connector) ExecContext ¶
Execute an SQL statement and ignore the results
func (*Connector) QueryContext ¶
func (*Connector) QueryRowContext ¶
func (*Connector) UpdateLogin ¶
type FedauthMSI ¶ added in v0.2.6
type FedauthMSI struct {
UserID string `json:"user_id,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.