base

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 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 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.

Jump to

Keyboard shortcuts

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