Documentation ¶
Index ¶
- func NewApiClientFunc(version string, p *schema.Provider) func(context.Context, *schema.ResourceData) (interface{}, diag.Diagnostics)
- type ApiClient
- func (a *ApiClient) ClusterID() (*string, diag.Diagnostics)
- func (a *ApiClient) DeleteElasticsearchIlm(policyName string) diag.Diagnostics
- func (a *ApiClient) DeleteElasticsearchIndexTemplate(templateName string) diag.Diagnostics
- func (a *ApiClient) DeleteElasticsearchRole(rolename string) diag.Diagnostics
- func (a *ApiClient) DeleteElasticsearchSlm(slmName string) diag.Diagnostics
- func (a *ApiClient) DeleteElasticsearchSnapshotRepository(name string) diag.Diagnostics
- func (a *ApiClient) DeleteElasticsearchUser(username string) diag.Diagnostics
- func (a *ApiClient) GetESClient() *elasticsearch.Client
- func (a *ApiClient) GetElasticsearchIlm(policyName string) (*models.PolicyDefinition, diag.Diagnostics)
- func (a *ApiClient) GetElasticsearchIndexTemplate(templateName string) (*models.IndexTemplateResponse, diag.Diagnostics)
- func (a *ApiClient) GetElasticsearchRole(rolename string) (*models.Role, diag.Diagnostics)
- func (a *ApiClient) GetElasticsearchSettings() (map[string]interface{}, diag.Diagnostics)
- func (a *ApiClient) GetElasticsearchSlm(slmName string) (*models.SnapshotPolicy, diag.Diagnostics)
- func (a *ApiClient) GetElasticsearchSnapshotRepository(name string) (*models.SnapshotRepository, diag.Diagnostics)
- func (a *ApiClient) GetElasticsearchUser(username string) (*models.User, diag.Diagnostics)
- func (a *ApiClient) ID(resourceId string) (*CompositeId, diag.Diagnostics)
- func (a *ApiClient) PutElasticsearchIlm(policy *models.Policy) diag.Diagnostics
- func (a *ApiClient) PutElasticsearchIndexTemplate(template *models.IndexTemplate) diag.Diagnostics
- func (a *ApiClient) PutElasticsearchRole(role *models.Role) diag.Diagnostics
- func (a *ApiClient) PutElasticsearchSettings(settings map[string]interface{}) diag.Diagnostics
- func (a *ApiClient) PutElasticsearchSlm(slm *models.SnapshotPolicy) diag.Diagnostics
- func (a *ApiClient) PutElasticsearchSnapshotRepository(repository *models.SnapshotRepository) diag.Diagnostics
- func (a *ApiClient) PutElasticsearchUser(user *models.User) diag.Diagnostics
- type CompositeId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiClientFunc ¶
func NewApiClientFunc(version string, p *schema.Provider) func(context.Context, *schema.ResourceData) (interface{}, diag.Diagnostics)
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func NewApiClient(d *schema.ResourceData, meta interface{}) (*ApiClient, error)
func (*ApiClient) DeleteElasticsearchIlm ¶
func (a *ApiClient) DeleteElasticsearchIlm(policyName string) diag.Diagnostics
func (*ApiClient) DeleteElasticsearchIndexTemplate ¶
func (a *ApiClient) DeleteElasticsearchIndexTemplate(templateName string) diag.Diagnostics
func (*ApiClient) DeleteElasticsearchRole ¶
func (a *ApiClient) DeleteElasticsearchRole(rolename string) diag.Diagnostics
func (*ApiClient) DeleteElasticsearchSlm ¶
func (a *ApiClient) DeleteElasticsearchSlm(slmName string) diag.Diagnostics
func (*ApiClient) DeleteElasticsearchSnapshotRepository ¶
func (a *ApiClient) DeleteElasticsearchSnapshotRepository(name string) diag.Diagnostics
func (*ApiClient) DeleteElasticsearchUser ¶
func (a *ApiClient) DeleteElasticsearchUser(username string) diag.Diagnostics
func (*ApiClient) GetESClient ¶
func (a *ApiClient) GetESClient() *elasticsearch.Client
func (*ApiClient) GetElasticsearchIlm ¶
func (a *ApiClient) GetElasticsearchIlm(policyName string) (*models.PolicyDefinition, diag.Diagnostics)
func (*ApiClient) GetElasticsearchIndexTemplate ¶
func (a *ApiClient) GetElasticsearchIndexTemplate(templateName string) (*models.IndexTemplateResponse, diag.Diagnostics)
func (*ApiClient) GetElasticsearchRole ¶
func (*ApiClient) GetElasticsearchSettings ¶
func (a *ApiClient) GetElasticsearchSettings() (map[string]interface{}, diag.Diagnostics)
func (*ApiClient) GetElasticsearchSlm ¶
func (a *ApiClient) GetElasticsearchSlm(slmName string) (*models.SnapshotPolicy, diag.Diagnostics)
func (*ApiClient) GetElasticsearchSnapshotRepository ¶
func (a *ApiClient) GetElasticsearchSnapshotRepository(name string) (*models.SnapshotRepository, diag.Diagnostics)
func (*ApiClient) GetElasticsearchUser ¶
func (*ApiClient) ID ¶
func (a *ApiClient) ID(resourceId string) (*CompositeId, diag.Diagnostics)
func (*ApiClient) PutElasticsearchIlm ¶
func (a *ApiClient) PutElasticsearchIlm(policy *models.Policy) diag.Diagnostics
func (*ApiClient) PutElasticsearchIndexTemplate ¶
func (a *ApiClient) PutElasticsearchIndexTemplate(template *models.IndexTemplate) diag.Diagnostics
func (*ApiClient) PutElasticsearchRole ¶
func (a *ApiClient) PutElasticsearchRole(role *models.Role) diag.Diagnostics
func (*ApiClient) PutElasticsearchSettings ¶
func (a *ApiClient) PutElasticsearchSettings(settings map[string]interface{}) diag.Diagnostics
func (*ApiClient) PutElasticsearchSlm ¶
func (a *ApiClient) PutElasticsearchSlm(slm *models.SnapshotPolicy) diag.Diagnostics
func (*ApiClient) PutElasticsearchSnapshotRepository ¶
func (a *ApiClient) PutElasticsearchSnapshotRepository(repository *models.SnapshotRepository) diag.Diagnostics
func (*ApiClient) PutElasticsearchUser ¶
func (a *ApiClient) PutElasticsearchUser(user *models.User) diag.Diagnostics
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.