Documentation
¶
Overview ¶
Package connector manages the creating and deletion of service bindings to MS SQL Server
Index ¶
- type Connector
- func (c *Connector) CheckDatabaseExists(ctx context.Context, dbName string) (result bool, err error)
- func (c *Connector) CreateBinding(ctx context.Context, username, password string, roles []string) error
- func (c *Connector) DeleteBinding(ctx context.Context, username string) error
- func (c *Connector) ManageObjectReassignment(ctx context.Context, username string) error
- func (c *Connector) ReadBinding(ctx context.Context, username string) (result bool, err error)
- type Encoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) CheckDatabaseExists ¶
func (*Connector) CreateBinding ¶
func (c *Connector) CreateBinding(ctx context.Context, username, password string, roles []string) error
CreateBinding creates the binding user, adds roles and grants permission to execute store procedures It is idempotent.
func (*Connector) DeleteBinding ¶
DeleteBinding drops the binding user. It is idempotent.
func (*Connector) ManageObjectReassignment ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EncodeWithoutDB ¶
Click to show internal directories.
Click to hide internal directories.