config

package
v0.11.11 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	UserAgent     string
	Kibana        *kibana.Config
	Elasticsearch *elasticsearch.Config
	Fleet         *fleet.Config
}

func NewFromEnv

func NewFromEnv(version string) Client

func NewFromFramework

func NewFromFramework(ctx context.Context, cfg ProviderConfiguration, version string) (Client, diag.Diagnostics)

func NewFromSDK

func NewFromSDK(d *schema.ResourceData, version string) (Client, diag.Diagnostics)

func NewFromSDKResource

func NewFromSDKResource(d *schema.ResourceData, version string) (*Client, diag.Diagnostics)

type ElasticsearchConnection

type ElasticsearchConnection struct {
	Username               types.String `tfsdk:"username"`
	Password               types.String `tfsdk:"password"`
	APIKey                 types.String `tfsdk:"api_key"`
	BearerToken            types.String `tfsdk:"bearer_token"`
	ESClientAuthentication types.String `tfsdk:"es_client_authentication"`
	Endpoints              types.List   `tfsdk:"endpoints"`
	Insecure               types.Bool   `tfsdk:"insecure"`
	CAFile                 types.String `tfsdk:"ca_file"`
	CAData                 types.String `tfsdk:"ca_data"`
	CertFile               types.String `tfsdk:"cert_file"`
	KeyFile                types.String `tfsdk:"key_file"`
	CertData               types.String `tfsdk:"cert_data"`
	KeyData                types.String `tfsdk:"key_data"`
}

type FleetConnection

type FleetConnection struct {
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
	APIKey   types.String `tfsdk:"api_key"`
	Endpoint types.String `tfsdk:"endpoint"`
	Insecure types.Bool   `tfsdk:"insecure"`
	CACerts  types.List   `tfsdk:"ca_certs"`
}

type KibanaConnection

type KibanaConnection struct {
	Username  types.String `tfsdk:"username"`
	Password  types.String `tfsdk:"password"`
	ApiKey    types.String `tfsdk:"api_key"`
	Endpoints types.List   `tfsdk:"endpoints"`
	Insecure  types.Bool   `tfsdk:"insecure"`
	CACerts   types.List   `tfsdk:"ca_certs"`
}

type ProviderConfiguration

type ProviderConfiguration struct {
	Elasticsearch []ElasticsearchConnection `tfsdk:"elasticsearch"`
	Kibana        []KibanaConnection        `tfsdk:"kibana"`
	Fleet         []FleetConnection         `tfsdk:"fleet"`
}

Jump to

Keyboard shortcuts

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