vfswatchdog_options

package
v0.3.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VfsWatchdogOptions

type VfsWatchdogOptions struct {
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL