feature_flag

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCFApiError added in v0.30.5

func HandleCFApiError(err error, d *schema.ResourceData, httpResp *http.Response) diag.Diagnostics

HandleCFApiError - parses the error as type cfError and returns the error message if it can't parse as cf error it falls back to the generic error handling helper

func ResourceFeatureFlag

func ResourceFeatureFlag() *schema.Resource

Types

type Environment added in v0.30.5

type Environment struct {
	Identifier          string        `json:"identifier"`
	DefaultOnVariation  string        `json:"defaultOnVariation,omitempty"`
	DefaultOffVariation string        `json:"defaultOffVariation,omitempty"`
	State               string        `json:"state,omitempty"`
	TargetRules         []TargetRules `json:"rules,omitempty"`
}

type FFCreateOpts added in v0.30.5

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

type FFPutOpts added in v0.30.5

type FFPutOpts struct {
	Identifier          string              `json:"identifier"`
	Name                string              `json:"name"`
	Description         string              `json:"description"`
	DefaultOffVariation string              `json:"defaultOffVariation"`
	DefaultOnVariation  string              `json:"defaultOnVariation"`
	Permanent           bool                `json:"permanent"`
	Variations          []nextgen.Variation `json:"variations"`
	Tags                []Tag               `json:"tags"`
	Environments        []Environment       `json:"environments,omitempty"`
}

type FFQueryParameters

type FFQueryParameters struct {
	Identifier     string
	OrganizationId string
	ProjectId      string
}

type TFEnvironment added in v0.30.5

type TFEnvironment struct {
	Identifier          string        `json:"identifier"`
	DefaultOnVariation  string        `json:"default_on_variation"`
	DefaultOffVariation string        `json:"default_off_variation"`
	State               string        `json:"state"`
	TargetRules         []TargetRules `json:"add_target_rule"`
}

type Tag added in v0.30.5

type Tag struct {
	Name       string `json:"name"`
	Identifier string `json:"identifier"`
}

Tag is a tag for the feature flag

type TargetRules added in v0.27.1

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

TargetRules is the target rules for the feature flag

Jump to

Keyboard shortcuts

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