provider

package
v0.0.0-...-f86ded0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExampleDataSource

func NewExampleDataSource() datasource.DataSource

func NewOpenSearchProvider

func NewOpenSearchProvider(version string) func() provider.Provider

func NewPluginSecurityRoleResource

func NewPluginSecurityRoleResource() resource.Resource

func NewPluginSecurityUserResource

func NewPluginSecurityUserResource() resource.Resource

Types

type ExampleDataSource

type ExampleDataSource struct {
	// contains filtered or unexported fields
}

ExampleDataSource defines the data source implementation.

func (*ExampleDataSource) Configure

func (*ExampleDataSource) Metadata

func (*ExampleDataSource) Read

func (*ExampleDataSource) Schema

type ExampleDataSourceModel

type ExampleDataSourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Id                    types.String `tfsdk:"id"`
}

ExampleDataSourceModel describes the data source data model.

type OpenSearchProvider

type OpenSearchProvider struct {
	// contains filtered or unexported fields
}

func (*OpenSearchProvider) Configure

func (*OpenSearchProvider) DataSources

func (p *OpenSearchProvider) DataSources(_ context.Context) []func() datasource.DataSource

func (*OpenSearchProvider) Metadata

func (*OpenSearchProvider) Resources

func (p *OpenSearchProvider) Resources(_ context.Context) []func() resource.Resource

func (*OpenSearchProvider) Schema

type OpenSearchProviderConfig

type OpenSearchProviderConfig struct {
	Addresses types.List `tfsdk:"addresses"`

	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`

	CACert types.String `tfsdk:"ca_cert"`

	RetryOnStatus        types.List  `tfsdk:"retry_on_status"`
	DisableRetry         types.Bool  `tfsdk:"disable_retry"`
	EnableRetryOnTimeout types.Bool  `tfsdk:"enable_retry_on_timeout"`
	MaxRetries           types.Int64 `tfsdk:"max_retries"`

	CompressRequestBody   types.Bool `tfsdk:"compress_request_body"`
	InsecureSkipTLSVerify types.Bool `tfsdk:"insecure_skip_tls_verify"`
	EnableOnRequestCheck  types.Bool `tfsdk:"enable_on_request_check"`
	SkipInitProductCheck  types.Bool `tfsdk:"skip_init_product_check"`

	ClientDebugLogger  types.Object `tfsdk:"client_debug_logger"`
	RequestTraceLogger types.Object `tfsdk:"request_trace_logger"`
}

type OpenSearchProviderConfigClientDebugLogger

type OpenSearchProviderConfigClientDebugLogger struct {
	Enabled types.Bool `tfsdk:"enabled"`
}

type OpenSearchProviderConfigRequestTraceLogger

type OpenSearchProviderConfigRequestTraceLogger struct {
	Enabled             types.Bool `tfsdk:"enabled"`
	IncludeRequestBody  types.Bool `tfsdk:"include_request_body"`
	IncludeResponseBody types.Bool `tfsdk:"include_response_body"`
}

type PluginSecurityRoleResource

type PluginSecurityRoleResource struct {
	ResourceShared
}

func (*PluginSecurityRoleResource) Create

func (*PluginSecurityRoleResource) Delete

func (*PluginSecurityRoleResource) ImportState

func (*PluginSecurityRoleResource) Metadata

func (*PluginSecurityRoleResource) Read

func (*PluginSecurityRoleResource) Schema

func (*PluginSecurityRoleResource) Update

type PluginSecurityRoleResourceData

type PluginSecurityRoleResourceData struct {
	ID types.String `tfsdk:"id"`

	RoleName           types.String `tfsdk:"role_name"`
	Description        types.String `tfsdk:"description"`
	ClusterPermissions types.List   `tfsdk:"cluster_permissions"`
	IndexPermissions   types.List   `tfsdk:"index_permissions"`
	TenantPermissions  types.List   `tfsdk:"tenant_permissions"`

	Reserved types.Bool `tfsdk:"reserved"`
	Hidden   types.Bool `tfsdk:"hidden"`
	Static   types.Bool `tfsdk:"static"`
}

func (*PluginSecurityRoleResourceData) UpdateFromRole

type PluginSecurityUserResource

type PluginSecurityUserResource struct {
	ResourceShared
}

func (*PluginSecurityUserResource) Create

func (*PluginSecurityUserResource) Delete

func (*PluginSecurityUserResource) ImportState

func (*PluginSecurityUserResource) Metadata

func (*PluginSecurityUserResource) Read

func (*PluginSecurityUserResource) Schema

func (*PluginSecurityUserResource) Update

type PluginSecurityUserResourceData

type PluginSecurityUserResourceData struct {
	Username   types.String `tfsdk:"username"`
	Password   types.String `tfsdk:"password"`
	Hash       types.String `tfsdk:"hash"`
	Attributes types.Map    `tfsdk:"attributes"`

	Roles types.List `tfsdk:"roles"`

	OpenDistroSecurityRoles types.List `tfsdk:"open_distro_security_roles"`
	BackendRoles            types.List `tfsdk:"backend_roles"`
}

type ResourceShared

type ResourceShared struct {
	// contains filtered or unexported fields
}

func (*ResourceShared) Configure

type Shared

type Shared struct {
	Client *opensearch.Client
}

Jump to

Keyboard shortcuts

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