Documentation ¶
Overview ¶
Package workerschema provides access to the Dex API.
See http://github.com/coreos/dex
Usage example:
import "google.golang.org/api/workerschema/v1" ... workerschemaService, err := workerschema.New(oauthHttpClient)
Index ¶
- Constants
- type Error
- type RefreshClient
- type RefreshClientList
- type RefreshClientListCall
- type RefreshClientRevokeCall
- type RefreshClientService
- type ResendEmailInvitationRequest
- type ResendEmailInvitationResponse
- type Service
- type User
- type UserCreateRequest
- type UserCreateResponse
- type UserCreateResponseUser
- type UserDisableRequest
- type UserDisableResponse
- type UserResponse
- type UsersCreateCall
- type UsersDisableCall
- type UsersGetCall
- type UsersListCall
- type UsersResendEmailInvitationCall
- type UsersResponse
- type UsersService
- func (r *UsersService) Create(usercreaterequest *UserCreateRequest) *UsersCreateCall
- func (r *UsersService) Disable(id string, userdisablerequest *UserDisableRequest) *UsersDisableCall
- func (r *UsersService) Get(id string) *UsersGetCall
- func (r *UsersService) List() *UsersListCall
- func (r *UsersService) ResendEmailInvitation(id string, resendemailinvitationrequest *ResendEmailInvitationRequest) *UsersResendEmailInvitationCall
Constants ¶
const DiscoveryJSON = `` /* 7917-byte string literal not displayed */
This file is automatically generated by schema/generator
**** DO NOT EDIT ****
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type RefreshClient ¶ added in v0.4.0
type RefreshClientList ¶ added in v0.4.0
type RefreshClientList struct {
Clients []*RefreshClient `json:"clients,omitempty"`
}
type RefreshClientListCall ¶ added in v0.4.0
type RefreshClientListCall struct {
// contains filtered or unexported fields
}
func (*RefreshClientListCall) Do ¶ added in v0.4.0
func (c *RefreshClientListCall) Do() (*RefreshClientList, error)
func (*RefreshClientListCall) Fields ¶ added in v0.4.0
func (c *RefreshClientListCall) Fields(s ...googleapi.Field) *RefreshClientListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RefreshClientRevokeCall ¶ added in v0.5.0
type RefreshClientRevokeCall struct {
// contains filtered or unexported fields
}
func (*RefreshClientRevokeCall) Do ¶ added in v0.5.0
func (c *RefreshClientRevokeCall) Do() error
func (*RefreshClientRevokeCall) Fields ¶ added in v0.5.0
func (c *RefreshClientRevokeCall) Fields(s ...googleapi.Field) *RefreshClientRevokeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type RefreshClientService ¶ added in v0.4.0
type RefreshClientService struct {
// contains filtered or unexported fields
}
func NewRefreshClientService ¶ added in v0.4.0
func NewRefreshClientService(s *Service) *RefreshClientService
func (*RefreshClientService) List ¶ added in v0.4.0
func (r *RefreshClientService) List(userid string) *RefreshClientListCall
List: List all clients that hold refresh tokens for the specified user.
func (*RefreshClientService) Revoke ¶ added in v0.5.0
func (r *RefreshClientService) Revoke(userid string, clientid string) *RefreshClientRevokeCall
Revoke: Revoke all refresh tokens issues to the client for the specified user.
type ResendEmailInvitationRequest ¶ added in v0.3.0
type ResendEmailInvitationRequest struct {
RedirectURL string `json:"redirectURL,omitempty"`
}
type ResendEmailInvitationResponse ¶ added in v0.3.0
type Service ¶
type Service struct { BasePath string // API endpoint base URL RefreshClient *RefreshClientService Users *UsersService // contains filtered or unexported fields }
type User ¶
type User struct { Admin bool `json:"admin,omitempty"` CreatedAt string `json:"createdAt,omitempty"` Disabled bool `json:"disabled,omitempty"` DisplayName string `json:"displayName,omitempty"` Email string `json:"email,omitempty"` EmailVerified bool `json:"emailVerified,omitempty"` Id string `json:"id,omitempty"` }
type UserCreateRequest ¶
type UserCreateResponse ¶
type UserCreateResponseUser ¶
type UserCreateResponseUser struct { }
type UserDisableRequest ¶ added in v0.2.0
type UserDisableRequest struct { // Disable: If true, disable this user, if false, enable them. No error // is signaled if the user state doesn't change. Disable bool `json:"disable,omitempty"` }
type UserDisableResponse ¶ added in v0.2.0
type UserDisableResponse struct {
Ok bool `json:"ok,omitempty"`
}
type UsersCreateCall ¶
type UsersCreateCall struct {
// contains filtered or unexported fields
}
func (*UsersCreateCall) Do ¶
func (c *UsersCreateCall) Do() (*UserCreateResponse, error)
func (*UsersCreateCall) Fields ¶
func (c *UsersCreateCall) Fields(s ...googleapi.Field) *UsersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersDisableCall ¶ added in v0.2.0
type UsersDisableCall struct {
// contains filtered or unexported fields
}
func (*UsersDisableCall) Do ¶ added in v0.2.0
func (c *UsersDisableCall) Do() (*UserDisableResponse, error)
func (*UsersDisableCall) Fields ¶ added in v0.2.0
func (c *UsersDisableCall) Fields(s ...googleapi.Field) *UsersDisableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersGetCall ¶
type UsersGetCall struct {
// contains filtered or unexported fields
}
func (*UsersGetCall) Do ¶
func (c *UsersGetCall) Do() (*UserResponse, error)
func (*UsersGetCall) Fields ¶
func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersListCall ¶
type UsersListCall struct {
// contains filtered or unexported fields
}
func (*UsersListCall) Do ¶
func (c *UsersListCall) Do() (*UsersResponse, error)
func (*UsersListCall) Fields ¶
func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UsersListCall) MaxResults ¶
func (c *UsersListCall) MaxResults(maxResults int64) *UsersListCall
MaxResults sets the optional parameter "maxResults":
func (*UsersListCall) NextPageToken ¶
func (c *UsersListCall) NextPageToken(nextPageToken string) *UsersListCall
NextPageToken sets the optional parameter "nextPageToken":
type UsersResendEmailInvitationCall ¶ added in v0.3.0
type UsersResendEmailInvitationCall struct {
// contains filtered or unexported fields
}
func (*UsersResendEmailInvitationCall) Do ¶ added in v0.3.0
func (c *UsersResendEmailInvitationCall) Do() (*ResendEmailInvitationResponse, error)
func (*UsersResendEmailInvitationCall) Fields ¶ added in v0.3.0
func (c *UsersResendEmailInvitationCall) Fields(s ...googleapi.Field) *UsersResendEmailInvitationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersResponse ¶
type UsersService ¶
type UsersService struct {
// contains filtered or unexported fields
}
func NewUsersService ¶
func NewUsersService(s *Service) *UsersService
func (*UsersService) Create ¶
func (r *UsersService) Create(usercreaterequest *UserCreateRequest) *UsersCreateCall
Create: Create a new User.
func (*UsersService) Disable ¶ added in v0.2.0
func (r *UsersService) Disable(id string, userdisablerequest *UserDisableRequest) *UsersDisableCall
Disable: Enable or disable a user.
func (*UsersService) Get ¶
func (r *UsersService) Get(id string) *UsersGetCall
Get: Get a single User object by id.
func (*UsersService) List ¶
func (r *UsersService) List() *UsersListCall
List: Retrieve a page of User objects.
func (*UsersService) ResendEmailInvitation ¶ added in v0.3.0
func (r *UsersService) ResendEmailInvitation(id string, resendemailinvitationrequest *ResendEmailInvitationRequest) *UsersResendEmailInvitationCall
ResendEmailInvitation: Resend invitation email to an existing user with unverified email.