Versions in this module Expand all Collapse all v1 v1.2.0 Oct 2, 2019 Changes in this version + func NewError(code ErrorCode, f string, a ...interface{}) error + type AgentLogin struct + PublicKey *bakery.PublicKey + Username Username + type AgentLoginResponse struct + AgentLogin bool + type CreateAgentBody struct + FullName string + Groups []string + Parent bool + PublicKeys []*bakery.PublicKey + type CreateAgentRequest struct + type CreateAgentResponse struct + Username Username + type DeleteSSHKeysBody struct + SSHKeys []string + type DeleteSSHKeysRequest struct + Body DeleteSSHKeysBody + Username Username + type DischargeTokenForUserRequest struct + Username Username + type DischargeTokenForUserResponse struct + DischargeToken *bakery.Macaroon + type Error struct + Code ErrorCode + Message string + func (e *Error) Cause() error + func (e *Error) Error() string + func (e *Error) ErrorCode() string + type ErrorCode string + const ErrAlreadyExists + const ErrBadRequest + const ErrForbidden + const ErrMethodNotAllowed + const ErrNoAdminCredsProvided + const ErrNotFound + const ErrServiceUnavailable + const ErrUnauthorized + func (code ErrorCode) Error() string + func (code ErrorCode) ErrorCode() ErrorCode + type Groups struct + Groups []string + type IDPChoice struct + IDPs []IDPChoiceDetails + type IDPChoiceDetails struct + Description string + Domain string + Icon string + Name string + URL string + type LoginMethods struct + Agent string + Form string + Interactive string + UbuntuSSODischarge string + UbuntuSSOOAuth string + type ModifyGroups struct + Add []string + Remove []string + type ModifyUserGroupsRequest struct + Groups ModifyGroups + Username Username + type PublicKeyRequest struct + type PublicKeyResponse struct + PublicKey *bakery.PublicKey + type PutSSHKeysBody struct + Add bool + SSHKeys []string + type PutSSHKeysRequest struct + Body PutSSHKeysBody + Username Username + type QueryUsersRequest struct + Email string + ExternalID string + LastDischargeSince string + LastLoginSince string + Owner string + type SSHKeysRequest struct + Username Username + type SSHKeysResponse struct + SSHKeys []string + type SetUserExtraInfoItemRequest struct + Data interface{} + Item string + Username Username + type SetUserExtraInfoRequest struct + ExtraInfo map[string]interface{} + Username Username + type SetUserGroupsRequest struct + Groups Groups + Username Username + type SetUserRequest struct + Username Username + type User struct + Email string + ExternalID string + FullName string + GravatarID string + IDPGroups []string + LastDischarge *time.Time + LastLogin *time.Time + Owner Username + PublicKeys []*bakery.PublicKey + SSHKeys []string + Username Username + type UserExtraInfoItemRequest struct + Item string + Username Username + type UserExtraInfoRequest struct + Username Username + type UserGroupsRequest struct + Username Username + type UserIDPGroupsRequest struct + type UserRequest struct + Username Username + type UserTokenRequest struct + Username Username + type Username string + func (u *Username) UnmarshalText(b []byte) error + type VerifyTokenRequest struct + Macaroons macaroon.Slice + type WhoAmIRequest struct + type WhoAmIResponse struct + User string