primitives

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeProductData added in v0.14.5

type FakeProductData struct {
	Product string
	Plan    string
	Region  string
}

FakeProductData holds all the data we need to do a fake product provisioning call

type OAuthAuthorizationCode

type OAuthAuthorizationCode struct {
	ID            manifold.ID                `json:"id"`
	StructType    string                     `json:"type"`
	StructVersion int                        `json:"version"`
	Body          OAuthAuthorizationCodeBody `json:"body"`
}

OAuthAuthorizationCode represents a short-term code used by a provider to create an Access Token scoped to a User and Resource

func (*OAuthAuthorizationCode) GetID

func (a *OAuthAuthorizationCode) GetID() manifold.ID

GetID returns the current Identifier for this object

func (*OAuthAuthorizationCode) Mutable

func (a *OAuthAuthorizationCode) Mutable()

Mutable represents the fact that this is a Mutable struct

func (*OAuthAuthorizationCode) Type

Type returns the OAuthAuthorizationCode idtype

func (*OAuthAuthorizationCode) Version

func (a *OAuthAuthorizationCode) Version() int

Version returns the current struct version for this object

type OAuthAuthorizationCodeBody

type OAuthAuthorizationCodeBody struct {
	UserID            manifold.ID  `json:"user_id"`
	TeamID            *manifold.ID `json:"team_id,omitempty"`
	InboundResourceID manifold.ID  `json:"resource_id"`
	CreatedAt         time.Time    `json:"created_at"`
	ExpiresAt         time.Time    `json:"expires_at"`
	RedirectURI       string       `json:"redirect_uri,omitempty"`
	Code              string       `json:"code"`
}

OAuthAuthorizationCodeBody represents the contents of an Authorization Code

Jump to

Keyboard shortcuts

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