efscommon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChildOutcomeByNameOutcome

func NewChildOutcomeByNameOutcome(noc efs.NameOutcome) efs.ChildOutcome

func NewChildOutcomePathTooLong

func NewChildOutcomePathTooLong(given, allowed int) efs.ChildOutcome

func NewChildOutcomeSuccess

func NewChildOutcomeSuccess() efs.ChildOutcome

func NewName

func NewName(opts ...NameOpt) efs.Name

func NewNameOutcomeInvalidChar

func NewNameOutcomeInvalidChar(invalidChar string) efs.NameOutcome

func NewNameOutcomeNameReserved

func NewNameOutcomeNameReserved(reserved string) efs.NameOutcome

func NewNameOutcomeNameTooLong

func NewNameOutcomeNameTooLong(length, max int) efs.NameOutcome

func NewNameOutcomeSuccess

func NewNameOutcomeSuccess() efs.NameOutcome

func NewNamespace

func NewNamespace(fs efs.FileSystem, ns string) efs.Namespace

Types

type NameOpt

type NameOpt func(opts nameOpts) nameOpts

func DefineMaxNameLength

func DefineMaxNameLength(max int) NameOpt

DefineMaxNameLength define maximum name length (inclusive)

func DefineNameInvalidChars

func DefineNameInvalidChars(chars ...rune) NameOpt

func DefineNameReservedNameIgnoreCase

func DefineNameReservedNameIgnoreCase(names ...string) NameOpt

func DefineNameReservedNames

func DefineNameReservedNames(names ...string) NameOpt

type Path

type Path interface {
	efs.Path
}

func NewPath

func NewPath(fs efs.FileSystem, ns efs.Namespace, pathElements []string) Path

Jump to

Keyboard shortcuts

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