events

package
v3.3.310 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package events provides event types and publishing interfaces for filesystem mount operations.

This package defines a common event system for tracking and responding to mount-related events such as authentication failures. Events implement the MountEvent interface and can be published through an EventPublisher implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationFailedEvent

type AuthenticationFailedEvent struct {
	Reason string
}

AuthenticationFailedEvent represents an authentication failure during mount operations.

type EventPublisher

type EventPublisher interface {
	Publish(MountEvent)
}

EventPublisher defines the interface for publishing mount events.

type MountEvent

type MountEvent interface {
	// contains filtered or unexported methods
}

MountEvent is the marker interface that all mount events implement.

type NoOpEventPublisher

type NoOpEventPublisher struct{}

NoOpEventPublisher is an EventPublisher that does nothing.

func (*NoOpEventPublisher) Publish

func (p *NoOpEventPublisher) Publish(ev MountEvent)

Publish implements the EventPublisher interface but performs no action.

type TransferDirection added in v3.3.112

type TransferDirection string

TransferDirection identifies whether mounted folder file content is moving to or from Files.com.

const (
	TransferDirectionUpload   TransferDirection = "upload"
	TransferDirectionDownload TransferDirection = "download"
)

type TransferEvent added in v3.3.112

type TransferEvent struct {
	ID               string
	Direction        TransferDirection
	LocalPath        string
	RemotePath       string
	Size             int64
	TransferredBytes int64
	Status           TransferStatus
	StartedAt        time.Time
	EndedAt          time.Time
	Error            string
}

TransferEvent reports mounted folder upload and download lifecycle changes.

type TransferStatus added in v3.3.112

type TransferStatus string

TransferStatus identifies the lifecycle state of a mounted folder transfer.

const (
	TransferStatusQueued       TransferStatus = "queued"
	TransferStatusTransferring TransferStatus = "transferring"
	TransferStatusComplete     TransferStatus = "complete"
	TransferStatusErrored      TransferStatus = "errored"
	TransferStatusCanceled     TransferStatus = "canceled"
)

Jump to

Keyboard shortcuts

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