filesoptions

package
v0.486.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChmodOptions added in v0.440.0

type ChmodOptions struct {
	// Set permissions using string like "u=rwx,g=r,o="
	PermissionsString string

	// Use sudo to perform changemod with root priviledges.
	UseSudo bool
}

func NewChmodOptions added in v0.440.0

func NewChmodOptions() (c *ChmodOptions)

func (*ChmodOptions) GetPermissions added in v0.440.0

func (c *ChmodOptions) GetPermissions() (int, error)

func (*ChmodOptions) GetPermissionsString added in v0.440.0

func (c *ChmodOptions) GetPermissionsString() (permissionsString string, err error)

func (*ChmodOptions) GetUseSudo added in v0.440.0

func (c *ChmodOptions) GetUseSudo() (useSudo bool)

func (*ChmodOptions) SetPermissionsString added in v0.440.0

func (c *ChmodOptions) SetPermissionsString(permissionsString string) (err error)

func (*ChmodOptions) SetUseSudo added in v0.440.0

func (c *ChmodOptions) SetUseSudo(useSudo bool)

type CopyOptions added in v0.486.0

type CopyOptions struct {
	// If set to true sudo is used to copy the file:
	UseSudo bool
}

type CreateOptions

type CreateOptions struct {
	// If true a priviledge escallation is performed to create the file or directory as root.
	UseSudo bool
}

type DeleteOptions added in v0.424.0

type DeleteOptions struct {
	// If true a priviledge escallation is performed to delete the file or directory as root.
	UseSudo bool
}

type MoveOptions added in v0.486.0

type MoveOptions struct {
	// If set to true sudo is used to move the file:
	UseSudo bool
}

type ReadOptions added in v0.486.0

type ReadOptions struct {
	// Use sudo to read the file.
	// Useful when access as current user is denied.
	UseSudo bool
}

type WriteOptions added in v0.426.0

type WriteOptions struct {
	// If true a priviledge escallation is performed to write to the file as root.
	UseSudo bool
}

Jump to

Keyboard shortcuts

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