Documentation ¶
Index ¶
- type ServiceClient
- func (cs *ServiceClient) Create(userConfig *UserConfig) (*UserConfig, error)
- func (cs *ServiceClient) Delete(id string) error
- func (cs *ServiceClient) Get(id string) (*UserConfig, error)
- func (cs *ServiceClient) ListAll() ([]*UserConfig, error)
- func (cs *ServiceClient) Update(userConfig *UserConfig) error
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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://siz65484.live.dynatrace.com/api/config/v1" token is an API Token
func (*ServiceClient) Create ¶
func (cs *ServiceClient) Create(userConfig *UserConfig) (*UserConfig, 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) (*UserConfig, error)
Get TODO: documentation
func (*ServiceClient) ListAll ¶
func (cs *ServiceClient) ListAll() ([]*UserConfig, error)
ListAll TODO: documentation
func (*ServiceClient) Update ¶
func (cs *ServiceClient) Update(userConfig *UserConfig) error
Update TODO: documentation
type UserConfig ¶
type UserConfig struct { UserName string `json:"id"` // User ID Email string `json:"email"` // User's email address FirstName string `json:"firstName"` // User's first name LastName string `json:"lastName"` // User's last name Groups []string `json:"groups,omitempty"` // List of user's user group IDs }
The configuration of the user
func (*UserConfig) MarshalHCL ¶
func (me *UserConfig) MarshalHCL(properties hcl.Properties) error
func (*UserConfig) UnmarshalHCL ¶
func (me *UserConfig) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.