Documentation ¶
Index ¶
- Constants
- type AccessGroupMemberRepository
- type AccessGroupRepository
- type AccessGroupUpdateRequest
- type AddGroupMemberRequest
- type AddGroupMemberResponse
- type AddedGroupMember
- type GroupMembers
- type Groups
- type IAMUUMServiceAPI
- type PaginatedResources
- type PaginatedResourcesHandler
- type PaginationFields
- type PaginationHref
Constants ¶
View Source
const ( AccessGroupMemberUser = "user" AccessGroupMemberService = "service" )
View Source
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessGroupMemberRepository ¶
type AccessGroupMemberRepository interface { List(groupID string) ([]models.AccessGroupMember, error) Add(groupID string, request AddGroupMemberRequest) (AddGroupMemberResponse, error) Remove(groupID string, memberID string) error }
func NewAccessGroupMemberRepository ¶
func NewAccessGroupMemberRepository(c *client.Client) AccessGroupMemberRepository
type AccessGroupRepository ¶
type AccessGroupRepository interface { List(accountID string) ([]models.AccessGroup, error) Create(group models.AccessGroup, accountID string) (*models.AccessGroup, error) FindByName(name string, accountID string) ([]models.AccessGroup, error) Delete(accessGroupID string, recursive bool) error Update(accessGroupID string, group AccessGroupUpdateRequest, revision string) (models.AccessGroup, error) Get(accessGroupID string) (group *models.AccessGroup, revision string, err error) }
func NewAccessGroupRepository ¶
func NewAccessGroupRepository(c *client.Client) AccessGroupRepository
type AddGroupMemberRequest ¶
type AddGroupMemberRequest struct {
Members []models.AccessGroupMember `json:"members"`
}
type AddGroupMemberResponse ¶
type AddGroupMemberResponse struct {
Members []AddedGroupMember `json:"members"`
}
type AddedGroupMember ¶
type GroupMembers ¶
type GroupMembers struct { PaginationFields Members []models.AccessGroupMember `json:"members"` }
func (*GroupMembers) Resources ¶
func (gm *GroupMembers) Resources() []interface{}
type Groups ¶
type Groups struct { PaginationFields Groups []models.AccessGroup `json:"groups"` }
type IAMUUMServiceAPI ¶
type IAMUUMServiceAPI interface { AccessGroup() AccessGroupRepository AccessGroupMember() AccessGroupMemberRepository }
IAMUUMServiceAPI is the resource client ...
type PaginatedResources ¶
type PaginatedResourcesHandler ¶
type PaginatedResourcesHandler struct {
// contains filtered or unexported fields
}
func NewPaginatedResourcesHandler ¶
func NewPaginatedResourcesHandler(resources PaginatedResources) PaginatedResourcesHandler
type PaginationFields ¶
type PaginationFields struct { First PaginationHref `json:"first"` Last PaginationHref `json:"last"` Next PaginationHref `json:"next"` Previous PaginationHref `json:"previous"` Offset int `json:"offset"` Limit int `json:"limit"` TotalCount int `json:"total_count"` }
func (*PaginationFields) NextPath ¶
func (p *PaginationFields) NextPath() (string, error)
type PaginationHref ¶
type PaginationHref struct {
Href string `json:"href"`
}
Click to show internal directories.
Click to hide internal directories.