Documentation ¶
Index ¶
- func NewApiClientFuncFromSDK(version string) func(context.Context, *schema.ResourceData) (interface{}, diag.Diagnostics)
- func ResourceIDFromStr(id string) (string, diag.Diagnostics)
- type ApiClient
- func ConvertProviderData(providerData any) (*ApiClient, fwdiags.Diagnostics)
- func NewAcceptanceTestingClient() (*ApiClient, error)
- func NewApiClientFromFramework(ctx context.Context, cfg config.ProviderConfiguration, version string) (*ApiClient, fwdiags.Diagnostics)
- func NewApiClientFromSDKResource(d *schema.ResourceData, meta interface{}) (*ApiClient, diag.Diagnostics)
- func (a *ApiClient) ClusterID(ctx context.Context) (*string, diag.Diagnostics)
- func (a *ApiClient) GetAlertingClient() (alerting.AlertingAPI, error)
- func (a *ApiClient) GetDataViewsClient() (data_views.DataViewsAPI, 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) SetDataviewAuthContext(ctx context.Context) context.Context
- func (a *ApiClient) SetSloAuthContext(ctx context.Context) context.Context
- type CompositeId
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 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) 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 (*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
func (*ApiClient) SetDataviewAuthContext ¶ added in v0.11.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.