groups

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Permissions = struct {
	Viewer                          Permission
	ManageSettings                  Permission
	AgentInstall                    Permission
	LogViewer                       Permission
	ViewSensitiveRequestData        Permission
	ConfigureRequestCaptureData     Permission
	ReplaySessionData               Permission
	ReplaySessionDataWithoutMasking Permission
	ManageSecurityProblems          Permission
	ManageSupportTickets            Permission
}{
	"VIEWER",
	"MANAGE_SETTINGS",
	"AGENT_INSTALL",
	"LOG_VIEWER",
	"VIEW_SENSITIVE_REQUEST_DATA",
	"CONFIGURE_REQUEST_CAPTURE_DATA",
	"REPLAY_SESSION_DATA",
	"REPLAY_SESSION_DATA_WITHOUT_MASKING",
	"MANAGE_SECURITY_PROBLEMS",
	"MANAGE_SUPPORT_TICKETS",
}

Functions

func EqualStringSlice

func EqualStringSlice(a []string, b []string) bool

func EqualStringSliceMap

func EqualStringSliceMap(a map[string][]string, b map[string][]string) bool

Types

type GroupConfig

type GroupConfig struct {
	ID                  *string             `json:"id"`                       // Group ID. Leave empty if creating group. Set if updating group
	Name                string              `json:"name"`                     // Group name
	IsClusterAdminGroup bool                `json:"isClusterAdminGroup"`      // If true, then the group has the cluster administrator rights
	LDAPGroupNames      []string            `json:"ldapGroupNames,omitempty"` // LDAP group names
	SSOGroupNames       []string            `json:"ssoGroupNames,omitempty"`  // SSO group names. If defined it's used to map SSO group name to Dynatrace group name, otherwise mapping is done by group name
	AccessRight         map[string][]string `json:"accessRight,omitempty"`    // Access rights
	AccessAccount       bool                `json:"accessAccount,omitempty"`  // write-only - no documentation available
	ManageAccount       bool                `json:"manageAccount,omitempty"`  // write-only - no documentation available

}

GroupConfig represents the configuration of the group

func (*GroupConfig) Anonymize

func (me *GroupConfig) Anonymize() *GroupConfig

func (*GroupConfig) Equals

func (me *GroupConfig) Equals(other *GroupConfig) bool

func (*GroupConfig) MarshalHCL

func (me *GroupConfig) MarshalHCL(properties hcl.Properties) error

func (*GroupConfig) Schema

func (me *GroupConfig) Schema() map[string]*schema.Schema

func (*GroupConfig) Slim

func (me *GroupConfig) Slim() *GroupConfig

func (*GroupConfig) UnmarshalHCL

func (me *GroupConfig) UnmarshalHCL(decoder hcl.Decoder) error

type Permission

type Permission string

type PermissionAssignment

type PermissionAssignment struct {
	Permission   Permission
	Environments []string
}

func (*PermissionAssignment) MarshalHCL

func (me *PermissionAssignment) MarshalHCL(properties hcl.Properties) error

func (*PermissionAssignment) Schema

func (me *PermissionAssignment) Schema() map[string]*schema.Schema

func (*PermissionAssignment) UnmarshalHCL

func (me *PermissionAssignment) UnmarshalHCL(decoder hcl.Decoder) error

type PermissionAssignments

type PermissionAssignments []*PermissionAssignment

func (PermissionAssignments) MarshalHCL

func (me PermissionAssignments) MarshalHCL(properties hcl.Properties) error

func (*PermissionAssignments) Schema

func (me *PermissionAssignments) Schema() map[string]*schema.Schema

func (*PermissionAssignments) UnmarshalHCL

func (me *PermissionAssignments) UnmarshalHCL(decoder hcl.Decoder) error

type ServiceClient

type ServiceClient struct {
	// contains filtered or unexported fields
}

ServiceClient TODO: documentation

func NewService

func NewService(baseURL string, token string) *ServiceClient

NewService creates a new Service Client baseURL should look like this: "https://#######.live.dynatrace.com/api/config/v1" token is an API Token

func (*ServiceClient) Create

func (cs *ServiceClient) Create(groupConfig *GroupConfig) (*GroupConfig, error)

Create TODO: documentation

func (*ServiceClient) Delete

func (cs *ServiceClient) Delete(id string) error

Delete TODO: documentation

func (*ServiceClient) Get

func (cs *ServiceClient) Get(id string) (*GroupConfig, error)

Get TODO: documentation

func (*ServiceClient) ListAll

func (cs *ServiceClient) ListAll() ([]*GroupConfig, error)

ListAll TODO: documentation

func (*ServiceClient) Update

func (cs *ServiceClient) Update(groupConfig *GroupConfig) error

Update TODO: documentation

Jump to

Keyboard shortcuts

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