Documentation
¶
Index ¶
Constants ¶
View Source
const ErrCodeNoAccountExists = "NoAccountExists"
ErrCodeNoAccountExists ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
GUID string
Name string
Type string
State string
OwnerGUID string
OwnerUserID string
OwnerUniqueID string
CustomerID string
CountryCode string
CurrencyCode string
Organizations []AccountOrganization
Members []AccountMember `json:"members"`
}
Account Model ...
type AccountEntity ¶
type AccountEntity struct {
Name string `json:"name"`
Type string `json:"type"`
State string `json:"state"`
OwnerGUID string `json:"owner"`
OwnerUserID string `json:"owner_userid"`
OwnerUniqueID string `json:"owner_unique_id"`
CustomerID string `json:"customer_id"`
CountryCode string `json:"country_code"`
CurrencyCode string `json:"currency_code"`
Organizations []AccountOrganization `json:"organizations_region"`
Members []AccountMember `json:"members"`
}
AccountEntity ...
type AccountMember ¶
type AccountMember struct {
GUID string `json:"guid"`
UserID string `json:"user_id"`
UniqueID string `json:"unique_id"`
}
AccountMember ...
type AccountNameQueryResponse ¶
type AccountNameQueryResponse struct {
Metadata Metadata
Entity AccountEntity
}
AccountQueryResponse ...
func (AccountNameQueryResponse) ToModel ¶
func (nameQueryResponse AccountNameQueryResponse) ToModel() Account
type AccountOrganization ¶
AccountOrganization ...
type AccountQueryResponse ¶
type AccountQueryResponse struct {
Metadata Metadata
Accounts []AccountResource `json:"resources"`
}
AccountQueryResponse ...
type AccountResource ¶
type AccountResource struct {
Resource
Entity AccountEntity
}
AccountResource ...
type AccountServiceAPI ¶
type AccountServiceAPI interface {
Accounts() Accounts
}
AccountServiceAPI is the accountv2 client ...
type Accounts ¶
type Accounts interface {
List() ([]Account, error)
FindByOrg(orgGUID string, region string) (*Account, error)
FindByOwner(userID string) (*Account, error)
Get(accountId string) (*Account, error)
}
Accounts ...
type GenericPaginatedResourcesHandler ¶
type GenericPaginatedResourcesHandler struct {
// contains filtered or unexported fields
}
func NewAccountPaginatedResources ¶
func NewAccountPaginatedResources(resource interface{}) GenericPaginatedResourcesHandler
Click to show internal directories.
Click to hide internal directories.