api

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthAccessToken added in v0.2.2

type OAuthAccessToken struct {
	kapi.TypeMeta   `json:",inline"`
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// ClientName references the client that created this token.
	ClientName string `json:"clientName,omitempty"`

	// ExpiresIn is the seconds from CreationTime before this token expires.
	ExpiresIn int64 `json:"expiresIn,omitempty"`

	// Scopes is an array of the requested scopes.
	Scopes []string `json:"scopes,omitempty"`

	// RedirectURI is the redirection associated with the token.
	RedirectURI string `json:"redirectURI,omitempty"`

	// UserName is the user name associated with this token
	UserName string `json:"userName,omitempty"`

	// UserUID is the unique UID associated with this token
	UserUID string `json:"userUID,omitempty"`

	// AuthorizeToken contains the token that authorized this token
	AuthorizeToken string `json:"authorizeToken,omitempty"`

	// RefreshToken is the value by which this token can be renewed. Can be blank.
	RefreshToken string `json:"refreshToken,omitempty"`
}

func (*OAuthAccessToken) IsAnAPIObject added in v0.2.2

func (*OAuthAccessToken) IsAnAPIObject()

type OAuthAccessTokenList added in v0.2.2

type OAuthAccessTokenList struct {
	kapi.TypeMeta `json:",inline"`
	kapi.ListMeta `json:"metadata,omitempty"`
	Items         []OAuthAccessToken `json:"items"`
}

func (*OAuthAccessTokenList) IsAnAPIObject added in v0.2.2

func (*OAuthAccessTokenList) IsAnAPIObject()

type OAuthAuthorizeToken added in v0.2.2

type OAuthAuthorizeToken struct {
	kapi.TypeMeta   `json:",inline"`
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// ClientName references the client that created this token.
	ClientName string `json:"clientName,omitempty"`

	// ExpiresIn is the seconds from CreationTime before this token expires.
	ExpiresIn int64 `json:"expiresIn,omitempty"`

	// Scopes is an array of the requested scopes.
	Scopes []string `json:"scopes,omitempty"`

	// RedirectURI is the redirection associated with the token.
	RedirectURI string `json:"redirectURI,omitempty"`

	// State data from request
	State string `json:"state,omitempty"`

	// UserName is the user name associated with this token
	UserName string `json:"userName,omitempty"`

	// UserUID is the unique UID associated with this token. UserUID and UserName must both match
	// for this token to be valid.
	UserUID string `json:"userUID,omitempty"`
}

func (*OAuthAuthorizeToken) IsAnAPIObject added in v0.2.2

func (*OAuthAuthorizeToken) IsAnAPIObject()

type OAuthAuthorizeTokenList added in v0.2.2

type OAuthAuthorizeTokenList struct {
	kapi.TypeMeta `json:",inline"`
	kapi.ListMeta `json:"metadata,omitempty"`
	Items         []OAuthAuthorizeToken `json:"items,"`
}

func (*OAuthAuthorizeTokenList) IsAnAPIObject added in v0.2.2

func (*OAuthAuthorizeTokenList) IsAnAPIObject()

type OAuthClient added in v0.2.2

type OAuthClient struct {
	kapi.TypeMeta   `json:",inline"`
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// Secret is the unique secret associated with a client
	Secret string `json:"secret,omitempty"`

	// RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects
	RespondWithChallenges bool `json:"respondWithChallenges,omitempty"`

	// RedirectURIs is the valid redirection URIs associated with a client
	RedirectURIs []string `json:"redirectURIs,omitempty"`
}

func (*OAuthClient) IsAnAPIObject added in v0.2.2

func (*OAuthClient) IsAnAPIObject()

type OAuthClientAuthorization added in v0.2.2

type OAuthClientAuthorization struct {
	kapi.TypeMeta   `json:",inline"`
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// ClientName references the client that created this authorization
	ClientName string `json:"clientName,omitempty"`

	// UserName is the user name that authorized this client
	UserName string `json:"userName,omitempty"`

	// UserUID is the unique UID associated with this authorization. UserUID and UserName
	// must both match for this authorization to be valid.
	UserUID string `json:"userUID,omitempty"`

	// Scopes is an array of the granted scopes.
	Scopes []string `json:"scopes,omitempty"`
}

func (*OAuthClientAuthorization) IsAnAPIObject added in v0.2.2

func (*OAuthClientAuthorization) IsAnAPIObject()

type OAuthClientAuthorizationList added in v0.2.2

type OAuthClientAuthorizationList struct {
	kapi.TypeMeta `json:",inline"`
	kapi.ListMeta `json:"metadata,omitempty"`
	Items         []OAuthClientAuthorization `json:"items"`
}

func (*OAuthClientAuthorizationList) IsAnAPIObject added in v0.2.2

func (*OAuthClientAuthorizationList) IsAnAPIObject()

type OAuthClientList added in v0.2.2

type OAuthClientList struct {
	kapi.TypeMeta `json:",inline"`
	kapi.ListMeta `json:"metadata,omitempty"`
	Items         []OAuthClient `json:"items"`
}

func (*OAuthClientList) IsAnAPIObject added in v0.2.2

func (*OAuthClientList) IsAnAPIObject()

Directories

Path Synopsis
Package validation has functions for validating the correctness of api objects and explaining what is wrong with them when they aren't valid.
Package validation has functions for validating the correctness of api objects and explaining what is wrong with them when they aren't valid.

Jump to

Keyboard shortcuts

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