Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccessToken = field.StringField( "access-token", field.WithDisplayName("Personal access token"), field.WithDescription("The access token to authenticate with the GitLab API"), field.WithRequired(true), field.WithIsSecret(true), ) BaseURL = field.StringField( "base-url", field.WithDisplayName("URL"), field.WithDescription("The base URL of the GitLab instance"), field.WithDefaultValue("https://gitlab.com/"), field.WithRequired(false), ) AccountCreationGroup = field.StringField( "account-creation-group", field.WithDisplayName("Group"), field.WithDescription("The group indicated will be used as a default group for the new users. Required for account creation capability in the Cloud Version."), field.WithRequired(false), ) SyncDirectMembersOnly = field.BoolField( "sync-direct-members-only", field.WithDisplayName("Sync direct members only"), field.WithDescription("When enabled, only sync direct members of groups and projects. Inherited members from parent groups will be excluded from membership grants."), ) // ConfigurationFields defines the external configuration required for the // connector to run. Note: these fields can be marked as optional or // required. ConfigurationFields = []field.SchemaField{ AccessToken, BaseURL, AccountCreationGroup, SyncDirectMembersOnly, } // FieldRelationships defines relationships between the fields listed in // 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{} )
View Source
var Config = field.NewConfiguration( ConfigurationFields, field.WithConstraints(FieldRelationships...), field.WithConnectorDisplayName("GitLab"), field.WithHelpUrl("/docs/baton/gitlab-v2"), field.WithIconUrl("/static/app-icons/gitlab.svg"), )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.