Documentation ¶
Index ¶
- Constants
- func NewLibfuseComponent() internal.Component
- type Libfuse
- func (lf *Libfuse) Configure(_ bool) error
- func (lf *Libfuse) Name() string
- func (lf *Libfuse) Priority() internal.ComponentPriority
- func (lf *Libfuse) SetName(name string)
- func (lf *Libfuse) SetNextComponent(nc internal.Component)
- func (lf *Libfuse) Start(ctx context.Context) error
- func (lf *Libfuse) Stop() error
- func (lf *Libfuse) Validate(opt *LibfuseOptions) error
- type LibfuseOptions
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewLibfuseComponent ¶
Pipeline will call this method to create your object, initialize your variables here << DO NOT DELETE ANY AUTO GENERATED CODE HERE >>
Types ¶
type Libfuse ¶
type Libfuse struct { internal.BaseComponent // contains filtered or unexported fields }
Common structure for Component
func (*Libfuse) Configure ¶
Configure : Pipeline will call this method after constructor so that you can read config and initialize yourself
Return failure if any config is not valid to exit the process
func (*Libfuse) Priority ¶
func (lf *Libfuse) Priority() internal.ComponentPriority
func (*Libfuse) SetNextComponent ¶
func (*Libfuse) Start ¶
Start : Pipeline calls this method to start the component functionality
this shall not block the call otherwise pipeline will not start
func (*Libfuse) Validate ¶
func (lf *Libfuse) Validate(opt *LibfuseOptions) error
Validate : Validate available config and convert them if required
type LibfuseOptions ¶
type LibfuseOptions struct { DefaultPermission uint32 `config:"default-permission" yaml:"default-permission,omitempty"` AttributeExpiration uint32 `config:"attribute-expiration-sec" yaml:"attribute-expiration-sec,omitempty"` EntryExpiration uint32 `config:"entry-expiration-sec" yaml:"entry-expiration-sec,omitempty"` NegativeEntryExpiration uint32 `config:"negative-entry-expiration-sec" yaml:"negative-entry-expiration-sec,omitempty"` EnableFuseTrace bool `config:"fuse-trace" yaml:"fuse-trace,omitempty"` ExtensionPath string `config:"extension" yaml:"extension,omitempty"` DisableWritebackCache bool `config:"disable-writeback-cache" yaml:"-"` IgnoreOpenFlags bool `config:"ignore-open-flags" yaml:"ignore-open-flags,omitempty"` Uid uint32 `config:"uid" yaml:"uid,omitempty"` Gid uint32 `config:"gid" yaml:"gid,omitempty"` MaxFuseThreads uint32 `config:"max-fuse-threads" yaml:"max-fuse-threads,omitempty"` DirectIO bool `config:"direct-io" yaml:"direct-io,omitempty"` Umask uint32 `config:"umask" yaml:"umask,omitempty"` // contains filtered or unexported fields }
Structure defining your config parameters
Click to show internal directories.
Click to hide internal directories.