Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Accessed *time.Time `json:"accessed,omitempty"`
Attributes []string `json:"attributes,omitempty"`
CID string `json:"cid,omitempty"`
Ctime *time.Time `json:"ctime,omitempty"`
Created *time.Time `json:"created,omitempty"`
Directory string `json:"directory,omitempty"`
Extension string `json:"extension,omitempty"`
GID string `json:"gid,omitempty"`
Group string `json:"group,omitempty"`
Hash *ecs.Hash `json:"hash,omitempty"`
Inode string `json:"inode,omitempty"`
MimeType string `json:"mime_type,omitempty"`
Mode string `json:"mode,omitempty"`
Mtime *time.Time `json:"mtime,omitempty"`
Name string `json:"name,omitempty"`
Owner string `json:"owner,omitempty"`
Path string `json:"path,omitempty"`
Size int64 `json:"size,omitempty"`
Type string `json:"type,omitempty"`
UID string `json:"uid,omitempty"`
URL string `json:"url,omitempty"`
// contains filtered or unexported fields
} // @name File
File godoc @Description Represents metadata for a file/object on a local/remote file system or storage service.
func (*File) Content ¶
Content returns the File content. If the size of the File content > 0, then the returned byte slice will be a copy of the content, otherwise it will be the zero value.
func (*File) HashOf ¶
HashOf returns the value for the specified hash algorithm for the File.
The zero-value will be returned if the File Hash is nil, the provided algorithm is empty, or does not match one of the algorithms for File.Hash.
func (*File) SetContent ¶
SetContent sets the File content. If the size of the provided content > 0, then File content will be set to a copy.
type Organization ¶
type Organization struct {
Active bool `json:"active"`
Created *time.Time `json:"created"`
BillingEmail sql.NullString `json:"billing_email,omitempty"`
ID uuid.UUID `json:"id"`
Name string `json:"name,omitempty"`
StoragePath []string `json:"storage_path,omitempty"`
Updated *time.Time `json:"updated"`
}
Organization defines the properties for an organization.
func (*Organization) String ¶
func (o *Organization) String() string
String returns a string representation of the Organization.
func (*Organization) Validate ¶
func (o *Organization) Validate(result *validation.Result)
Validate performs validation of an Organization.
type OrganizationUser ¶
type OrganizationUser struct {
OrgID uuid.UUID `json:"org_id"`
UserID uuid.UUID `json:"user_id"`
Role string `json:"role"`
}
OrganizationUser ...
func (*OrganizationUser) String ¶
func (o *OrganizationUser) String() string
String returns a string representation of the OrganizationUser.
type Team ¶
type Team struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Creator uuid.UUID `json:"creator"`
Created *time.Time `json:"created"`
Updated *time.Time `json:"updated"`
}
Team ...
type TeamUser ¶
type TeamUser struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"user_id"`
TeamID uuid.UUID `json:"team_id"`
Created *time.Time `json:"created"`
Updated *time.Time `json:"updated"`
}
TeamUser defines the attributes for a single mapping of a User to a Team.
type User ¶
type User struct {
Active bool `json:"active"`
Created *time.Time `json:"created"`
DisplayName sql.NullString `json:"display_name,omitempty"`
Email string `json:"email"`
EmailVerified bool `json:"email_verified"`
FullName sql.NullString `json:"full_name,omitempty"`
ID uuid.UUID `json:"id"`
LastLogin *time.Time `json:"last_login,omitempty"`
Updated *time.Time `json:"updated"`
}
User defines the properties for a user.
func (*User) Validate ¶
func (u *User) Validate(result *validation.Result)
Validate performs validation of a User.