Documentation ¶
Index ¶
- func NewApiClientFunc(version string) func(context.Context, *schema.ResourceData) (interface{}, diag.Diagnostics)
- func ResourceIDFromStr(id string) (string, diag.Diagnostics)
- type ApiClient
- func (a *ApiClient) ClusterID(ctx context.Context) (*string, diag.Diagnostics)
- func (a *ApiClient) GetAlertingClient() (alerting.AlertingApi, error)
- func (a *ApiClient) GetESClient() (*elasticsearch.Client, error)
- func (a *ApiClient) GetFleetClient() (*fleet.Client, error)
- func (a *ApiClient) GetKibanaClient() (*kibana.Client, error)
- func (a *ApiClient) GetKibanaConnectorsClient(ctx context.Context) (*connectors.Client, error)
- func (a *ApiClient) GetSloClient() (slo.SloAPI, error)
- func (a *ApiClient) ID(ctx context.Context, resourceId string) (*CompositeId, diag.Diagnostics)
- func (a *ApiClient) ServerVersion(ctx context.Context) (*version.Version, diag.Diagnostics)
- func (a *ApiClient) SetAlertingAuthContext(ctx context.Context) context.Context
- func (a *ApiClient) SetSloAuthContext(ctx context.Context) context.Context
- type BaseConfig
- type CompositeId
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 NewApiClient ¶
func NewApiClient(d *schema.ResourceData, meta interface{}) (*ApiClient, diag.Diagnostics)
func (*ApiClient) GetAlertingClient ¶ added in v0.6.0
func (a *ApiClient) GetAlertingClient() (alerting.AlertingApi, error)
func (*ApiClient) GetESClient ¶
func (*ApiClient) GetFleetClient ¶ added in v0.6.0
func (*ApiClient) GetKibanaClient ¶ added in v0.6.0
func (*ApiClient) GetKibanaConnectorsClient ¶ added in v0.6.0
func (*ApiClient) GetSloClient ¶ added in v0.7.0
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
type BaseConfig ¶ added in v0.6.0
type CompositeId ¶
func CompositeIdFromStr ¶
func CompositeIdFromStr(id string) (*CompositeId, diag.Diagnostics)
func (*CompositeId) String ¶
func (c *CompositeId) String() string
Click to show internal directories.
Click to hide internal directories.