database

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBA_PASSWORD_CHANGE_UNSUPPORTED_MSG = "Configured DBA password was changed and the server does not support updating the DBA password. " +
		"Revert the configured DBA password to the value in the Terraform state and retry."
)

Variables

This section is empty.

Functions

func GetDatabaseDataSourceAttributes added in v1.1.0

func GetDatabaseDataSourceAttributes() (map[string]schema.Attribute, error)

func GetDatabaseResourceAttributes added in v1.1.0

func GetDatabaseResourceAttributes() (map[string]schema.Attribute, error)

func GetDatabasesDataSourceSchema

func GetDatabasesDataSourceSchema() *schema.Schema

GetDatabasesDataSourceSchema returns the schema for the databases (plural) data source. This has to be provided explicitly because there is no schema in the OpenAPI spec for the REST API that corresponds to it.

func IsDbaPasswordUpdateUnsupportedError added in v1.1.0

func IsDbaPasswordUpdateUnsupportedError(resp *http.Response, err error) bool

func NewDatabaseDataSource

func NewDatabaseDataSource() datasource.DataSource

func NewDatabaseDataSourceState

func NewDatabaseDataSourceState() framework.DataSourceState

func NewDatabaseResource

func NewDatabaseResource() resource.Resource

func NewDatabaseResourceState

func NewDatabaseResourceState() framework.ResourceState

func NewDatabasesDataSource

func NewDatabasesDataSource() datasource.DataSource

func NewDatabasesDataSourceState

func NewDatabasesDataSourceState() framework.DataSourceState

Types

type DatabaseDataSourceModel

type DatabaseDataSourceModel openapi.DatabaseModel

func (*DatabaseDataSourceModel) Read

type DatabaseFilterModel

type DatabaseFilterModel struct {
	Organization *string  `tfsdk:"organization" hcl:"organization" cty:"organization"`
	Project      *string  `tfsdk:"project" hcl:"project" cty:"project"`
	Labels       []string `tfsdk:"labels" hcl:"labels" cty:"labels"`
}

type DatabaseNameModel

type DatabaseNameModel struct {
	Organization string `tfsdk:"organization" hcl:"organization" cty:"organization"`
	Project      string `tfsdk:"project" hcl:"project" cty:"project"`
	Name         string `tfsdk:"name" hcl:"name" cty:"name"`
}

func GetDatabaseDataSourceResponse

func GetDatabaseDataSourceResponse(databases []string) ([]DatabaseNameModel, error)

type DatabaseResourceModel

type DatabaseResourceModel openapi.DatabaseCreateUpdateModel

func (*DatabaseResourceModel) CheckReady

func (state *DatabaseResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error

func (*DatabaseResourceModel) Create

func (*DatabaseResourceModel) DbaPasswordMatches added in v1.1.0

func (state *DatabaseResourceModel) DbaPasswordMatches(other *DatabaseResourceModel) bool

func (*DatabaseResourceModel) Delete

func (*DatabaseResourceModel) GetEventPath added in v1.3.0

func (state *DatabaseResourceModel) GetEventPath() string

func (*DatabaseResourceModel) Read

func (*DatabaseResourceModel) Reset

func (state *DatabaseResourceModel) Reset()

func (*DatabaseResourceModel) SetId

func (state *DatabaseResourceModel) SetId(id string) error

func (*DatabaseResourceModel) Update

func (state *DatabaseResourceModel) Update(ctx context.Context, client openapi.ClientInterface, currentState framework.ResourceState) error

func (*DatabaseResourceModel) UpdateDbaPassword added in v1.1.0

func (state *DatabaseResourceModel) UpdateDbaPassword(ctx context.Context, client openapi.ClientInterface, target *string) (*http.Response, error)

type DatabasesDataSourceModel

type DatabasesDataSourceModel struct {
	Filter    *DatabaseFilterModel `tfsdk:"filter" hcl:"filter" cty:"filter"`
	Databases []DatabaseNameModel  `tfsdk:"databases" hcl:"databases" cty:"databases"`
}

func (*DatabasesDataSourceModel) Read

Jump to

Keyboard shortcuts

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