Documentation ¶
Index ¶
- func Provider() *schema.Provider
- func RedshiftResourceExistsFunc(fn func(*DBConnection, *schema.ResourceData) (bool, error)) func(*schema.ResourceData, interface{}) (bool, error)
- func RedshiftResourceFunc(fn func(*DBConnection, *schema.ResourceData) error) func(*schema.ResourceData, interface{}) error
- func RedshiftResourceRetryOnPQErrors(fn func(*DBConnection, *schema.ResourceData) error) func(*DBConnection, *schema.ResourceData) error
- type Client
- type Config
- type DBConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedshiftResourceExistsFunc ¶
func RedshiftResourceExistsFunc(fn func(*DBConnection, *schema.ResourceData) (bool, error)) func(*schema.ResourceData, interface{}) (bool, error)
func RedshiftResourceFunc ¶
func RedshiftResourceFunc(fn func(*DBConnection, *schema.ResourceData) error) func(*schema.ResourceData, interface{}) error
func RedshiftResourceRetryOnPQErrors ¶
func RedshiftResourceRetryOnPQErrors(fn func(*DBConnection, *schema.ResourceData) error) func(*DBConnection, *schema.ResourceData) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct holding connection string
func (*Client) Connect ¶
func (c *Client) Connect() (*DBConnection, error)
Connect returns a copy to an sql.Open()'ed database connection wrapped in a DBConnection struct. Callers must return their database resources. Use of QueryRow() or Exec() is encouraged. Query() must have their rows.Close()'ed.
type Config ¶
type Config struct { Host string Username string Password string Port int Database string SSLMode string MaxConns int }
Config - provider config
type DBConnection ¶
Source Files ¶
- config.go
- custom_diff.go
- data_source_redshift_database.go
- data_source_redshift_group.go
- data_source_redshift_namespace.go
- data_source_redshift_schema.go
- data_source_redshift_user.go
- helpers.go
- provider.go
- proxy_driver.go
- resource_redshift_database.go
- resource_redshift_datashare.go
- resource_redshift_datashare_privilege.go
- resource_redshift_default_privileges.go
- resource_redshift_grant.go
- resource_redshift_group.go
- resource_redshift_schema.go
- resource_redshift_user.go
- validation.go
Click to show internal directories.
Click to hide internal directories.