filemode

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateDirMode   = 0o700
	PrivateFileMode  = 0o600
	SharedDirMode    = 0o750
	SharedFileMode   = 0o640
	ArtifactDirMode  = 0o755
	ArtifactFileMode = 0o644
)

Variables

This section is empty.

Functions

func DirMode

func DirMode(class StorageClass) os.FileMode

func EnsureArtifactDir

func EnsureArtifactDir(path string) error

func EnsureDir

func EnsureDir(path string, class StorageClass) error

func EnsureParentArtifactDir

func EnsureParentArtifactDir(path string) error

func EnsureParentDir

func EnsureParentDir(path string, class StorageClass) error

func EnsureParentPrivateDir

func EnsureParentPrivateDir(path string) error

func EnsurePrivateDir

func EnsurePrivateDir(path string) error

func FileMode

func FileMode(class StorageClass) os.FileMode

func OpenFile

func OpenFile(path string, flag int, class StorageClass) (*os.File, error)

func WriteArtifactFile

func WriteArtifactFile(path string, data []byte) error

func WriteFile

func WriteFile(path string, data []byte, class StorageClass) error

func WritePrivateFile

func WritePrivateFile(path string, data []byte) error

Types

type StorageClass

type StorageClass int
const (
	PrivateState StorageClass = iota
	SharedRuntime
	PublishedArtifact
)

Jump to

Keyboard shortcuts

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