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 Connector
- type ConnectorsGetCall
- type ConnectorsGetResponse
- type ConnectorsService
- type ConnectorsSetCall
- type ConnectorsSetRequest
- type Service
- type State
- type StateGetCall
- type StateService
Constants ¶
const DiscoveryJSON = `` /* 7819-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 for normal cliens. 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 ). REQUIRED for public // clients 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. If specified in a client create request, it will // be used as the ID. Otherwise, the server will choose the ID. 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"` // Public: OPTIONAL. Determines if the client is public. Public clients // have certain restrictions: They cannot use their credentials to // obtain a client JWT. Their redirects URLs cannot be specified: they // are always http://localhost:$PORT or urn:ietf:wg:oauth:2.0:oob. Public bool `json:"public,omitempty"` // RedirectURIs: REQUIRED for normal clients. 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). DISALLOWED for public // clients. RedirectURIs []string `json:"redirectURIs,omitempty"` // Secret: The client secret. If specified in a client create request, // it will be used as the secret. Otherwise, the server will choose the // secret. Must be a base64 URLEncoded string. Secret string `json:"secret,omitempty"` // TrustedPeers: Array of ClientIDs of clients that are allowed to mint // ID tokens for the client being created. TrustedPeers []string `json:"trustedPeers,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 ConnectorsGetCall ¶ added in v0.5.0
type ConnectorsGetCall struct {
// contains filtered or unexported fields
}
func (*ConnectorsGetCall) Do ¶ added in v0.5.0
func (c *ConnectorsGetCall) Do() (*ConnectorsGetResponse, error)
func (*ConnectorsGetCall) Fields ¶ added in v0.5.0
func (c *ConnectorsGetCall) Fields(s ...googleapi.Field) *ConnectorsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ConnectorsGetResponse ¶ added in v0.5.0
type ConnectorsGetResponse struct {
Connectors []interface{} `json:"connectors,omitempty"`
}
type ConnectorsService ¶ added in v0.5.0
type ConnectorsService struct {
// contains filtered or unexported fields
}
func NewConnectorsService ¶ added in v0.5.0
func NewConnectorsService(s *Service) *ConnectorsService
func (*ConnectorsService) Get ¶ added in v0.5.0
func (r *ConnectorsService) Get() *ConnectorsGetCall
Get: Return a list of the connectors for the dex system.
func (*ConnectorsService) Set ¶ added in v0.5.0
func (r *ConnectorsService) Set(connectorssetrequest *ConnectorsSetRequest) *ConnectorsSetCall
Set: Set the list of connectors for the dex system, overwriting all previous connectors. A 200 status code indicates the action was successful.
type ConnectorsSetCall ¶ added in v0.5.0
type ConnectorsSetCall struct {
// contains filtered or unexported fields
}
func (*ConnectorsSetCall) Do ¶ added in v0.5.0
func (c *ConnectorsSetCall) Do() error
func (*ConnectorsSetCall) Fields ¶ added in v0.5.0
func (c *ConnectorsSetCall) Fields(s ...googleapi.Field) *ConnectorsSetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ConnectorsSetRequest ¶ added in v0.5.0
type ConnectorsSetRequest struct {
Connectors []interface{} `json:"connectors,omitempty"`
}
type Service ¶
type Service struct { BasePath string // API endpoint base URL Admin *AdminService Client *ClientService Connectors *ConnectorsService 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