Documentation
¶
Index ¶
- Constants
- func BsonPack(failover interface{}) (string, error)
- func BsonUnPack(failover interface{}, data string) error
- func ExpandInt(values []interface{}) []int
- func ExpandString(values []interface{}) []string
- func GetPolkadotSchema() map[string]*schema.Schema
- type FailOverMode
- type Failover
- func (f *Failover) FillDefaultCountsIfNotSet()
- func (f *Failover) FromSchema(d *schema.ResourceData) error
- func (f Failover) Initialized() bool
- func (f Failover) InstancesCount() int
- func (f Failover) IsDistributedMode() bool
- func (f Failover) IsNotSet() bool
- func (f Failover) IsSingleMode() bool
- func (f *Failover) SetCounts(values ...int)
- func (f *Failover) SetPrimaryCount(n int)
- func (f Failover) SetSchemaValues(d *schema.ResourceData) error
- func (f Failover) SetSchemaValuesDiag(d *schema.ResourceData) diag.Diagnostics
- func (f *Failover) SetSecondaryCount(n int)
- func (f *Failover) SetTertiaryCount(n int)
- type FailoverSource
- type Pack
- type UnPack
Constants ¶
View Source
const ( FailoverSourceID FailoverSource = iota + 1 FailoverSourceSchema // FailOverModeDistributed ... FailOverModeDistributed FailOverMode = "distributed" // FailOverModeSingle ... FailOverModeSingle FailOverMode = "single" TagsFieldName = "tags" InstancesFieldName = "instances" LocationsFieldName = "locations" PrimaryCountFieldName = "primary_count" SecondaryCountFieldName = "secondary_count" TertiaryCountFieldName = "tertiary_count" FailoverInstancesFieldName = "failover_instances" FailoverModeFieldName = "failover_mode" PrefixFieldName = "prefix" MetricNameFieldName = "metric_name" MetricNamespaceFieldName = "metric_namespace" )
Variables ¶
This section is empty.
Functions ¶
func BsonUnPack ¶
func ExpandString ¶
func ExpandString(values []interface{}) []string
func GetPolkadotSchema ¶
Types ¶
type Failover ¶
type Failover struct { Prefix string FailoverMode FailOverMode MetricName string MetricNameSpace string Instances []int Locations []string PrimaryCount int SecondaryCount int TertiaryCount int FailoverInstances []int Source FailoverSource }
func (*Failover) FillDefaultCountsIfNotSet ¶
func (f *Failover) FillDefaultCountsIfNotSet()
func (*Failover) FromSchema ¶
func (f *Failover) FromSchema(d *schema.ResourceData) error
func (Failover) Initialized ¶
func (Failover) InstancesCount ¶
func (Failover) IsDistributedMode ¶
func (Failover) IsSingleMode ¶
func (*Failover) SetPrimaryCount ¶
func (Failover) SetSchemaValues ¶
func (f Failover) SetSchemaValues(d *schema.ResourceData) error
func (Failover) SetSchemaValuesDiag ¶
func (f Failover) SetSchemaValuesDiag(d *schema.ResourceData) diag.Diagnostics
func (*Failover) SetSecondaryCount ¶
func (*Failover) SetTertiaryCount ¶
type FailoverSource ¶
type FailoverSource int
Click to show internal directories.
Click to hide internal directories.