Documentation ¶
Index ¶
- Constants
- type AccessInformationValuesArray
- type AccessProviderAttribute
- type AccessProviderMetadata
- type Alg
- type AuthReq
- type AuthResp
- type Classification
- type Client
- func (c *Client) GetAccessToken(authUrl string) (string, error)
- func (c *Client) GetAllActiveStaff() ([]*Person, error)
- func (c *Client) GetAllUsers() ([]*Person, error)
- func (c *Client) GetPersonByEmail(primaryEmail string) (*Person, error)
- func (c *Client) GetPersonByUUID(uuid string) (*Person, error)
- func (c *Client) GetPersonByUserId(userid string) (*Person, error)
- func (c *Client) GetPersonByUsername(primaryUsername string) (*Person, error)
- func (c *Client) GetPersonsInGroups(groups []string) ([]*Person, error)
- func (c *Client) RefreshAccessToken() error
- type DinoParkDisplay
- type HrisAttribute
- type IdentitiesAttributesValuesArray
- type LDAPAttribute
- type Metadata
- type MozilliansorgAttribute
- type Person
- type Publisher
- type PublisherAuthority
- type PublisherLax
- type Signature
- type StaffInformationValuesArray
- type StandardAttributeBoolean
- type StandardAttributeString
- type StandardAttributeValues
- type Typ
Constants ¶
View Source
const ( USERID getMethod = 0 UUID getMethod = 1 PRIMARY_EMAIL getMethod = 2 PRIMARY_USERNAME getMethod = 3 )
View Source
const ( GET_ALL listMethod = 0 GET_ALL_ACTIVE_STAFF listMethod = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessInformationValuesArray ¶
type AccessInformationValuesArray struct { AccessProvider AccessProviderAttribute `json:"access_provider"` Hris HrisAttribute `json:"hris"` LDAP LDAPAttribute `json:"ldap"` Mozilliansorg MozilliansorgAttribute `json:"mozilliansorg"` }
type AccessProviderAttribute ¶
type AccessProviderAttribute struct { Metadata AccessProviderMetadata `json:"metadata"` Signature Signature `json:"signature"` Values map[string]interface{} `json:"values"` }
type AccessProviderMetadata ¶
type AccessProviderMetadata struct { Display interface{} `json:"display"` Classification Classification `json:"classification"` Created string `json:"created"` LastModified string `json:"last_modified"` Verified bool `json:"verified"` }
type Classification ¶
type Classification string
const ( WORKGROUPCONFIDENTIALSTAFFONLY Classification = "WORKGROUP CONFIDENTIAL: STAFF ONLY" WORKGROUPCONFIDENTIAL Classification = "WORKGROUP CONFIDENTIAL" IndividualConfidential Classification = "INDIVIDUAL CONFIDENTIAL" MozillaConfidential Classification = "MOZILLA CONFIDENTIAL" PUBLIC Classification = "PUBLIC" )
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAllActiveStaff ¶
func (*Client) GetAllUsers ¶
func (*Client) GetPersonByEmail ¶
func (*Client) GetPersonByUserId ¶
func (*Client) GetPersonByUsername ¶
func (*Client) GetPersonsInGroups ¶
func (*Client) RefreshAccessToken ¶
type DinoParkDisplay ¶
type DinoParkDisplay string
const ( Authenticated DinoParkDisplay = "authenticated" Ndaed DinoParkDisplay = "ndaed" Private DinoParkDisplay = "private" Staff DinoParkDisplay = "staff" Vouched DinoParkDisplay = "vouched" Public DinoParkDisplay = "public" )
type HrisAttribute ¶
type IdentitiesAttributesValuesArray ¶
type IdentitiesAttributesValuesArray struct { BugzillaMozillaOrgID *StandardAttributeString `json:"bugzilla_mozilla_org_id,omitempty"` BugzillaMozillaOrgPrimaryEmail *StandardAttributeString `json:"bugzilla_mozilla_org_primary_email,omitempty"` Custom1_PrimaryEmail *StandardAttributeString `json:"custom_1_primary_email,omitempty"` Custom2_PrimaryEmail *StandardAttributeString `json:"custom_2_primary_email,omitempty"` Custom3_PrimaryEmail *StandardAttributeString `json:"custom_3_primary_email,omitempty"` FirefoxAccountsID *StandardAttributeString `json:"firefox_accounts_id,omitempty"` FirefoxAccountsPrimaryEmail *StandardAttributeString `json:"firefox_accounts_primary_email,omitempty"` GithubIDV3 *StandardAttributeString `json:"github_id_v3,omitempty"` GithubIDV4 *StandardAttributeString `json:"github_id_v4,omitempty"` GithubPrimaryEmail *StandardAttributeString `json:"github_primary_email,omitempty"` GoogleOauth2ID *StandardAttributeString `json:"google_oauth2_id,omitempty"` GooglePrimaryEmail *StandardAttributeString `json:"google_primary_email,omitempty"` MozillaLDAPID *StandardAttributeString `json:"mozilla_ldap_id,omitempty"` MozillaLDAPPrimaryEmail *StandardAttributeString `json:"mozilla_ldap_primary_email,omitempty"` MozillaPOSIXID *StandardAttributeString `json:"mozilla_posix_id,omitempty"` MozilliansorgID *StandardAttributeString `json:"mozilliansorg_id,omitempty"` }
type LDAPAttribute ¶
type Metadata ¶
type Metadata struct { Classification Classification `json:"classification"` Created string `json:"created"` Display DinoParkDisplay `json:"display"` LastModified string `json:"last_modified"` Verified bool `json:"verified"` }
type MozilliansorgAttribute ¶
type Person ¶
type Person struct { AccessInformation AccessInformationValuesArray `json:"access_information"` Active StandardAttributeBoolean `json:"active"` AlternativeName StandardAttributeString `json:"alternative_name"` Created StandardAttributeString `json:"created"` Description StandardAttributeString `json:"description"` FirstName StandardAttributeString `json:"first_name"` FunTitle StandardAttributeString `json:"fun_title"` Identities IdentitiesAttributesValuesArray `json:"identities"` Languages StandardAttributeValues `json:"languages"` LastModified StandardAttributeString `json:"last_modified"` LastName StandardAttributeString `json:"last_name"` Location StandardAttributeString `json:"location"` LoginMethod StandardAttributeString `json:"login_method"` PGPPublicKeys StandardAttributeValues `json:"pgp_public_keys"` PhoneNumbers StandardAttributeValues `json:"phone_numbers"` Picture StandardAttributeString `json:"picture"` PrimaryEmail StandardAttributeString `json:"primary_email"` PrimaryUsername StandardAttributeString `json:"primary_username"` Pronouns StandardAttributeString `json:"pronouns"` Schema string `json:"schema"` SSHPublicKeys StandardAttributeValues `json:"ssh_public_keys"` StaffInformation StaffInformationValuesArray `json:"staff_information"` Tags StandardAttributeValues `json:"tags"` Timezone StandardAttributeString `json:"timezone"` Uris StandardAttributeValues `json:"uris"` UserID StandardAttributeString `json:"user_id"` Usernames StandardAttributeValues `json:"usernames"` UUID StandardAttributeString `json:"uuid"` }
func UnmarshalPerson ¶
func (*Person) GetLDAPUsername ¶
func (*Person) GetPGPPublicKeys ¶
func (*Person) GetSSHPublicKeys ¶
type Publisher ¶
type Publisher struct { Alg Alg `json:"alg"` Name PublisherAuthority `json:"name"` Typ Typ `json:"typ"` Value string `json:"value"` }
type PublisherAuthority ¶
type PublisherAuthority string
const ( AccessProvider PublisherAuthority = "access_provider" Cis PublisherAuthority = "cis" Hris PublisherAuthority = "hris" LDAP PublisherAuthority = "ldap" Mozilliansorg PublisherAuthority = "mozilliansorg" )
type PublisherLax ¶
type Signature ¶
type Signature struct { Additional []PublisherLax `json:"additional"` Publisher Publisher `json:"publisher"` }
type StaffInformationValuesArray ¶
type StaffInformationValuesArray struct { CostCenter StandardAttributeString `json:"cost_center"` Director StandardAttributeBoolean `json:"director"` Manager StandardAttributeBoolean `json:"manager"` OfficeLocation StandardAttributeString `json:"office_location"` Staff StandardAttributeBoolean `json:"staff"` Team StandardAttributeString `json:"team"` Title StandardAttributeString `json:"title"` WorkerType StandardAttributeString `json:"worker_type"` WprDeskNumber StandardAttributeString `json:"wpr_desk_number"` }
type StandardAttributeString ¶
type StandardAttributeValues ¶
Click to show internal directories.
Click to hide internal directories.