appconfiguration

package
v1.44.1-0...-2cd6497 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MPL-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureKeyContentType = "application/vnd.microsoft.appconfig.ff+json;charset=utf-8"
	FeatureKeyPrefix      = ".appconfig.featureflag"
)
View Source
const (
	KeyTypeVault        = "vault"
	KeyTypeKV           = "kv"
	VaultKeyContentType = "application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8"
)
View Source
const (
	TargetingFilterName  = "Microsoft.Targeting"
	TimewindowFilterName = "Microsoft.TimeWindow"
	PercentageFilterName = "Microsoft.Percentage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFilter

type ClientFilter struct {
	Filters []interface{}
}

func (ClientFilter) MarshalJSON

func (p ClientFilter) MarshalJSON() ([]byte, error)

func (*ClientFilter) UnmarshalJSON

func (p *ClientFilter) UnmarshalJSON(b []byte) error

type Conditions

type Conditions struct {
	ClientFilters ClientFilter `json:"client_filters"`
}

type FeatureResource

type FeatureResource struct{}

func (FeatureResource) Arguments

func (k FeatureResource) Arguments() map[string]*pluginsdk.Schema

func (FeatureResource) Attributes

func (k FeatureResource) Attributes() map[string]*pluginsdk.Schema

func (FeatureResource) Create

func (k FeatureResource) Create() sdk.ResourceFunc

func (FeatureResource) Delete

func (k FeatureResource) Delete() sdk.ResourceFunc

func (FeatureResource) IDValidationFunc

func (k FeatureResource) IDValidationFunc() pluginsdk.SchemaValidateFunc

func (FeatureResource) ModelObject

func (k FeatureResource) ModelObject() interface{}

func (FeatureResource) Read

func (k FeatureResource) Read() sdk.ResourceFunc

func (FeatureResource) ResourceType

func (k FeatureResource) ResourceType() string

func (FeatureResource) StateUpgraders

func (k FeatureResource) StateUpgraders() sdk.StateUpgradeData

func (FeatureResource) Update

func (k FeatureResource) Update() sdk.ResourceFunc

type FeatureResourceModel

type FeatureResourceModel struct {
	ConfigurationStoreId string                       `tfschema:"configuration_store_id"`
	Description          string                       `tfschema:"description"`
	Enabled              bool                         `tfschema:"enabled"`
	Key                  string                       `tfschema:"key"`
	Name                 string                       `tfschema:"name"`
	Label                string                       `tfschema:"label"`
	Locked               bool                         `tfschema:"locked"`
	Tags                 map[string]interface{}       `tfschema:"tags"`
	PercentageFilter     float64                      `tfschema:"percentage_filter_value"`
	TimewindowFilters    []TimewindowFilterParameters `tfschema:"timewindow_filter"`
	TargetingFilters     []TargetingFilterAudience    `tfschema:"targeting_filter"`
}

type FeatureValue

type FeatureValue struct {
	ID          string     `json:"id"`
	Description string     `json:"description"`
	Enabled     bool       `json:"enabled"`
	Conditions  Conditions `json:"conditions"`
}

type KeyDataSource

type KeyDataSource struct{}

func (KeyDataSource) Arguments

func (k KeyDataSource) Arguments() map[string]*pluginsdk.Schema

func (KeyDataSource) Attributes

func (k KeyDataSource) Attributes() map[string]*pluginsdk.Schema

func (KeyDataSource) ModelObject

func (k KeyDataSource) ModelObject() interface{}

func (KeyDataSource) Read

func (k KeyDataSource) Read() sdk.ResourceFunc

func (KeyDataSource) ResourceType

func (k KeyDataSource) ResourceType() string

type KeyDataSourceModel

type KeyDataSourceModel struct {
	Key               string                 `tfschema:"key"`
	ContentType       string                 `tfschema:"content_type"`
	Etag              string                 `tfschema:"etag"`
	Label             string                 `tfschema:"label"`
	Value             string                 `tfschema:"value"`
	Locked            bool                   `tfschema:"locked"`
	Tags              map[string]interface{} `tfschema:"tags"`
	Type              string                 `tfschema:"type"`
	VaultKeyReference string                 `tfschema:"vault_key_reference"`
}

type KeyResource

type KeyResource struct{}

func (KeyResource) Arguments

func (k KeyResource) Arguments() map[string]*pluginsdk.Schema

func (KeyResource) Attributes

func (k KeyResource) Attributes() map[string]*pluginsdk.Schema

func (KeyResource) Create

func (k KeyResource) Create() sdk.ResourceFunc

func (KeyResource) CustomizeDiff

func (k KeyResource) CustomizeDiff() sdk.ResourceFunc

func (KeyResource) Delete

func (k KeyResource) Delete() sdk.ResourceFunc

func (KeyResource) IDValidationFunc

func (k KeyResource) IDValidationFunc() pluginsdk.SchemaValidateFunc

func (KeyResource) ModelObject

func (k KeyResource) ModelObject() interface{}

func (KeyResource) Read

func (k KeyResource) Read() sdk.ResourceFunc

func (KeyResource) ResourceType

func (k KeyResource) ResourceType() string

func (KeyResource) StateUpgraders

func (k KeyResource) StateUpgraders() sdk.StateUpgradeData

func (KeyResource) Update

func (k KeyResource) Update() sdk.ResourceFunc

type KeyResourceModel

type KeyResourceModel struct {
	ConfigurationStoreId string                 `tfschema:"configuration_store_id"`
	Key                  string                 `tfschema:"key"`
	ContentType          string                 `tfschema:"content_type"`
	Etag                 string                 `tfschema:"etag"`
	Label                string                 `tfschema:"label"`
	Value                string                 `tfschema:"value"`
	Locked               bool                   `tfschema:"locked"`
	Tags                 map[string]interface{} `tfschema:"tags"`
	Type                 string                 `tfschema:"type"`
	VaultKeyReference    string                 `tfschema:"vault_key_reference"`
}

type KeysDataSource

type KeysDataSource struct{}

func (KeysDataSource) Arguments

func (k KeysDataSource) Arguments() map[string]*pluginsdk.Schema

func (KeysDataSource) Attributes

func (k KeysDataSource) Attributes() map[string]*pluginsdk.Schema

func (KeysDataSource) ModelObject

func (k KeysDataSource) ModelObject() interface{}

func (KeysDataSource) Read

func (k KeysDataSource) Read() sdk.ResourceFunc

func (KeysDataSource) ResourceType

func (k KeysDataSource) ResourceType() string

type KeysDataSourceModel

type KeysDataSourceModel struct {
	ConfigurationStoreId string               `tfschema:"configuration_store_id"`
	Key                  string               `tfschema:"key"`
	Label                string               `tfschema:"label"`
	Items                []KeyDataSourceModel `tfschema:"items"`
}

type PercentageFeatureFilter

type PercentageFeatureFilter struct {
	Name       string                     `json:"name"`
	Parameters PercentageFilterParameters `json:"parameters"`
}

type PercentageFilterParameters

type PercentageFilterParameters struct {
	Value float64 `json:"Value"`
}

type Registration

type Registration struct{}

func (Registration) AssociatedGitHubLabel

func (r Registration) AssociatedGitHubLabel() string

func (Registration) DataSources

func (r Registration) DataSources() []sdk.DataSource

func (Registration) Name

func (r Registration) Name() string

Name is the name of this Service

func (Registration) Resources

func (r Registration) Resources() []sdk.Resource

func (Registration) SupportedDataSources

func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource

SupportedDataSources returns the supported Data Sources supported by this Service

func (Registration) SupportedResources

func (r Registration) SupportedResources() map[string]*pluginsdk.Resource

SupportedResources returns the supported Resources supported by this Service

func (Registration) WebsiteCategories

func (r Registration) WebsiteCategories() []string

WebsiteCategories returns a list of categories which can be used for the sidebar

type TargetingFeatureFilter

type TargetingFeatureFilter struct {
	Name       string                    `json:"name"`
	Parameters TargetingFilterParameters `json:"parameters"`
}

type TargetingFilterAudience

type TargetingFilterAudience struct {
	DefaultRolloutPercentage int64                     `json:"DefaultRolloutPercentage" tfschema:"default_rollout_percentage"`
	Users                    []string                  `json:"Users" tfschema:"users"`
	Groups                   []TargetingGroupParameter `json:"Groups" tfschema:"groups"`
}

type TargetingFilterParameters

type TargetingFilterParameters struct {
	Audience TargetingFilterAudience `json:"Audience"`
}

type TargetingGroupParameter

type TargetingGroupParameter struct {
	Name              string `json:"Name" tfschema:"name"`
	RolloutPercentage int64  `json:"RolloutPercentage" tfschema:"rollout_percentage"`
}

type TimewindowFeatureFilter

type TimewindowFeatureFilter struct {
	Name       string                     `json:"name"`
	Parameters TimewindowFilterParameters `json:"parameters"`
}

type TimewindowFilterParameters

type TimewindowFilterParameters struct {
	Start string `json:"Start" tfschema:"start"`
	End   string `json:"End" tfschema:"end"`
}

type VaultKeyReference

type VaultKeyReference struct {
	URI string `json:"uri"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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