Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewFeatureResource() resource.Resource
- func NewSegmentResource() resource.Resource
- type ConstraintModel
- type EnvironmentModel
- type FeatureModel
- type FeatureResource
- func (r *FeatureResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *FeatureResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *FeatureResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *FeatureResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *FeatureResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *FeatureResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *FeatureResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *FeatureResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FeatureResourceModel
- type SegmentModel
- type SegmentResource
- func (r *SegmentResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *SegmentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SegmentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SegmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SegmentResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *SegmentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SegmentResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SegmentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SegmentResourceModel
- type StrategyModel
- type StrategyVariantModel
- type UnleashProvider
- func (p *UnleashProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *UnleashProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *UnleashProvider) Functions(_ context.Context) []func() function.Function
- func (p *UnleashProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *UnleashProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *UnleashProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type UnleashProviderData
- type UnleashProviderModel
- type VariantModel
- type VariantOverrideModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFeatureResource ¶
func NewSegmentResource ¶ added in v1.6.0
Types ¶
type ConstraintModel ¶
type EnvironmentModel ¶
type EnvironmentModel struct { Enabled types.Bool `tfsdk:"enabled"` Strategies []StrategyModel `tfsdk:"strategies"` Variants []VariantModel `tfsdk:"variants"` }
type FeatureModel ¶
type FeatureModel struct { ID types.String `tfsdk:"id"` Project types.String `tfsdk:"project"` Name types.String `tfsdk:"name"` Type types.String `tfsdk:"type"` Description types.String `tfsdk:"description"` ImpressionData types.Bool `tfsdk:"impression_data"` Environments map[string]EnvironmentModel `tfsdk:"environments"` }
type FeatureResource ¶
type FeatureResource struct {
// contains filtered or unexported fields
}
func (*FeatureResource) Configure ¶
func (r *FeatureResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FeatureResource) Create ¶
func (r *FeatureResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FeatureResource) Delete ¶
func (r *FeatureResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FeatureResource) ImportState ¶
func (r *FeatureResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FeatureResource) Metadata ¶
func (r *FeatureResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FeatureResource) Read ¶
func (r *FeatureResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FeatureResource) Schema ¶
func (r *FeatureResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FeatureResource) Update ¶
func (r *FeatureResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FeatureResourceModel ¶
type FeatureResourceModel struct {
FeatureModel
}
type SegmentModel ¶ added in v1.6.0
type SegmentResource ¶ added in v1.6.0
type SegmentResource struct {
// contains filtered or unexported fields
}
func (*SegmentResource) Configure ¶ added in v1.6.0
func (r *SegmentResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SegmentResource) Create ¶ added in v1.6.0
func (r *SegmentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SegmentResource) Delete ¶ added in v1.6.0
func (r *SegmentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SegmentResource) ImportState ¶ added in v1.6.0
func (r *SegmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SegmentResource) Metadata ¶ added in v1.6.0
func (r *SegmentResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SegmentResource) Read ¶ added in v1.6.0
func (r *SegmentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SegmentResource) Schema ¶ added in v1.6.0
func (r *SegmentResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SegmentResource) Update ¶ added in v1.6.0
func (r *SegmentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SegmentResourceModel ¶ added in v1.6.0
type SegmentResourceModel struct {
SegmentModel
}
type StrategyModel ¶
type StrategyModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Disabled types.Bool `tfsdk:"disabled"` Title types.String `tfsdk:"title"` SortOrder types.Float32 `tfsdk:"sort_order"` Constraints []ConstraintModel `tfsdk:"constraints"` Parameters map[string]types.String `tfsdk:"parameters"` Segments []types.Float32 `tfsdk:"segments"` Variants []StrategyVariantModel `tfsdk:"variants"` }
type StrategyVariantModel ¶
type UnleashProvider ¶
type UnleashProvider struct {
// contains filtered or unexported fields
}
UnleashProvider defines the provider implementation.
func (*UnleashProvider) Configure ¶
func (p *UnleashProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*UnleashProvider) DataSources ¶
func (p *UnleashProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*UnleashProvider) Functions ¶
func (p *UnleashProvider) Functions(_ context.Context) []func() function.Function
func (*UnleashProvider) Metadata ¶
func (p *UnleashProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*UnleashProvider) Resources ¶
func (p *UnleashProvider) Resources(_ context.Context) []func() resource.Resource
func (*UnleashProvider) Schema ¶
func (p *UnleashProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type UnleashProviderData ¶ added in v1.4.0
type UnleashProviderData struct { Client unleash.ClientWithResponsesInterface StrategyTitleIgnoreRegEx *regexp.Regexp }
type UnleashProviderModel ¶
type UnleashProviderModel struct { BaseURL types.String `tfsdk:"base_url"` AuthorizationToken types.String `tfsdk:"authorization"` StrategyTitleIgnoreRegEx types.String `tfsdk:"strategy_title_ignore_regexp"` }
UnleashProviderModel describes the provider data model.
type VariantModel ¶
type VariantModel struct { Name types.String `tfsdk:"name"` Payload types.String `tfsdk:"payload"` PayloadType types.String `tfsdk:"payload_type"` Weight types.Float32 `tfsdk:"weight"` WeightType types.String `tfsdk:"weight_type"` Stickiness types.String `tfsdk:"stickiness"` Overrides []VariantOverrideModel `tfsdk:"overrides"` }
Click to show internal directories.
Click to hide internal directories.