iam

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) GetUser

func (h *Handler) GetUser(ctx context.Context, uuid string) (*User, error)

GetUser gets a specific user by UUID.

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.

func (*Handler) ListUsers

func (h *Handler) ListUsers(ctx context.Context, partialString string, uuids []string, chunkSize int64) (*UserListResponse, error)

ListUsers lists all users 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL