mqfs

package
v0.0.0-...-957f62e Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mqfs provides a filesystem implementation to back POSIX message queues.

Index

Constants

View Source
const (
	// Name is the user-visible filesystem name.
	Name = "mqueue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemType

type FilesystemType struct{}

FilesystemType implements vfs.FilesystemType.

+stateify savable

func (FilesystemType) GetFilesystem

func (ft FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)

GetFilesystem implements vfs.FilesystemType.GetFilesystem.

func (FilesystemType) Name

func (FilesystemType) Name() string

Name implements vfs.FilesystemType.Name.

func (FilesystemType) Release

func (FilesystemType) Release(ctx context.Context)

Release implements vfs.FilesystemType.Release.

func (*FilesystemType) StateFields

func (ft *FilesystemType) StateFields() []string

func (*FilesystemType) StateLoad

func (ft *FilesystemType) StateLoad(stateSourceObject state.Source)

+checklocksignore

func (*FilesystemType) StateSave

func (ft *FilesystemType) StateSave(stateSinkObject state.Sink)

+checklocksignore

func (*FilesystemType) StateTypeName

func (ft *FilesystemType) StateTypeName() string

type RegistryImpl

type RegistryImpl struct {
	// contains filtered or unexported fields
}

RegistryImpl implements mq.RegistryImpl. It implements the interface using the message queue filesystem, and is provided to mq.Registry at initialization.

RegistryImpl is not thread-safe, so it is the responsibility of the user (the containing mq.Registry) to protect using a lock.

+stateify savable

func NewRegistryImpl

func NewRegistryImpl(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials) (*RegistryImpl, error)

NewRegistryImpl returns a new, initialized RegistryImpl, and takes a reference on root.

func (*RegistryImpl) Destroy

func (r *RegistryImpl) Destroy(ctx context.Context)

Destroy implements mq.RegistryImpl.Destroy.

func (*RegistryImpl) Get

func (r *RegistryImpl) Get(ctx context.Context, name string, access mq.AccessType, block bool, flags uint32) (*vfs.FileDescription, bool, error)

Get implements mq.RegistryImpl.Get.

func (*RegistryImpl) New

func (r *RegistryImpl) New(ctx context.Context, name string, q *mq.Queue, access mq.AccessType, block bool, perm linux.FileMode, flags uint32) (*vfs.FileDescription, error)

New implements mq.RegistryImpl.New.

func (*RegistryImpl) StateFields

func (r *RegistryImpl) StateFields() []string

func (*RegistryImpl) StateLoad

func (r *RegistryImpl) StateLoad(stateSourceObject state.Source)

+checklocksignore

func (*RegistryImpl) StateSave

func (r *RegistryImpl) StateSave(stateSinkObject state.Sink)

+checklocksignore

func (*RegistryImpl) StateTypeName

func (r *RegistryImpl) StateTypeName() string
func (r *RegistryImpl) Unlink(ctx context.Context, name string) error

Unlink implements mq.RegistryImpl.Unlink.

Jump to

Keyboard shortcuts

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