Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
Constants ¶
View Source
const ( GithubAppGroup = "github-app-group" GithubPersonalAccessTokenGroup = "personal-access-token-group" )
Variables ¶
View Source
var Config = field.NewConfiguration( []field.SchemaField{ accessTokenField, orgsField, EnterprisesField, instanceUrlField, syncSecrets, omitArchivedRepositories, appIDField, appPrivateKeyPath, orgField, }, field.WithConnectorDisplayName("GitHub v2"), field.WithHelpUrl("/docs/baton/github-v2"), field.WithIconUrl("/static/app-icons/github.svg"), field.WithFieldGroups([]field.SchemaFieldGroup{ { Name: GithubPersonalAccessTokenGroup, DisplayName: "Personal access token", HelpText: "Use a personal access token for authentication.", Fields: []field.SchemaField{accessTokenField, orgsField, omitArchivedRepositories}, Default: true, }, { Name: GithubAppGroup, DisplayName: "GitHub app", HelpText: "Use a github app for authentication", Fields: []field.SchemaField{appIDField, appPrivateKeyPath, orgField, syncSecrets, omitArchivedRepositories}, Default: false, }, }), )
View Source
var ( EnterprisesField = field.StringSliceField( "enterprises", field.WithDisplayName("Enterprises"), field.WithDescription("Sync enterprise roles, must be an admin of the enterprise."), ) )
TODO (mb): Make sure we don't need field.WithRequired(true) for required fields.
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct {
Token string `mapstructure:"token"`
Orgs []string `mapstructure:"orgs"`
Enterprises []string `mapstructure:"enterprises"`
InstanceUrl string `mapstructure:"instance-url"`
SyncSecrets bool `mapstructure:"sync-secrets"`
OmitArchivedRepositories bool `mapstructure:"omit-archived-repositories"`
AppId string `mapstructure:"app-id"`
AppPrivatekeyPath []byte `mapstructure:"app-privatekey-path"`
Org string `mapstructure:"org"`
}
func (*Github) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.