Documentation
¶
Index ¶
- type ChmodOptions
- func (c *ChmodOptions) GetPermissions() (int, error)
- func (c *ChmodOptions) GetPermissionsString() (permissionsString string, err error)
- func (c *ChmodOptions) GetUseSudo() (useSudo bool)
- func (c *ChmodOptions) SetPermissionsString(permissionsString string) (err error)
- func (c *ChmodOptions) SetUseSudo(useSudo bool)
- type CreateOptions
- type DeleteOptions
- type WriteOptions
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 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 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
}
Click to show internal directories.
Click to hide internal directories.