Documentation ¶
Index ¶
- Constants
- func Service(credentials *settings.Credentials) settings.CRUDService[*users.UserConfig]
- type ServiceClient
- func (cs *ServiceClient) Create(userConfig *users.UserConfig) (*api.Stub, error)
- func (cs *ServiceClient) Delete(id string) error
- func (cs *ServiceClient) Get(id string, v *users.UserConfig) error
- func (cs *ServiceClient) List() (api.Stubs, error)
- func (cs *ServiceClient) SchemaID() string
- func (cs *ServiceClient) Update(userConfig *users.UserConfig) error
Constants ¶
View Source
const SchemaID = "accounts:users"
Variables ¶
This section is empty.
Functions ¶
func Service ¶ added in v1.51.0
func Service(credentials *settings.Credentials) settings.CRUDService[*users.UserConfig]
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 *users.UserConfig) (*api.Stub, 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, v *users.UserConfig) error
Get TODO: documentation
func (*ServiceClient) List ¶ added in v1.51.0
func (cs *ServiceClient) List() (api.Stubs, error)
ListAll TODO: documentation
func (*ServiceClient) SchemaID ¶ added in v1.51.0
func (cs *ServiceClient) SchemaID() string
func (*ServiceClient) Update ¶
func (cs *ServiceClient) Update(userConfig *users.UserConfig) error
Update TODO: documentation
Click to show internal directories.
Click to hide internal directories.