Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubLoginFieldGroup ¶
type GitHubLoginFieldGroup struct { FeatureGithubLogin bool `default:"false" validate:"" json:"FEATURE_GITHUB_LOGIN" yaml:"FEATURE_GITHUB_LOGIN"` GithubLoginConfig *GithubLoginConfigStruct `default:"" validate:"" json:"GITHUB_LOGIN_CONFIG,omitempty" yaml:"GITHUB_LOGIN_CONFIG,omitempty"` }
GitHubLoginFieldGroup represents the GitHubLoginFieldGroup config fields
func NewGitHubLoginFieldGroup ¶
func NewGitHubLoginFieldGroup(fullConfig map[string]interface{}) (*GitHubLoginFieldGroup, error)
NewGitHubLoginFieldGroup creates a new GitHubLoginFieldGroup
func (*GitHubLoginFieldGroup) Fields ¶
func (fg *GitHubLoginFieldGroup) Fields() []string
Fields returns a list of strings representing the fields in this field group
func (*GitHubLoginFieldGroup) Validate ¶
func (fg *GitHubLoginFieldGroup) Validate(opts shared.Options) []shared.ValidationError
Validate checks the configuration settings for this field group
type GithubLoginConfigStruct ¶
type GithubLoginConfigStruct struct { AllowedOrganizations []interface{} `default:"[]" validate:"" json:"ALLOWED_ORGANIZATIONS,omitempty" yaml:"ALLOWED_ORGANIZATIONS,omitempty"` OrgRestrict bool `default:"false" validate:"" json:"ORG_RESTRICT,omitempty" yaml:"ORG_RESTRICT,omitempty"` ApiEndpoint string `default:"" validate:"" json:"API_ENDPOINT,omitempty" yaml:"API_ENDPOINT,omitempty"` GithubEndpoint string `default:"" validate:"" json:"GITHUB_ENDPOINT,omitempty" yaml:"GITHUB_ENDPOINT,omitempty"` ClientId string `default:"" validate:"" json:"CLIENT_ID,omitempty" yaml:"CLIENT_ID,omitempty"` ClientSecret string `default:"" validate:"" json:"CLIENT_SECRET,omitempty" yaml:"CLIENT_SECRET,omitempty"` }
GithubLoginConfigStruct represents the GithubLoginConfigStruct config fields
func NewGithubLoginConfigStruct ¶
func NewGithubLoginConfigStruct(fullConfig map[string]interface{}) (*GithubLoginConfigStruct, error)
NewGithubLoginConfigStruct creates a new GithubLoginConfigStruct
Click to show internal directories.
Click to hide internal directories.