Documentation
¶
Index ¶
- Constants
- func NewAPIClientFuncFromSDK(version string) func(context.Context, *schema.ResourceData) (any, diag.Diagnostics)
- func ResourceIDFromStr(id string) (string, diag.Diagnostics)
- type APIClient
- func ConvertProviderData(providerData any) (*APIClient, fwdiags.Diagnostics)
- func MaybeNewAPIClientFromFrameworkResource(ctx context.Context, esConnList types.List, defaultClient *APIClient) (*APIClient, fwdiags.Diagnostics)
- func NewAPIClientFromFramework(ctx context.Context, cfg config.ProviderConfiguration, version string) (*APIClient, fwdiags.Diagnostics)
- func NewAPIClientFromSDKResource(d *schema.ResourceData, meta any) (*APIClient, diag.Diagnostics)
- func NewAcceptanceTestingClient() (*APIClient, error)
- func (a *APIClient) ClusterID(ctx context.Context) (*string, diag.Diagnostics)
- func (a *APIClient) EnforceMinVersion(ctx context.Context, minVersion *version.Version) (bool, diag.Diagnostics)
- func (a *APIClient) GetESClient() (*elasticsearch.Client, error)
- func (a *APIClient) GetFleetClient() (*fleet.Client, error)
- func (a *APIClient) GetKibanaClient() (*kibana.Client, error)
- func (a *APIClient) GetKibanaOapiClient() (*kibanaoapi.Client, error)
- func (a *APIClient) GetSloClient() (slo.SloAPI, error)
- func (a *APIClient) ID(ctx context.Context, resourceID string) (*CompositeID, diag.Diagnostics)
- func (a *APIClient) ServerFlavor(ctx context.Context) (string, diag.Diagnostics)
- func (a *APIClient) ServerVersion(ctx context.Context) (*version.Version, diag.Diagnostics)
- func (a *APIClient) SetSloAuthContext(ctx context.Context) context.Context
- type CompositeID
- type MinVersionEnforceable
Constants ¶
View Source
const ServerlessFlavor = "serverless"
Variables ¶
This section is empty.
Functions ¶
func NewAPIClientFuncFromSDK ¶ added in v0.14.3
func NewAPIClientFuncFromSDK(version string) func(context.Context, *schema.ResourceData) (any, diag.Diagnostics)
func ResourceIDFromStr ¶ added in v0.4.0
func ResourceIDFromStr(id string) (string, diag.Diagnostics)
Types ¶
type APIClient ¶ added in v0.14.3
type APIClient struct {
// contains filtered or unexported fields
}
func ConvertProviderData ¶ added in v0.10.0
func ConvertProviderData(providerData any) (*APIClient, fwdiags.Diagnostics)
func MaybeNewAPIClientFromFrameworkResource ¶ added in v0.14.3
func NewAPIClientFromFramework ¶ added in v0.14.3
func NewAPIClientFromFramework(ctx context.Context, cfg config.ProviderConfiguration, version string) (*APIClient, fwdiags.Diagnostics)
func NewAPIClientFromSDKResource ¶ added in v0.14.3
func NewAPIClientFromSDKResource(d *schema.ResourceData, meta any) (*APIClient, diag.Diagnostics)
func NewAcceptanceTestingClient ¶ added in v0.5.0
func (*APIClient) EnforceMinVersion ¶ added in v0.14.3
func (*APIClient) GetESClient ¶ added in v0.14.3
func (a *APIClient) GetESClient() (*elasticsearch.Client, error)
func (*APIClient) GetFleetClient ¶ added in v0.14.3
func (*APIClient) GetKibanaClient ¶ added in v0.14.3
func (*APIClient) GetKibanaOapiClient ¶ added in v0.14.3
func (a *APIClient) GetKibanaOapiClient() (*kibanaoapi.Client, error)
func (*APIClient) GetSloClient ¶ added in v0.14.3
func (*APIClient) ID ¶ added in v0.14.3
func (a *APIClient) ID(ctx context.Context, resourceID string) (*CompositeID, diag.Diagnostics)
func (*APIClient) ServerFlavor ¶ added in v0.14.3
func (*APIClient) ServerVersion ¶ added in v0.14.3
type CompositeID ¶ added in v0.14.3
func CompositeIDFromStr ¶ added in v0.14.3
func CompositeIDFromStr(id string) (*CompositeID, diag.Diagnostics)
func CompositeIDFromStrFw ¶ added in v0.14.3
func CompositeIDFromStrFw(id string) (*CompositeID, fwdiags.Diagnostics)
func (*CompositeID) String ¶ added in v0.14.3
func (c *CompositeID) String() string
type MinVersionEnforceable ¶ added in v0.11.18
Click to show internal directories.
Click to hide internal directories.