Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResponse ¶
type AccountResponse struct { Account Account `json:"account"` Organization *organizations.Organization `json:"organization,omitempty"` User *User `json:"user,omitempty"` }
AccountResponse is the API response when requesting information on a account.
type Client ¶
type Client struct {
*up.Config
}
Client is a accounts client.
func NewClient ¶
func NewClient(cfg *up.Config) *Client
NewClient builds a accounts client from the passed config.
type User ¶
type User struct { ID uint `json:"id"` Username string `json:"username"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email,omitempty"` Biography string `json:"biography,omitempty"` Location string `json:"location,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` EnterpriseTrial *time.Time `json:"enterpriseTrial,omitempty"` PersonalTrial *time.Time `json:"personalTrial,omitempty"` }
User is a user on Upbound. TODO(hasheddan): move to user service when implemented.
Click to show internal directories.
Click to hide internal directories.