clients

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiClientFunc

func NewApiClientFunc(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 NewAcceptanceTestingClient added in v0.5.0

func NewAcceptanceTestingClient() (*ApiClient, error)

func NewApiClient

func NewApiClient(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) 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) 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) SetSloAuthContext added in v0.7.0

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

type BaseConfig added in v0.6.0

type BaseConfig struct {
	Username  string
	Password  string
	UserAgent string
	Header    http.Header
}

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

Jump to

Keyboard shortcuts

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