Documentation ¶
Index ¶
- type Client
- type Data
- type ExtendedSSHKey
- type GroupMembers
- type Member
- type UserData
- type UserGroup
- type Users
- func (u *Users) AddGroup(group api.Group) ([]byte, error)
- func (u *Users) AddGroupWithParent(group api.Group, parent api.Group) ([]byte, error)
- func (u *Users) AddProjectToGroup(groups api.ProjectGroups) ([]byte, error)
- func (u *Users) AddSSHKeyToUser(user api.User, sshKey api.SSHKey) ([]byte, error)
- func (u *Users) AddUser(user api.User) ([]byte, error)
- func (u *Users) AddUserToGroup(userGroup api.UserGroupRole) ([]byte, error)
- func (u *Users) DeleteGroup(group api.Group) ([]byte, error)
- func (u *Users) DeleteSSHKey(keyName string) ([]byte, error)
- func (u *Users) DeleteUser(user api.User) ([]byte, error)
- func (u *Users) ListGroupProjects(name string, allProjects bool) ([]byte, error)
- func (u *Users) ListGroups(name string) ([]byte, error)
- func (u *Users) ListUserSSHKeys(groupName string, email string, allUsers bool) ([]byte, error)
- func (u *Users) ListUsers(groupName string) ([]byte, error)
- func (u *Users) ModifyUser(user api.User, patch api.User) ([]byte, error)
- func (u *Users) RemoveGroupsFromProject(groups api.ProjectGroups) ([]byte, error)
- func (u *Users) RemoveUserFromGroup(userGroup api.UserGroup) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { AddGroup(api.Group) ([]byte, error) AddUserToGroup(api.UserGroupRole) ([]byte, error) AddProjectToGroup(api.ProjectGroups) ([]byte, error) RemoveUserFromGroup(api.UserGroup) ([]byte, error) RemoveGroupsFromProject(api.ProjectGroups) ([]byte, error) DeleteGroup(api.Group) ([]byte, error) ListUsers(string) ([]byte, error) AddUser(api.User) ([]byte, error) AddSSHKeyToUser(api.User, api.SSHKey) ([]byte, error) DeleteSSHKey(string) ([]byte, error) DeleteUser(api.User) ([]byte, error) ModifyUser(api.User, api.User) ([]byte, error) ListUserSSHKeys(string, string, bool) ([]byte, error) ListGroups(string) ([]byte, error) ListGroupProjects(string, bool) ([]byte, error) }
Client .
type ExtendedSSHKey ¶
ExtendedSSHKey .
type GroupMembers ¶
type GroupMembers []struct { ID string `json:"id"` Members []Member `json:"members"` Name string `json:"name"` }
GroupMembers .
type Member ¶
type Member struct { Role string `json:"role"` User struct { ID string `json:"id"` Email string `json:"email"` FirstName string `json:"firstName"` SSHKeys []api.SSHKey `json:"sshKeys"` LastName string `json:"lastName"` } `json:"user"` }
Member .
type UserData ¶
type UserData struct { ID string `json:"id"` Email string `json:"email"` FirstName string `json:"firstName"` LastName string `json:"lastName"` SSHKeys []api.SSHKey `json:"sshKeys"` Groups []UserGroup `json:"groups"` }
UserData .
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
Users .
func (*Users) AddGroupWithParent ¶
AddGroupWithParent function
func (*Users) AddProjectToGroup ¶
func (u *Users) AddProjectToGroup(groups api.ProjectGroups) ([]byte, error)
AddProjectToGroup function
func (*Users) AddSSHKeyToUser ¶
AddSSHKeyToUser function
func (*Users) AddUserToGroup ¶
func (u *Users) AddUserToGroup(userGroup api.UserGroupRole) ([]byte, error)
AddUserToGroup function
func (*Users) DeleteGroup ¶
DeleteGroup function
func (*Users) DeleteSSHKey ¶
DeleteSSHKey function
func (*Users) DeleteUser ¶
DeleteUser function
func (*Users) ListGroupProjects ¶
ListGroupProjects function
func (*Users) ListGroups ¶
ListGroups function
func (*Users) ListUserSSHKeys ¶
ListUserSSHKeys function
func (*Users) ModifyUser ¶
ModifyUser function
func (*Users) RemoveGroupsFromProject ¶
func (u *Users) RemoveGroupsFromProject(groups api.ProjectGroups) ([]byte, error)
RemoveGroupsFromProject function
Click to show internal directories.
Click to hide internal directories.