Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conditions ¶
func NewConditions ¶
func NewConditions() Conditions
func (*Conditions) Payload ¶
func (c *Conditions) Payload() *webhooks.Conditions
func (*Conditions) SetCount ¶
func (c *Conditions) SetCount(count *uint) error
func (*Conditions) SetSize ¶
func (c *Conditions) SetSize(str *string) error
func (*Conditions) SetTime ¶
func (c *Conditions) SetTime(str *string) error
func (*Conditions) ShouldImport ¶
type FileResource ¶
type FileResource struct { Id int `json:"id" validate:"required"` Name string `json:"name" validate:"required"` Url string `json:"url" validate:"required"` Provider string `json:"provider" validate:"required"` Region string `json:"region" validate:"required"` UploadParams struct { Key string `json:"key" validate:"required"` Bucket string `json:"bucket" validate:"required"` Acl string `json:"private" validate:"required"` Credentials struct { AccessKeyId string `json:"accessKeyId" validate:"required"` SecretAccessKey string `json:"secretAccessKey" validate:"required"` SessionToken string `json:"sessionToken" validate:"required"` Expiration string `json:"expiration" validate:"required"` } } }
FileResource .
type Job ¶
type Job struct { Id int `json:"id" validate:"required"` Error JobError `json:"error" validate:"required"` Status string `json:"status" validate:"required"` Url string `json:"url" validate:"required"` Results map[string]interface{} `json:"results"` }
Job - Storage API job.
type Row ¶
type Token ¶
type Token struct { Id string `json:"id"` Token string `json:"token"` IsMaster bool `json:"isMasterToken"` Owner TokenOwner `json:"owner"` }
func (*Token) ProjectName ¶
type TokenOwner ¶
type Webhook ¶
type Webhook struct { Id uint32 `gorm:"primaryKey;autoIncrement"` Hash WebhookHash `gorm:"type:CHAR(21);index;not null"` ProjectId uint32 Token string `gorm:"type:VARCHAR(255);not null"` TableId string `gorm:"type:VARCHAR(1000);not null"` Size uint64 ImportedAt time.Time `gorm:"not null"` Conditions Conditions `gorm:"embedded;embeddedPrefix:condition_"` Data []Row `gorm:"foreignKey:Webhook"` // only for FK definition }
type WebhookHash ¶
type WebhookHash string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.