Help us shape the future of Go! Take the 2026 Go Developer Survey

opensearch

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialDataSource

func NewCredentialDataSource() datasource.DataSource

NewCredentialDataSource is a helper function to simplify the provider implementation.

func NewCredentialResource

func NewCredentialResource() resource.Resource

NewCredentialResource is a helper function to simplify the provider implementation.

Types

type DataSourceModel added in v0.100.0

type DataSourceModel struct {
	Id           types.String `tfsdk:"id"` // needed by TF
	CredentialId types.String `tfsdk:"credential_id"`
	InstanceId   types.String `tfsdk:"instance_id"`
	ProjectId    types.String `tfsdk:"project_id"`
	Host         types.String `tfsdk:"host"`
	Hosts        types.List   `tfsdk:"hosts"`
	Password     types.String `tfsdk:"password"`
	Port         types.Int32  `tfsdk:"port"`
	Scheme       types.String `tfsdk:"scheme"`
	Uri          types.String `tfsdk:"uri"`
	Username     types.String `tfsdk:"username"`
	Region       types.String `tfsdk:"region"`
}

type Model

type Model struct {
	Id           types.String `tfsdk:"id"` // needed by TF
	CredentialId types.String `tfsdk:"credential_id"`
	InstanceId   types.String `tfsdk:"instance_id"`
	ProjectId    types.String `tfsdk:"project_id"`
	Host         types.String `tfsdk:"host"`
	Hosts        types.List   `tfsdk:"hosts"`
	Password     types.String `tfsdk:"password"`
	Port         types.Int32  `tfsdk:"port"`
	Scheme       types.String `tfsdk:"scheme"`
	Uri          types.String `tfsdk:"uri"`
	Username     types.String `tfsdk:"username"`
	// RotateWhenChanged is a map of arbitrary key/value pairs that will force
	// recreation of the resource when they change, enabling resource rotation based on
	// external conditions such as a rotating timestamp. Changing this forces a new
	// resource to be created.
	RotateWhenChanged types.Map    `tfsdk:"rotate_when_changed"`
	Region            types.String `tfsdk:"region"`
}

Jump to

Keyboard shortcuts

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