config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by baton-sdk. DO NOT EDIT!!!

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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