internal

package
v2.7.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitUnixSocketPermissionsBits

func SplitUnixSocketPermissionsBits(addr string) (path string, fileMode fs.FileMode, err error)

SplitUnixSocketPermissionsBits takes a unix socket address in the unusual "path|bits" format (e.g. /run/caddy.sock|0222) and tries to split it into socket path (host) and permissions bits (port). Colons (":") can't be used as separator, as socket paths on Windows may include a drive letter (e.g. `unix/c:\absolute\path.sock`). Permission bits will default to 0200 if none are specified. Throws an error, if the first carrying bit does not include write perms (e.g. `0422` or `022`). Symbolic permission representation (e.g. `u=w,g=w,o=w`) is not supported and will throw an error for now!

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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