oauthmodel

package
v0.0.0-...-daf4bef Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

GENERATED DO NOT EDIT GENERATOR: scripts/gencode/gencode.go ARGUMENTS: --component model --config ../../config/api.oauth.yml --package oauthmodel --out ./oauthmodel/model.gen.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name          string            `json:"name"`
	ClientID      string            `json:"client_id"`
	ClientSecret  string            `json:"client_secret"`
	AuthURL       string            `json:"auth_url"`
	TokenURL      string            `json:"token_url"`
	RedirectURL   string            `json:"redirect_url"`
	Scopes        []string          `json:"scopes"`
	AuthURLParams map[string]string `json:"auth_url_params"`
	CreatedAt     string            `json:"created_at"`
	UpdatedAt     string            `json:"updated_at"`
}

type DeleteOAuthConfigPathParams

type DeleteOAuthConfigPathParams struct {
	Name string
}

type GetOAuthAuthorizationURLPathParams

type GetOAuthAuthorizationURLPathParams struct {
	Name string
}

type GetOAuthAuthorizationURLResponse

type GetOAuthAuthorizationURLResponse struct {
	URL string `json:"url"`
}

type GetOAuthConfigPathParams

type GetOAuthConfigPathParams struct {
	Name string
}

type GetOAuthTokenPathParams

type GetOAuthTokenPathParams struct {
	Name string
}

type GetOAuthTokenRequest

type GetOAuthTokenRequest struct {
	Code string `json:"code"`
}

type ListOAuthProvidersRequest

type ListOAuthProvidersRequest struct {
	PageToken string `json:"page_token"`
	PageSize  int    `json:"page_size"`
}

type ListOAuthProvidersResponse

type ListOAuthProvidersResponse struct {
	Providers     []*Provider `json:"providers"`
	NextPageToken string      `json:"next_page_token"`
}

type Provider

type Provider struct {
	Name   string  `json:"name"`
	Config *Config `json:"config"`
}

type PutOAuthConfigPathParams

type PutOAuthConfigPathParams struct {
	Name string
}

type Token

type Token struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	RefreshToken string `json:"refresh_token"`
	Expiry       string `json:"expiry"`
}

Jump to

Keyboard shortcuts

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