Documentation ¶
Index ¶
- func CreateRandomState() string
- func GetAccessToken(o *integrations.OAuthIntegration, conf *oauth2.Config, ...) (string, *time.Time, error)
- func NewDigitalOceanClient(cfg *Config) *oauth2.Config
- func NewGithubClient(cfg *Config) *oauth2.Config
- func NewGoogleClient(cfg *Config) *oauth2.Config
- type Config
- type GithubAppConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRandomState ¶
func CreateRandomState() string
func GetAccessToken ¶
func GetAccessToken( o *integrations.OAuthIntegration, conf *oauth2.Config, repo repository.Repository, ) (string, *time.Time, error)
GetAccessToken retrieves an access token for a given client. It updates the access token in the DB if necessary
func NewDigitalOceanClient ¶
func NewGithubClient ¶
func NewGoogleClient ¶ added in v0.3.1
Types ¶
type GithubAppConf ¶ added in v0.5.0
GithubAppConf is standard oauth2 config but it need to keeps track of the app name and webhook secret
func NewGithubAppClient ¶ added in v0.5.0
func NewGithubAppClient(cfg *Config, name string, secret string) *GithubAppConf
Click to show internal directories.
Click to hide internal directories.