Documentation
¶
Index ¶
- type BaseTargetConfig
- func (c *BaseTargetConfig) GetBool(key string) bool
- func (c *BaseTargetConfig) GetBoolWithDefault(key string, defaultValue bool) bool
- func (c *BaseTargetConfig) GetInt(key string) int
- func (c *BaseTargetConfig) GetIntWithDefault(key string, defaultValue int) int
- func (c *BaseTargetConfig) GetString(key string) string
- func (c *BaseTargetConfig) GetStringWithDefault(key string, defaultValue string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTargetConfig ¶
type BaseTargetConfig struct { Connector string Name string DataSourceId string IdentityStoreId string ApiUser string ApiSecret string RaitoDomain string SkipIdentityStoreSync bool SkipDataSourceSync bool SkipDataAccessSync bool Logger hclog.Logger Parameters map[interface{}]interface{} }
BaseTargetConfig contains the base configuration applicable to all the plugins. It contains all the other parameters that were specified on the target as a map in the Parameters field.
func (*BaseTargetConfig) GetBool ¶
func (c *BaseTargetConfig) GetBool(key string) bool
GetBool returns the boolean value with the given key in the Parameters map. If not found, or the value cannot be converted to a boolean, false is returned.
func (*BaseTargetConfig) GetBoolWithDefault ¶
func (c *BaseTargetConfig) GetBoolWithDefault(key string, defaultValue bool) bool
GetBoolWithDefault returns the boolean value with the given key in the Parameters map. If not found, or the value cannot be converted to a boolean, the given default value is returned.
func (*BaseTargetConfig) GetInt ¶
func (c *BaseTargetConfig) GetInt(key string) int
GetInt returns the integer value with the given key in the Parameters map. If not found, or it cannot be converted into an integer, 0 is returned.
func (*BaseTargetConfig) GetIntWithDefault ¶
func (c *BaseTargetConfig) GetIntWithDefault(key string, defaultValue int) int
GetIntWithDefault returns the integer value with the given key in the Parameters map. If not found, or it cannot be converted into an integer, the given default value is returned.
func (*BaseTargetConfig) GetString ¶
func (c *BaseTargetConfig) GetString(key string) string
GetString returns the string value with the given key in the Parameters map. If not found, an empty string is returned.
func (*BaseTargetConfig) GetStringWithDefault ¶
func (c *BaseTargetConfig) GetStringWithDefault(key string, defaultValue string) string
GetStringWithDefault returns the string value with the given key in the Parameters map. If not found, the given default value is returned.