Documentation ¶
Index ¶
- func NewTargetAppResource() resource.Resource
- func NewTargetAppsDataSource() datasource.DataSource
- type TargetApp
- type TargetAppResource
- func (r *TargetAppResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TargetAppResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TargetAppResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TargetAppResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TargetAppResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TargetAppResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TargetAppResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TargetAppResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TargetAppsDataSource
- func (d *TargetAppsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *TargetAppsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *TargetAppsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *TargetAppsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type TargetAppsDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTargetAppResource ¶
func NewTargetAppsDataSource ¶
func NewTargetAppsDataSource() datasource.DataSource
Types ¶
type TargetAppResource ¶
type TargetAppResource struct {
// contains filtered or unexported fields
}
func (*TargetAppResource) Configure ¶
func (r *TargetAppResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TargetAppResource) Create ¶
func (r *TargetAppResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create builds a new target_app with the provided attributes.
The ID of the created target_app is saved into the Terraform state once the value is returned from the API. Statsig references objects by Name, which is unique. The ID is not used for identifying unique objects.
func (*TargetAppResource) Delete ¶
func (r *TargetAppResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TargetAppResource) ImportState ¶
func (r *TargetAppResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
TODO: Need to implement and test this functionality.
func (*TargetAppResource) Metadata ¶
func (r *TargetAppResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TargetAppResource) Read ¶
func (r *TargetAppResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read fetches the target_app from the API and updates the Terraform state with the target_app attributes.
func (*TargetAppResource) Schema ¶
func (r *TargetAppResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TargetAppResource) Update ¶
func (r *TargetAppResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update changes the attributes of the target_app as specified in the Terraform plan.
The ID of the target_app is not modified, as it is immutable in the Statsig API. Additionally, the IsCore attribute cannot be modified via the API. This is a limitation of the Statsig API.
type TargetAppsDataSource ¶
type TargetAppsDataSource struct {
// contains filtered or unexported fields
}
TargetAppsDataSource defines the data source implementation.
func (*TargetAppsDataSource) Configure ¶
func (d *TargetAppsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*TargetAppsDataSource) Metadata ¶
func (d *TargetAppsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*TargetAppsDataSource) Read ¶
func (d *TargetAppsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*TargetAppsDataSource) Schema ¶
func (d *TargetAppsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type TargetAppsDataSourceModel ¶
type TargetAppsDataSourceModel struct {
TargetApps []TargetApp `tfsdk:"target_apps"`
}
TagsDataSourceModel describes the data source data model.