server

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package server implements the sansshell 'LocalFile' service.

Index

Constants

View Source
const (
	// FS_IMMUTABLE_FL is the flag which masks immutable state.
	// While x/sys/unix exposes a lot this particular flag isn't
	// mapped. It's the one to match below for immutable state if
	// the ioctl route has to be taken.
	FS_IMMUTABLE_FL = int(0x00000010)

	// FS_FL_USER_MODIFIABLE is the flag mask of flags that are user modifiable.
	// The ioctl can return more when querying but setting should mask with this first.
	FS_FL_USER_MODIFIABLE = int(0x000380FF)
)

Variables

View Source
var (
	// AbsolutePathError is a typed error for path errors on file/directory names.
	AbsolutePathError = status.Error(codes.InvalidArgument, "filename path must be absolute and clean")

	// ReadTimeout is how long tail should wait on a given poll call
	// before checking context.Err() and possibly looping.
	ReadTimeout = 10 * time.Second
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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