Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
NewResource is a helper function to simplify the provider implementation.
Types ¶
type Resource ¶
type Resource struct {
*entitycore.KibanaResource[model]
*entitycore.SpaceImporter
}
Resource implements the Fleet Agent Download Source resource.
func (*Resource) Delete ¶
func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete removes the download source, then clears the stored write-only secret hashes so a re-created resource starts without drift state.
func (*Resource) ModifyPlan ¶
func (r *Resource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
ModifyPlan detects in-config edits and removals of the write-only secrets by comparing the configured values against the hashes stored in private state after the last successful apply. A detected change marks id unknown so Terraform plans an update. Stored hashes are never modified here: a removal keeps its hash until the clearing update succeeds (see persistSecretHashes).