Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
- Variables
- type TemporalCloud
- func (c *TemporalCloud) GetBool(fieldName string) bool
- func (c *TemporalCloud) GetInt(fieldName string) int
- func (c *TemporalCloud) GetString(fieldName string) string
- func (c *TemporalCloud) GetStringMap(fieldName string) map[string]any
- func (c *TemporalCloud) GetStringSlice(fieldName string) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APIKeyField = field.StringField( "api-key", field.WithDisplayName("API Key"), field.WithDescription("The Temporal Cloud API key used to connect to the Temporal Cloud API."), field.WithIsSecret(true), field.WithRequired(true), ) AllowInsecureField = field.BoolField( "allow-insecure", field.WithDisplayName("Allow Insecure"), field.WithDescription("Allow insecure TLS connections to the Temporal Cloud API."), field.WithDefaultValue(false), ) DefaultAccountRoleField = field.SelectField( "default-account-role", []string{"read", "developer", "admin"}, field.WithDisplayName("Default Account Role"), field.WithDescription("The default account role to use for account provisioning"), field.WithDefaultValue("read"), field.WithRequired(false), ) // ConfigurationFields defines the external configuration required for the // connector to run. ConfigurationFields = []field.SchemaField{ APIKeyField, AllowInsecureField, DefaultAccountRoleField, } // FieldRelationships defines relationships between the fields listed in // ConfigurationFields that can be automatically validated. FieldRelationships = []field.SchemaFieldRelationship{} // Config is the configuration schema for the connector. Config = field.NewConfiguration( ConfigurationFields, field.WithConstraints(FieldRelationships...), field.WithConnectorDisplayName("Temporal Cloud"), field.WithHelpUrl("/docs/baton/temporalcloud"), field.WithIconUrl("/static/app-icons/temporalcloud.svg"), ) )
Functions ¶
This section is empty.
Types ¶
type TemporalCloud ¶
type TemporalCloud struct {
ApiKey string `mapstructure:"api-key"`
AllowInsecure bool `mapstructure:"allow-insecure"`
DefaultAccountRole string `mapstructure:"default-account-role"`
}
func (*TemporalCloud) GetBool ¶
func (c *TemporalCloud) GetBool(fieldName string) bool
func (*TemporalCloud) GetInt ¶
func (c *TemporalCloud) GetInt(fieldName string) int
func (*TemporalCloud) GetString ¶
func (c *TemporalCloud) GetString(fieldName string) string
func (*TemporalCloud) GetStringMap ¶
func (c *TemporalCloud) GetStringMap(fieldName string) map[string]any
func (*TemporalCloud) GetStringSlice ¶
func (c *TemporalCloud) GetStringSlice(fieldName string) []string
Click to show internal directories.
Click to hide internal directories.