config

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var Config = field.NewConfiguration([]field.SchemaField{
	field.StringField(
		"api-key",
		field.WithRequired(true),
		field.WithIsSecret(true),
		field.WithDescription("PandaDoc account API-Key"),
		field.WithDisplayName("API Key"),
		field.WithPlaceholder("Enter your PandaDoc API key"),
	),
	field.BoolField(
		"europe-domain",
		field.WithDisplayName("Use PandaDoc Europe domain"),
		field.WithDescription("PandaDoc API domain. Set to true for europe domain (false by default)."),
		field.WithDefaultValue(false),
	),
	field.StringField(
		"base-url",
		field.WithDescription("Override the PandaDoc API URL (for testing)"),
		field.WithHidden(true),
		field.WithExportTarget(field.ExportTargetCLIOnly),
	),
},
	field.WithConnectorDisplayName("PandaDoc"),
	field.WithIconUrl("/static/app-icons/panda-doc.svg"),
	field.WithHelpUrl("/docs/baton/panda-doc"),
)

Functions

func ValidateConfig

func ValidateConfig(c *PandaDoc) error

Types

type PandaDoc

type PandaDoc struct {
	ApiKey       string `mapstructure:"api-key"`
	EuropeDomain bool   `mapstructure:"europe-domain"`
	BaseUrl      string `mapstructure:"base-url"`
}

func (*PandaDoc) GetBool

func (c *PandaDoc) GetBool(fieldName string) bool

func (*PandaDoc) GetInt

func (c *PandaDoc) GetInt(fieldName string) int

func (*PandaDoc) GetString

func (c *PandaDoc) GetString(fieldName string) string

func (*PandaDoc) GetStringMap

func (c *PandaDoc) GetStringMap(fieldName string) map[string]any

func (*PandaDoc) GetStringSlice

func (c *PandaDoc) 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