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 ¶
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 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 TargetRules ¶ added in v0.27.1
TargetRules is the target rules for the feature flag
Click to show internal directories.
Click to hide internal directories.