Documentation
¶
Index ¶
- type Admin
- type AdminCreateRequest
- type AdminList
- type AdminUpdateRequest
- type AuthToken
- type Backups
- type Collection
- type CollectionCreateRequest
- type CollectionImportRequest
- type CollectionList
- type CollectionUpdateRequest
- type EmailTemplate
- type FacebookAuth
- type HealthResponse
- type Logs
- type Meta
- type OAuthConfiguration
- type S3
- type Schema
- type SettingsList
- type SettingsResponse
- type SettingsS3StorageTestRequest
- type SettingsSendTestEmailRequest
- type SettingsUpdateRequest
- type Smtp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminCreateRequest ¶
type AdminUpdateRequest ¶
type Collection ¶
type Collection struct {
pb_models.BaseModel
Name string `json:"name"`
Type string `json:"type"`
Schema []Schema `json:"schema"`
ListRule string `json:"listRule"`
ViewRule string `json:"viewRule"`
CreateRule string `json:"createRule"`
UpdateRule string `json:"updateRule"`
DeleteRule string `json:"deleteRule"`
Options interface{} `json:"options"`
Indexes []string `json:"indexes"`
}
type CollectionCreateRequest ¶
type CollectionCreateRequest struct {
// optional id
Id *string `json:"id,omitempty"`
// required name
Name string `json:"name"`
// required type
Type string `json:"type"`
// required schema
Schema []Schema `json:"schema"`
// optional system
System *bool `json:"system,omitempty"`
// optional listRule
ListRule *string `json:"listRule,omitempty"`
// optional viewRule
ViewRule *string `json:"viewRule,omitempty"`
// optional createRule
CreateRule *string `json:"createRule,omitempty"`
// optional updateRule
UpdateRule *string `json:"updateRule,omitempty"`
// optional deleteRule
DeleteRule *string `json:"deleteRule,omitempty"`
// optional options
Options *interface{} `json:"options,omitempty"`
// optional indexes
Indexes *[]string `json:"indexes,omitempty"`
}
type CollectionImportRequest ¶
type CollectionImportRequest struct {
// required collections
Collections []Collection `json:"collections"`
// optional deleteMissing bool
DeleteMissing *bool `json:"deleteMissing,omitempty"`
}
type CollectionList ¶
type CollectionList struct {
Page int `json:"page"`
PerPage int `json:"perPage"`
TotalItems int `json:"totalItems"`
TotalPages int `json:"totalPages"`
Collections []Collection `json:"items"`
}
type CollectionUpdateRequest ¶
type CollectionUpdateRequest struct {
// required name
Name *string `json:"name,omitempty"`
// required type
Type *string `json:"type,omitempty"`
// required schema
Schema *[]Schema `json:"schema,omitempty"`
// optional system
System *bool `json:"system,omitempty"`
// optional listRule
ListRule *string `json:"listRule,omitempty"`
// optional viewRule
ViewRule *string `json:"viewRule,omitempty"`
// optional createRule
CreateRule *string `json:"createRule,omitempty"`
// optional updateRule
UpdateRule *string `json:"updateRule,omitempty"`
// optional deleteRule
DeleteRule *string `json:"deleteRule,omitempty"`
// optional options
Options *interface{} `json:"options,omitempty"`
// optional indexes
Indexes *[]string `json:"indexes,omitempty"`
}
type EmailTemplate ¶
type FacebookAuth ¶
type HealthResponse ¶
type Meta ¶
type Meta struct {
AppName string `json:"appName"`
AppUrl string `json:"appUrl"`
HideControls *bool `json:"hideControls"`
SenderName string `json:"senderName"`
SenderAddress string `json:"senderAddress"`
VerificationTemplate EmailTemplate `json:"verificationTemplate"`
ResetPasswordTemplate EmailTemplate `json:"resetPasswordTemplate"`
ConfirmEmailChangeTemplate EmailTemplate `json:"confirmEmailChangeTemplate"`
}
type OAuthConfiguration ¶
type SettingsList ¶
type SettingsList struct {
Meta Meta `json:"meta"`
Logs Logs `json:"logs"`
Backups Backups `json:"backups"`
Smtp Smtp `json:"smtp"`
S3 S3 `json:"s3"`
AdminAuthToken AuthToken `json:"adminAuthToken"`
AdminPasswordResetToken AuthToken `json:"adminPasswordResetToken"`
RecordAuthToken AuthToken `json:"recordAuthToken"`
RecordPasswordResetToken AuthToken `json:"recordPasswordResetToken"`
RecordEmailChangeToken AuthToken `json:"recordEmailChangeToken"`
RecordVerificationToken AuthToken `json:"recordVerificationToken"`
GoogleAuth OAuthConfiguration `json:"googleAuth"`
FacebookAuth FacebookAuth `json:"facebookAuth"`
GithubAuth OAuthConfiguration `json:"githubAuth"`
GitlabAuth OAuthConfiguration `json:"gitlabAuth"`
DiscordAuth OAuthConfiguration `json:"discordAuth"`
TwitterAuth OAuthConfiguration `json:"twitterAuth"`
MicrosoftAuth OAuthConfiguration `json:"microsoftAuth"`
SpotifyAuth OAuthConfiguration `json:"spotifyAuth"`
}
type SettingsResponse ¶
type SettingsS3StorageTestRequest ¶
type SettingsS3StorageTestRequest struct {
Filesystem string `json:"filesystem"`
}
type SettingsUpdateRequest ¶
type SettingsUpdateRequest struct {
Meta *Meta `json:"meta,omitempty"`
Logs *Logs `json:"logs,omitempty"`
Backups *Backups `json:"backups,omitempty"`
Smtp *Smtp `json:"smtp,omitempty"`
S3 *S3 `json:"s3,omitempty"`
AdminAuthToken *AuthToken `json:"adminAuthToken,omitempty"`
AdminPasswordResetToken *AuthToken `json:"adminPasswordResetToken,omitempty"`
RecordAuthToken *AuthToken `json:"recordAuthToken,omitempty"`
RecordPasswordResetToken *AuthToken `json:"recordPasswordResetToken,omitempty"`
RecordEmailChangeToken *AuthToken `json:"recordEmailChangeToken,omitempty"`
RecordVerificationToken *AuthToken `json:"recordVerificationToken,omitempty"`
GoogleAuth *OAuthConfiguration `json:"googleAuth,omitempty"`
FacebookAuth *FacebookAuth `json:"facebookAuth,omitempty"`
GithubAuth *OAuthConfiguration `json:"githubAuth,omitempty"`
GitlabAuth *OAuthConfiguration `json:"gitlabAuth,omitempty"`
DiscordAuth *OAuthConfiguration `json:"discordAuth,omitempty"`
TwitterAuth *OAuthConfiguration `json:"twitterAuth,omitempty"`
MicrosoftAuth *OAuthConfiguration `json:"microsoftAuth,omitempty"`
SpotifyAuth *OAuthConfiguration `json:"spotifyAuth,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.