config

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 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 Config = field.NewConfiguration(
	[]field.SchemaField{
		accessTokenField,
		orgsField,
		instanceUrlField,
		syncSecrets,
		appIDField,
		appPrivateKeyPath,
	},
	field.WithConstraints(fieldRelationships...),
	field.WithConnectorDisplayName("GitHub v2"),
	field.WithHelpUrl("/docs/baton/github-v2"),
	field.WithIconUrl("/static/app-icons/github.svg"),
)

Functions

This section is empty.

Types

type Github

type Github struct {
	Token             string   `mapstructure:"token"`
	Orgs              []string `mapstructure:"orgs"`
	InstanceUrl       string   `mapstructure:"instance-url"`
	SyncSecrets       bool     `mapstructure:"sync-secrets"`
	AppId             string   `mapstructure:"app-id"`
	AppPrivatekeyPath string   `mapstructure:"app-privatekey-path"`
}

func (*Github) GetBool

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

func (*Github) GetInt

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

func (*Github) GetString

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

func (*Github) GetStringMap

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

func (*Github) GetStringSlice

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