feature_flag

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindMap = map[string]string{
	"removeTargets": "removeTargetsToVariationTargetMap",
	"removeRule":    "removeRule",
	"addRule":       "addRule",
	"addTargets":    "addTargetsToVariationTargetMap",
}

KindMap is a map of the kind to the actual kind

Functions

func ResourceFeatureFlag

func ResourceFeatureFlag() *schema.Resource

Types

type Distribution added in v0.27.1

type Distribution struct {
	Variations []Variation `json:"variations,omitempty"`
}

Distribution is the distribution for the feature flag

type FFOpts

type FFOpts struct {
	Identifier          string              `json:"identifier"`
	Name                string              `json:"name"`
	Description         string              `json:"description,omitempty"`
	Archived            bool                `json:"archived,omitempty"`
	DefaultOffVariation string              `json:"defaultOffVariation"`
	DefaultOnVariation  string              `json:"defaultOnVariation"`
	GitDetails          nextgen.GitDetails  `json:"gitDetails,omitempty"`
	Kind                string              `json:"kind"`
	Owner               string              `json:"owner,omitempty"`
	Permanent           bool                `json:"permanent"`
	Project             string              `json:"project"`
	Variations          []nextgen.Variation `json:"variations"`
}

type FFPatchOpts added in v0.27.1

type FFPatchOpts struct {
	Identifier          string              `json:"identifier"`
	Name                string              `json:"name"`
	Description         string              `json:"description,omitempty"`
	Archived            bool                `json:"archived,omitempty"`
	DefaultOffVariation string              `json:"defaultOffVariation"`
	DefaultOnVariation  string              `json:"defaultOnVariation"`
	GitDetails          nextgen.GitDetails  `json:"gitDetails,omitempty"`
	Kind                string              `json:"kind"`
	Owner               string              `json:"owner,omitempty"`
	Permanent           bool                `json:"permanent"`
	Project             string              `json:"project"`
	Variations          []nextgen.Variation `json:"variations"`
	Instructions        []Instructions      `json:"instructions"`
}

FFPatchOpts is the options for patching a feature flag

type FFQueryParameters

type FFQueryParameters struct {
	Identifier     string
	OrganizationId string
	ProjectId      string
}

type Instructions added in v0.27.1

type Instructions struct {
	Kind       string      `json:"kind"`
	Parameters []Parameter `json:"parameters"`
}

Instructions ...

type Parameter added in v0.27.1

type Parameter struct {
	RuleID    string           `json:"ruleId,omitempty"`
	Variation string           `json:"variation,omitempty"`
	Targets   []string         `json:"targets,omitempty"`
	Priority  string           `json:"priority,omitempty"`
	Clauses   []nextgen.Clause `json:"clauses,omitempty"`
	Serve     []Serve          `json:"serve,omitempty"`
}

Parameter ...

type Serve added in v0.27.1

type Serve struct {
	Variation    string         `json:"variation,omitempty"`
	Distribution []Distribution `json:"distribution,omitempty"`
}

Serve ...

type TargetGroupRules added in v0.27.1

type TargetGroupRules struct {
	Kind         string         `json:"kind,omitempty"`
	GroupName    string         `json:"groupName,omitempty"`
	Variation    string         `json:"variation,omitempty"`
	Distribution []Distribution `json:"distribution,omitempty"`
}

TargetGroupRules is the target group rules for the feature flag

type TargetRules added in v0.27.1

type TargetRules struct {
	Kind      string   `json:"kind,omitempty"`
	Variation string   `json:"variation,omitempty"`
	Targets   []string `json:"targets,omitempty"`
}

TargetRules is the target rules for the feature flag

type Variation added in v0.27.1

type Variation struct {
	Variation string `json:"variation,omitempty"`
	Weight    int    `json:"weight,omitempty"`
}

Variation is the variation for the feature flag

Jump to

Keyboard shortcuts

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