features

package
v1.56.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Enabled         bool    `json:"enabled"`                   // This setting is enabled (`true`) or disabled (`false`)
	Forcible        *bool   `json:"forcible,omitempty"`        // Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
	Instrumentation *bool   `json:"instrumentation,omitempty"` // Instrumentation enabled (change needs a process restart)
	Key             string  `json:"key"`                       // Feature
	Scope           *string `json:"-" scope:"scope"`           // The scope of this setting (PROCESS_GROUP_INSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
	// OneAgent Features cannot get deleted if their scope is the environment
	// Settings with this exact Property are being treated special by the provider
	// Upon Create the current state of the setting is getting stored within the state file
	// Upon Delete instead of deleting the setting, that stored state is getting reconstructed
	// Also the method `Match` needs to be present in order for that functionality to kick in
	RestoreOnDelete *string `json:"-"` // For Terraform internal use. Do not populate.
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Match

func (me *Settings) Match(o any) bool

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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