Documentation ¶
Overview ¶
Package adminschema provides access to the Dex Admin API.
See http://github.com/coreos/dex
Usage example:
import "google.golang.org/api/adminschema/v1" ... adminschemaService, err := adminschema.New(oauthHttpClient)
Index ¶
- Constants
- Variables
- func MapSchemaClientToClient(sc Client) (client.Client, error)
- type Admin
- type AdminCreateCall
- type AdminGetCall
- type AdminService
- type Client
- type ClientCreateCall
- type ClientCreateRequest
- type ClientCreateResponse
- type ClientService
- type Service
- type State
- type StateGetCall
- type StateService
Constants ¶
const DiscoveryJSON = `` /* 6028-byte string literal not displayed */
This file is automatically generated by schema/generator
**** DO NOT EDIT ****
Variables ¶
Functions ¶
Types ¶
type AdminCreateCall ¶
type AdminCreateCall struct {
// contains filtered or unexported fields
}
func (*AdminCreateCall) Do ¶
func (c *AdminCreateCall) Do() (*Admin, error)
func (*AdminCreateCall) Fields ¶
func (c *AdminCreateCall) Fields(s ...googleapi.Field) *AdminCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AdminGetCall ¶
type AdminGetCall struct {
// contains filtered or unexported fields
}
func (*AdminGetCall) Do ¶
func (c *AdminGetCall) Do() (*Admin, error)
func (*AdminGetCall) Fields ¶
func (c *AdminGetCall) Fields(s ...googleapi.Field) *AdminGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AdminService ¶
type AdminService struct {
// contains filtered or unexported fields
}
func NewAdminService ¶
func NewAdminService(s *Service) *AdminService
func (*AdminService) Create ¶
func (r *AdminService) Create(admin *Admin) *AdminCreateCall
Create: Create a new admin user.
func (*AdminService) Get ¶
func (r *AdminService) Get(id string) *AdminGetCall
Get: Retrieve information about an admin user.
type Client ¶ added in v0.4.0
type Client struct { // ClientName: OPTIONAL. Name of the Client to be presented to the // End-User. If desired, representation of this Claim in different // languages and scripts is represented as described in Section 2.1 ( // Metadata Languages and Scripts ) . ClientName string `json:"clientName,omitempty"` // ClientURI: OPTIONAL. URL of the home page of the Client. The value of // this field MUST point to a valid Web page. If present, the server // SHOULD display this URL to the End-User in a followable fashion. If // desired, representation of this Claim in different languages and // scripts is represented as described in Section 2.1 ( Metadata // Languages and Scripts ) . ClientURI string `json:"clientURI,omitempty"` // Id: The client ID. Ignored in client create requests. Id string `json:"id,omitempty"` IsAdmin bool `json:"isAdmin,omitempty"` // LogoURI: OPTIONAL. URL that references a logo for the Client // application. If present, the server SHOULD display this image to the // End-User during approval. The value of this field MUST point to a // valid image file. If desired, representation of this Claim in // different languages and scripts is represented as described in // Section 2.1 ( Metadata Languages and Scripts ) . LogoURI string `json:"logoURI,omitempty"` // RedirectURIs: REQUIRED. Array of Redirection URI values used by the // Client. One of these registered Redirection URI values MUST exactly // match the redirect_uri parameter value used in each Authorization // Request, with the matching performed as described in Section 6.2.1 of // [RFC3986] ( Berners-Lee, T., Fielding, R., and L. Masinter, // “Uniform Resource Identifier (URI): Generic Syntax,” January // 2005. ) (Simple String Comparison). RedirectURIs []string `json:"redirectURIs,omitempty"` Secret string `json:"secret,omitempty"` }
func MapClientToSchemaClient ¶ added in v0.4.0
type ClientCreateCall ¶ added in v0.4.0
type ClientCreateCall struct {
// contains filtered or unexported fields
}
func (*ClientCreateCall) Do ¶ added in v0.4.0
func (c *ClientCreateCall) Do() (*ClientCreateResponse, error)
func (*ClientCreateCall) Fields ¶ added in v0.4.0
func (c *ClientCreateCall) Fields(s ...googleapi.Field) *ClientCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ClientCreateRequest ¶ added in v0.4.0
type ClientCreateRequest struct {
Client *Client `json:"client,omitempty"`
}
type ClientCreateResponse ¶ added in v0.4.0
type ClientCreateResponse struct {
Client *Client `json:"client,omitempty"`
}
type ClientService ¶ added in v0.4.0
type ClientService struct {
// contains filtered or unexported fields
}
func NewClientService ¶ added in v0.4.0
func NewClientService(s *Service) *ClientService
func (*ClientService) Create ¶ added in v0.4.0
func (r *ClientService) Create(clientcreaterequest *ClientCreateRequest) *ClientCreateCall
Create: Register an OpenID Connect client.
type Service ¶
type Service struct { BasePath string // API endpoint base URL Admin *AdminService Client *ClientService State *StateService // contains filtered or unexported fields }
type StateGetCall ¶
type StateGetCall struct {
// contains filtered or unexported fields
}
func (*StateGetCall) Do ¶
func (c *StateGetCall) Do() (*State, error)
func (*StateGetCall) Fields ¶
func (c *StateGetCall) Fields(s ...googleapi.Field) *StateGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StateService ¶
type StateService struct {
// contains filtered or unexported fields
}
func NewStateService ¶
func NewStateService(s *Service) *StateService
func (*StateService) Get ¶
func (r *StateService) Get() *StateGetCall
Get: Get the state of the Dex DB