Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = errors.New("user not found") ErrUserNotSpecified = errors.New("user not specified") )
Functions ¶
Types ¶
type Client ¶
type Client interface { CreateUser(*User) (*User, error) DeleteUser(*User) error FindUserByEmail(string) (*User, error) UpdateUser(*User) (*User, error) }
IClient represents an interface of methods used to communicate with AWS SSO
type HttpClient ¶
HttpClient is a generic HTTP Do interface
type OperationType ¶
type OperationType string
OperationType handle patch operations for add/remove
const ( // OperationAdd is the add operation for a patch OperationAdd OperationType = "add" // OperationRemove is the remove operation for a patch OperationRemove = "remove" )
type User ¶
type User struct { ID string `json:"id,omitempty"` Schemas []string `json:"schemas"` Username string `json:"userName"` Name struct { FamilyName string `json:"familyName"` GivenName string `json:"givenName"` } `json:"name"` DisplayName string `json:"displayName"` Active bool `json:"active"` Emails []UserEmail `json:"emails"` Addresses []UserAddress `json:"addresses"` }
User represents a User in AWS SSO
type UserAddress ¶
type UserAddress struct {
Type string `json:"type"`
}
UserAddress represents address values of users
type UserEmail ¶
type UserEmail struct { Value string `json:"value"` Type string `json:"type"` Primary bool `json:"primary"` }
UserEmail represents a user email address
type UserFilterResults ¶
type UserFilterResults struct { Schemas []string `json:"schemas"` TotalResults int `json:"totalResults"` ItemsPerPage int `json:"itemsPerPage"` StartIndex int `json:"startIndex"` Resources []User `json:"Resources"` }
UserFilterResults represents filtered results when we search for users or List all users
Click to show internal directories.
Click to hide internal directories.