Documentation
¶
Index ¶
- type Group
- type GroupListResponse
- type Handler
- func (h *Handler) GetUser(ctx context.Context, uuid string) (*User, error)
- func (h *Handler) ListGroups(ctx context.Context, partialGroupName string, uuids []string, chunkSize int64) (*GroupListResponse, error)
- func (h *Handler) ListUsers(ctx context.Context, partialString string, uuids []string, chunkSize int64) (*UserListResponse, error)
- type User
- type UserListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
UUID string `json:"uuid"`
GroupName string `json:"groupName"`
Type string `json:"type"`
}
Group represents a Dynatrace group.
type GroupListResponse ¶
type GroupListResponse struct {
Results []Group `json:"results"`
NextPageKey string `json:"nextPageKey,omitempty"`
TotalCount int64 `json:"totalCount"`
}
GroupListResponse represents a list of groups.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles IAM resources.
func NewHandler ¶
func NewHandler(c *httpclient.Client) *Handler
NewHandler creates a new IAM handler.
func (*Handler) ListGroups ¶
func (h *Handler) ListGroups(ctx context.Context, partialGroupName string, uuids []string, chunkSize int64) (*GroupListResponse, error)
ListGroups lists all groups in the current environment with automatic pagination.
type User ¶
type User struct {
UID string `json:"uid"`
Email string `json:"email"`
Name string `json:"name,omitempty"`
Surname string `json:"surname,omitempty"`
Description string `json:"description,omitempty"`
}
User represents a Dynatrace user.
type UserListResponse ¶
type UserListResponse struct {
Results []User `json:"results"`
NextPageKey string `json:"nextPageKey,omitempty"`
TotalCount int64 `json:"totalCount"`
}
UserListResponse represents a list of users.