Versions in this module Expand all Collapse all v0 v0.0.2 May 22, 2023 Changes in this version + const EnvSolarwindsOrganizationId + const EnvSolarwindsPassword + const EnvSolarwindsUser + const ErrCodeDeleteActiveUserException + const ErrCodeNetworkException + func Convert(from interface{}, to interface{}) error + func NewErrorAttemptDeleteActiveUser(user string) error + func NewNetworkError(cause error) error + func RandString(n int) string + func ToJsonNoEscape(t interface{}) ([]byte, error) + type ActiveUser struct + Email string + FirstName string + Id string + LastLogin string + LastName string + type ActiveUserList struct + Organization OrganizationWithMembers + OwnerUserId string + type ActiveUserService struct + func (us *ActiveUserService) Get(userId string) (*ActiveUserList, error) + func (us *ActiveUserService) GetByEmail(email string) (*OrganizationMember, error) + func (us *ActiveUserService) List() (*ActiveUserList, error) + func (us *ActiveUserService) Update(update UpdateActiveUserRequest) error + type Client struct + ActiveUserService *ActiveUserService + InvitationService *InvitationService + UserService *UserService + func NewClient(config ClientConfig) (*Client, error) + func (c *Client) Init() error + func (c *Client) MakeGraphQLRequest(graphQLRequest *GraphQLRequest) (*GraphQLResponse, error) + func (c *Client) NewRequest(method string, rsc string, params io.Reader) (*http.Request, error) + type ClientConfig struct + BaseURL string + OrganizationId string + Password string + Username string + type ClientError struct + Err error + StatusCode uint32 + func (c *ClientError) Error() string + type GraphQLRequest struct + OperationName string + Query string + ResponseType string + Variables interface{} + type GraphQLResponse map[string]interface + func NewGraphQLResponse(body io.Reader, key string) (*GraphQLResponse, error) + type Invitation struct + Email string + Products []Product + Role string + type InvitationList struct + Organization OrganizationWithInvitations + OwnerUserId string + type InvitationService struct + func (is *InvitationService) Create(user Invitation) error + func (is *InvitationService) List() (*InvitationList, error) + func (is *InvitationService) Resend(email string) error + func (is *InvitationService) Revoke(email string) error + type OrganizationMember struct + Products []Product + Role string + User ActiveUser + type OrganizationWithInvitations struct + Id string + Invitations []Invitation + type OrganizationWithMembers struct + Id string + Members []OrganizationMember + type Product struct + Name string + Role string + type UpdateActiveUserRequest struct + Email string + Products []Product + Role string + UserId string + type User = Invitation + type UserService struct + ActiveUserService *ActiveUserService + InvitationService *InvitationService + func (us *UserService) Create(user User) error + func (us *UserService) Delete(email string) error + func (us *UserService) Retrieve(email string) (*User, error) + func (us *UserService) Update(update User) error