v1payload

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Msg string `json:"error"`
}

Error is the error returned by the authentication server.

func (Error) Cause

func (e Error) Cause() error

Cause is implemented to be compatible with the pkg/errors package.

func (Error) Error

func (e Error) Error() string

Error returns the error message.

type GetJWTOutput

type GetJWTOutput struct {
	Token string `json:"token"`
}

GetJWTOutput is output when a JWT is requested

type GetOAuthCredentialsInput

type GetOAuthCredentialsInput struct {
	Code        string `url:"code"`
	ClientID    string `url:"client_id"`
	RedirectURI string `url:"redirect_uri"`
	GrantType   string `url:"grant_type"`
}

GetOAuthCredentialsInput is input for getting oauth credentials

type GetOAuthCredentialsOutput

type GetOAuthCredentialsOutput struct {
	OAuthCredentials
}

GetOAuthCredentialsOutput is output when getting oauth credentials

type GetWorkerJWTOutput

type GetWorkerJWTOutput struct {
	Token  string `json:"token"`
	Secret string `json:"secret"`
}

GetWorkerJWTOutput is output when a worker JWT (JWT + RefreshToken) is requested

type ListProjectsOutput

type ListProjectsOutput struct {
	Projects []*Project
}

ListProjectsOutput contains a list of projects

type OAuthCredentials

type OAuthCredentials struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int    `json:"expires_in"`
	Scope        string `json:"scope,omitempty"`
	TokenType    string `json:"token_type,omitempty"`
}

OAuthCredentials represents the OAuth access tokens

type Project

type Project struct {
	ID   int    `json:"id"`
	URL  string `json:"url"`
	Slug string `json:"slug"`
}

Project represents a project

type RefreshOAuthCredentialsInput

type RefreshOAuthCredentialsInput struct {
	RefreshToken string `url:"refresh_token"`
	ClientID     string `url:"client_id"`
	GrantType    string `url:"grant_type"`
}

RefreshOAuthCredentialsInput is input for refreshing oauth credentials

type RefreshOAuthCredentialsOutput

type RefreshOAuthCredentialsOutput struct {
	OAuthCredentials
}

RefreshOAuthCredentialsOutput is output when refreshing oauth credentials

type RefreshWorkerJWTInput

type RefreshWorkerJWTInput struct {
	Token  string `json:"jwt"`
	Secret string `json:"secret"`
}

RefreshWorkerJWTInput is input for refreshing a JWT

type RefreshWorkerJWTOutput

type RefreshWorkerJWTOutput struct {
	Token string `json:"token"`
}

RefreshWorkerJWTOutput is output when a JWT refresh is requested

Jump to

Keyboard shortcuts

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