Documentation
¶
Index ¶
- type VfsWatchdogOptions
- type VfsWatchdogOptionsTarget
- func (instance *VfsWatchdogOptionsTarget) GetPayload() (response map[string]interface{})
- func (instance *VfsWatchdogOptionsTarget) Location() string
- func (instance *VfsWatchdogOptionsTarget) Map() map[string]interface{}
- func (instance *VfsWatchdogOptionsTarget) String() string
- func (instance *VfsWatchdogOptionsTarget) Uid() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VfsWatchdogOptions ¶
type VfsWatchdogOptions struct {
Uid string `json:"uid"` // watchdog UID
Schedule string `json:"schedule"` // default schedule, used if target has no schedule declared
EnableHistory bool `json:"enable-history"` // enable history
Targets []*VfsWatchdogOptionsTarget `json:"targets"` // target list
AllowedExtensions []string `json:"allowed-extensions"` // array of "whitelisted" files
ForbiddenExtensions []string `json:"forbidden-extensions"` // array of "blacklisted" files
MaxFileSize int `json:"max-file-size"` // max byte size of a file
}
func Create ¶
func Create(args ...any) (response *VfsWatchdogOptions)
func (*VfsWatchdogOptions) IsFileAllowed ¶
func (instance *VfsWatchdogOptions) IsFileAllowed(name string, size int64) (response bool)
func (*VfsWatchdogOptions) Map ¶
func (instance *VfsWatchdogOptions) Map() map[string]interface{}
func (*VfsWatchdogOptions) String ¶
func (instance *VfsWatchdogOptions) String() string
type VfsWatchdogOptionsTarget ¶
type VfsWatchdogOptionsTarget struct {
Schedule string `json:"schedule"` // custom schedule
Payload map[string]interface{} `json:"payload"` // custom data
Vfs *vfsoptions.VfsOptions `json:"vfs"` // vfs settings
}
func (*VfsWatchdogOptionsTarget) GetPayload ¶
func (instance *VfsWatchdogOptionsTarget) GetPayload() (response map[string]interface{})
func (*VfsWatchdogOptionsTarget) Location ¶
func (instance *VfsWatchdogOptionsTarget) Location() string
func (*VfsWatchdogOptionsTarget) Map ¶
func (instance *VfsWatchdogOptionsTarget) Map() map[string]interface{}
func (*VfsWatchdogOptionsTarget) String ¶
func (instance *VfsWatchdogOptionsTarget) String() string
func (*VfsWatchdogOptionsTarget) Uid ¶
func (instance *VfsWatchdogOptionsTarget) Uid() string
Click to show internal directories.
Click to hide internal directories.