target_apps

package
v0.0.0-...-be00822 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTargetAppResource

func NewTargetAppResource() resource.Resource

func NewTargetAppsDataSource

func NewTargetAppsDataSource() datasource.DataSource

Types

type TargetApp

type TargetApp struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	Description    types.String `tfsdk:"description"`
	Gates          types.List   `tfsdk:"gates"`
	DynamicConfigs types.List   `tfsdk:"dynamic_configs"`
	Experiments    types.List   `tfsdk:"experiments"`
}

type TargetAppResource

type TargetAppResource struct {
	// contains filtered or unexported fields
}

func (*TargetAppResource) Configure

func (*TargetAppResource) Create

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 (*TargetAppResource) ImportState

TODO: Need to implement and test this functionality.

func (*TargetAppResource) Metadata

func (*TargetAppResource) Read

Read fetches the target_app from the API and updates the Terraform state with the target_app attributes.

func (*TargetAppResource) Schema

func (*TargetAppResource) Update

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 (*TargetAppsDataSource) Metadata

func (*TargetAppsDataSource) Read

func (*TargetAppsDataSource) Schema

type TargetAppsDataSourceModel

type TargetAppsDataSourceModel struct {
	TargetApps []TargetApp `tfsdk:"target_apps"`
}

TagsDataSourceModel describes the data source data model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL