Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { Name string `json:"name"` OwnedBy string `json:"ownedBy"` // name of customer owning the bucket CreatedAt time.Time `json:"createdAt,omitempty"` // default is IS8601 (RFC3339) date format ModifiedAt time.Time `json:"modifiedAt,omitempty"` // default is IS8601 (RFC3339) date format Creator string `json:"creator"` ACLs authz.ACLList `json:"acls"` }
Bucket struct defines a Bucket object information
func NewBucketFromBytes ¶
NewBucketFromBytes creates Bucket object from serialized byte array.
type Customer ¶
type Customer struct { Name string `json:"name"` CreatedAt time.Time `json:"createdAt,omitempty"` // default is IS8601 (RFC3339) date format ModifiedAt time.Time `json:"modifiedAt,omitempty"` // default is IS8601 (RFC3339) date format Groups []string `json:"groups"` // array of user groups binding to the customer account UserIDs []string `json:"userIDs"` // array of individual userIDs binding to the customer account }
Customer struct represents a customer, that can manage multiple groups of users
func (Customer) ContainsGroup ¶
ContainsGroup checks if the given group-name is in the customer
func (Customer) ContainsUser ¶
ContainsUser checks if the given userID is in the customer's individual UserIDs list
func (Customer) HasAnyGroup ¶
HasAnyGroup checks if any of given groups belongs to the customer
type FileObject ¶
FileObject struct object is used for configuring public paths
Click to show internal directories.
Click to hide internal directories.