common

package
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthFieldsForService

func GetAuthFieldsForService(service string) map[string]ConfigField

func GetAuthFieldsMap

func GetAuthFieldsMap() map[string]ConfigField

func GetConfigFieldsMap

func GetConfigFieldsMap() map[string]ConfigField

func GetDestinationFieldsForService added in v1.1.12

func GetDestinationFieldsForService(service string) map[string]ConfigField

func GetDestinationFieldsMap added in v1.1.12

func GetDestinationFieldsMap() map[string]ConfigField

func GetDestinationSchemaFields

func GetDestinationSchemaFields() map[string]map[string]bool

func GetFieldsForService

func GetFieldsForService(service string) (map[string]ConfigField, error)

func LoadAuthFieldsMap added in v1.1.8

func LoadAuthFieldsMap()

func LoadConfigFieldsMap added in v1.1.8

func LoadConfigFieldsMap()

func LocaDestinationFieldsMap added in v1.1.12

func LocaDestinationFieldsMap()

Types

type ConfigField

type ConfigField struct {
	Readonly            bool                      `json:"readonly"`
	Sensitive           bool                      `json:"sensitive"`
	Nullable            bool                      `json:"nullable"`
	FieldValueType      FieldValueType            `json:"type"`
	ItemFields          map[string]ConfigField    `json:"fields"`
	ItemKeyField        string                    `json:"key_field"`
	ItemType            map[string]FieldValueType `json:"item_type"`
	Description         map[string]string         `json:"description"`
	SensitiveExclusions map[string]bool           `json:"sensitive_exclusions,omitempty"`
	ApiField            string                    `json:"api_field"`
}

func NewconfigField

func NewconfigField() ConfigField

func (ConfigField) GetIsSensitive added in v1.1.21

func (c ConfigField) GetIsSensitive(service string) bool

func (ConfigField) GetIsSensitiveForSchema added in v1.1.21

func (c ConfigField) GetIsSensitiveForSchema() bool

type FieldValueType

type FieldValueType int64
const (
	String FieldValueType = iota
	Integer
	Boolean
	StringList
	ObjectList
	Object

	Unknown
)

func Type

func Type(typeName string) FieldValueType

func (FieldValueType) MarshalJSON

func (s FieldValueType) MarshalJSON() ([]byte, error)

func (FieldValueType) String

func (lang FieldValueType) String() string

func (*FieldValueType) UnmarshalJSON

func (s *FieldValueType) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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