clients

package
v0.11.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiClientFuncFromSDK added in v0.10.0

func NewApiClientFuncFromSDK(version string) func(context.Context, *schema.ResourceData) (interface{}, diag.Diagnostics)

func ResourceIDFromStr added in v0.4.0

func ResourceIDFromStr(id string) (string, diag.Diagnostics)

Types

type ApiClient

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

func ConvertProviderData added in v0.10.0

func ConvertProviderData(providerData any) (*ApiClient, fwdiags.Diagnostics)

func NewAcceptanceTestingClient added in v0.5.0

func NewAcceptanceTestingClient() (*ApiClient, error)

func NewApiClientFromFramework added in v0.10.0

func NewApiClientFromFramework(ctx context.Context, cfg config.ProviderConfiguration, version string) (*ApiClient, fwdiags.Diagnostics)

func NewApiClientFromSDKResource added in v0.10.0

func NewApiClientFromSDKResource(d *schema.ResourceData, meta interface{}) (*ApiClient, diag.Diagnostics)

func (*ApiClient) ClusterID

func (a *ApiClient) ClusterID(ctx context.Context) (*string, diag.Diagnostics)

func (*ApiClient) GetAlertingClient added in v0.6.0

func (a *ApiClient) GetAlertingClient() (alerting.AlertingAPI, error)

func (*ApiClient) GetDataViewsClient added in v0.11.0

func (a *ApiClient) GetDataViewsClient() (data_views.DataViewsAPI, error)

func (*ApiClient) GetESClient

func (a *ApiClient) GetESClient() (*elasticsearch.Client, error)

func (*ApiClient) GetFleetClient added in v0.6.0

func (a *ApiClient) GetFleetClient() (*fleet.Client, error)

func (*ApiClient) GetKibanaClient added in v0.6.0

func (a *ApiClient) GetKibanaClient() (*kibana.Client, error)

func (*ApiClient) GetKibanaConnectorsClient added in v0.6.0

func (a *ApiClient) GetKibanaConnectorsClient(ctx context.Context) (*connectors.Client, error)

func (*ApiClient) GetSloClient added in v0.7.0

func (a *ApiClient) GetSloClient() (slo.SloAPI, error)

func (*ApiClient) ID

func (a *ApiClient) ID(ctx context.Context, resourceId string) (*CompositeId, diag.Diagnostics)

func (*ApiClient) ServerFlavor added in v0.11.3

func (a *ApiClient) ServerFlavor(ctx context.Context) (string, diag.Diagnostics)

func (*ApiClient) ServerVersion added in v0.5.0

func (a *ApiClient) ServerVersion(ctx context.Context) (*version.Version, diag.Diagnostics)

func (*ApiClient) SetAlertingAuthContext added in v0.6.0

func (a *ApiClient) SetAlertingAuthContext(ctx context.Context) context.Context

func (*ApiClient) SetDataviewAuthContext added in v0.11.0

func (a *ApiClient) SetDataviewAuthContext(ctx context.Context) context.Context

func (*ApiClient) SetSloAuthContext added in v0.7.0

func (a *ApiClient) SetSloAuthContext(ctx context.Context) context.Context

type CompositeId

type CompositeId struct {
	ClusterId  string
	ResourceId string
}

func CompositeIdFromStr

func CompositeIdFromStr(id string) (*CompositeId, diag.Diagnostics)

func (*CompositeId) String

func (c *CompositeId) String() string

Directories

Path Synopsis
Package kibana is a generated GoMock package.
Package kibana is a generated GoMock package.

Jump to

Keyboard shortcuts

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