model

package
v0.0.0-...-bb30682 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Provider     string        `json:"provider"`
	Enabled      bool          `json:"enabled"`
	GithubConfig *GithubConfig `json:"githubConfig,omitempty"`
	LocalConfig  *LocalConfig  `json:"localConfig,omitempty"`
}

AuthConfig structure contains the AuthConfig definition

func DefaultGithubConfig

func DefaultGithubConfig() AuthConfig

func DefaultLocalConfig

func DefaultLocalConfig() AuthConfig

type AuthError

type AuthError struct {
	Type    string `json:"type"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

AuthError structure contains the error resource definition

type GithubConfig

type GithubConfig struct {
	RedirectURL  string `json:"redirectUrl,omitempty"`
	Hostname     string `json:"hostname,omitempty"`
	Scheme       string `json:"scheme,omitempty"`
	ClientID     string `json:"clientId,omitempty"`
	ClientSecret string `json:"clientSecret,omitempty"`
}

GithubConfig stores the github config read from JSON file

type LocalConfig

type LocalConfig struct {
}

LocalConfig stores the local auth config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL