config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 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 (
	// Add the SchemaFields for the Config.
	ClientId = field.StringField(
		"procore-client-id",
		field.WithDescription("The client ID to use for authentication."),
		field.WithRequired(true),
		field.WithDisplayName("Client ID"),
	)

	ClientSecret = field.StringField(
		"procore-client-secret",
		field.WithDescription("The client secret to use for authentication."),
		field.WithRequired(true),
		field.WithDisplayName("Client Secret"),
		field.WithIsSecret(true),
	)

	ConfigurationFields = []field.SchemaField{ClientId, ClientSecret}

	// FieldRelationships defines relationships between the ConfigurationFields that can be automatically validated.
	// For example, a username and password can be required together, or an access token can be
	// marked as mutually exclusive from the username password pair.
	FieldRelationships = []field.SchemaFieldRelationship{}
)

Functions

This section is empty.

Types

type Procore

type Procore struct {
	ProcoreClientId     string `mapstructure:"procore-client-id"`
	ProcoreClientSecret string `mapstructure:"procore-client-secret"`
}

func (*Procore) GetBool

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

func (*Procore) GetInt

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

func (*Procore) GetString

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

func (*Procore) GetStringMap

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

func (*Procore) GetStringSlice

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