Versions in this module Expand all Collapse all v0 v0.1.0 Jan 13, 2016 Changes in this version + const SortAsc + const SortDesc + const Version + type AssetsService struct + func (a *AssetsService) UpgradeToken() error + type Client struct + Assets *AssetsService + ClientDomain string + ClientID string + ClientJWTSigningMethod string + ClientName string + ClientScopes string + ClientSecret string + CurrentRefreshToken string + CurrentToken string + CurrentTokenExpiresAt int64 + Endpoints map[string]string + IAM *IAMService + LogLevel string + Resources *ResourcesService + TokenExpirationTime uint64 + UserAgent string + func DefaultClient(endpoints map[string]string, ...) (*Client, error) + func NewClient(httpClient *http.Client, endpoints map[string]string, ...) (*Client, error) + func (c *Client) NewRequest(method, endpoint, url string, body interface{}) (*http.Request, error) + func (c *Client) NewRequestContentType(method, endpoint, urlStr, headerContentType, headerAccept string, ...) (*http.Request, error) + func (c *Client) Token() string + func (c *Client) URLFor(endpoint, uri string) string + type IAMAuthConfiguration struct + ClientID string + ClientSecret string + ConsumerKey string + ConsumerSecret string + OAuthServerURL string + RedirectURL string + Type string + type IAMClient struct + ClientSideAuthentication bool + Domain string + ID string + Key string + Name string + ResetNotificationID string + ResetURL string + Scopes []string + SignatureAlgorithm string + Version string + type IAMDomain struct + AllowedDomains string + AuthConfigurations map[string]IAMAuthConfiguration + AuthURL string + CreatedBy string + CreatedDate int + DefaultScopes []string + Description string + ID string + Scopes []string + UserProfileFields []string + type IAMGroup struct + ID string + Name string + Scopes []string + type IAMRule struct + MediaTypes []string + Methods []string + TokenType string + Type string + URI string + type IAMScope struct + Audience string + ID string + Parameters map[string]string + Rules []IAMRule + Scopes []string + Type string + type IAMService struct + func (i *IAMService) ClientAdd(client *IAMClient) (string, error) + func (i *IAMService) ClientDelete(domainName, id string) error + func (i *IAMService) ClientGet(domainName, id string, client *IAMClient) error + func (i *IAMService) ClientSearch(domainName string) *Search + func (i *IAMService) ClientUpdate(id string, client *IAMClient) error + func (i *IAMService) DomainAdd(domain *IAMDomain) (string, error) + func (i *IAMService) DomainDelete(id string) error + func (i *IAMService) DomainGet(id string, domain *IAMDomain) error + func (i *IAMService) DomainSearch() *Search + func (i *IAMService) DomainUpdate(id string, domain *IAMDomain) error + func (i *IAMService) GroupAdd(group *IAMGroup) (string, error) + func (i *IAMService) GroupDelete(id string) error + func (i *IAMService) GroupDeleteScope(id string, scope string) error + func (i *IAMService) GroupGet(id string, group *IAMGroup) error + func (i *IAMService) GroupGetAll(groups []*IAMGroup) error + func (i *IAMService) GroupSetScopes(id string, scopes []string) error + func (i *IAMService) OauthToken() error + func (i *IAMService) OauthTokenBasicAuth(username, password string) error + func (i *IAMService) OauthTokenPrn(username string) error + func (i *IAMService) OauthTokenUpgrade(assetsToken string) error + func (i *IAMService) RefreshToken() error + func (i *IAMService) ScopeAdd(scope *IAMScope) (string, error) + func (i *IAMService) ScopeDelete(id string) error + func (i *IAMService) ScopeGet(id string, scope *IAMScope) error + func (i *IAMService) ScopeUpdate(scope *IAMScope) (string, error) + func (i *IAMService) UserAdd(user *IAMUser) (string, error) + func (i *IAMService) UserAddGroups(userID string, groupIDs []string) error + func (i *IAMService) UserByUsername(username string) (*IAMUser, error) + func (i *IAMService) UserDelete(id string) error + func (i *IAMService) UserDeleteGroup(userID, groupID string) error + func (i *IAMService) UserDeleteMe() error + func (i *IAMService) UserExists(username string) bool + func (i *IAMService) UserGet(id string, user *IAMUser) error + func (i *IAMService) UserGetMe(user *IAMUser) error + func (i *IAMService) UserSearch() *Search + func (i *IAMService) UserUpdate(id string, user *IAMUser) error + func (i *IAMService) UserUpdateMe(user *IAMUser) error + type IAMUser struct + Country string + CreatedBy string + CreatedDate int + Domain string + Email string + FirstName string + Groups []string + ID string + LastName string + Password string + PhoneNumber string + ProfileURL string + Properties map[string]interface{} + Scopes []string + Username string + type RelationData struct + ID string + Links []map[string]interface{} + Order float64 + type ResourcesService struct + func (r *ResourcesService) AddRelation(...) (string, error) + func (r *ResourcesService) AddToCollection(collectionName string, resource interface{}) (string, error) + func (r *ResourcesService) CollectionRequest(method, accept, collectionName string, send interface{}) (*http.Request, error) + func (r *ResourcesService) DeleteACLCollection(id string) error + func (r *ResourcesService) DeleteAllRelations(collectionName, resourceID, relationName string) error + func (r *ResourcesService) DeleteFromCollection(collectionName, id string) error + func (r *ResourcesService) DeleteRelation(...) error + func (r *ResourcesService) GetFromCollection(collectionName, id string, resource interface{}) error + func (r *ResourcesService) GetFromRelationDefinition(id string, resource interface{}) error + func (r *ResourcesService) MarkCollectionAsACL(info interface{}) error + func (r *ResourcesService) MoveRelation(...) (string, error) + func (r *ResourcesService) RelationRequest(method, accept, collectionName, resourceID, relationName, ... string, ...) (*http.Request, error) + func (r *ResourcesService) ResourceRequest(method, accept, collectionName, id string, send interface{}) (*http.Request, error) + func (r *ResourcesService) SearchCollection(collectionName string) *Search + func (r *ResourcesService) SearchRelation(collectionName, resourceID, relationName string) *Search + func (r *ResourcesService) SearchSpecificRelation(...) *Search + func (r *ResourcesService) UpdateACLCollection(id string, info interface{}) error + func (r *ResourcesService) UpdateInCollection(collectionName, id string, resource interface{}) error + func (r *ResourcesService) UpdateResourceACL(collectionName, id string, acl interface{}) error + type Search struct + PageSize int + Query *apiquery + Sort *sort + func NewSearch(client *Client, endpoint, baseURL string) *Search + func (s *Search) Average(field string) (float64, error) + func (s *Search) Count(field string) (int, error) + func (s *Search) CountAll() (int, error) + func (s *Search) Page(pageNumber int, result interface{}) error + func (s *Search) Sum(field string) (float64, error) + type SearchListOptions struct + APIAggregation string + APIPage int + APIPageSize int + APIQuery string + APISort string + type UserACL struct + Permission string + Properties map[string]interface{}