chmodins

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRwxInstructions

type BaseRwxInstructions struct {
	RwxInstructions *[]*RwxInstruction `json:"RwxInstructions,omitempty"`
}

func ParseBaseRwxInstructionsUsingJsonResult

func ParseBaseRwxInstructionsUsingJsonResult(
	result *corejson.Result,
) (*BaseRwxInstructions, error)

func ParseBaseRwxInstructionsUsingJsonResultMust

func ParseBaseRwxInstructionsUsingJsonResultMust(
	result *corejson.Result,
) *BaseRwxInstructions

type RwxInstruction

type RwxInstruction struct {
	RwxOwnerGroupOther
	IsSkipOnNonExist  bool `json:"IsSkipOnNonExist"`
	IsContinueOnError bool `json:"IsContinueOnError"`
	IsRecursive       bool `json:"IsRecursive"`
}

func ParseRwxInstructionUsingJsonResult

func ParseRwxInstructionUsingJsonResult(
	result *corejson.Result,
) (*RwxInstruction, error)

func ParseRwxInstructionUsingJsonResultMust

func ParseRwxInstructionUsingJsonResultMust(
	result *corejson.Result,
) *RwxInstruction

type RwxOwnerGroupOther

type RwxOwnerGroupOther struct {
	// String Index Values
	//  - 0: 'r'/'*'/'-'
	//  - 1: 'w'/'*'/'-'
	//  - 2: 'x'/'*'/'-'
	// Examples can be :
	//  - "rwx" or
	//  - "*wx" or
	//  - "rw*" or
	//  - "***"
	//
	// Length must be 3. Not more not less.
	Owner string `json:"Owner"`
	// String Index Values
	//  - 0: 'r'/'*'/'-'
	//  - 1: 'w'/'*'/'-'
	//  - 2: 'x'/'*'/'-'
	// Examples can be :
	//  - "rwx" or
	//  - "*wx" or
	//  - "rw*" or
	//  - "***"
	//
	// Length must be 3. Not more not less.
	Group string `json:"Group"`
	// String Index Values
	//  - 0: 'r'/'*'/'-'
	//  - 1: 'w'/'*'/'-'
	//  - 2: 'x'/'*'/'-'
	// Examples can be :
	//  - "rwx" or
	//  - "*wx" or
	//  - "rw*" or
	//  - "***"
	//
	// Length must be 3. Not more not less.
	Other string `json:"Other"`
}

RwxOwnerGroupOther

Owner, Group, Other: String Index Values

  • 0: 'r'/'*'/'-'
  • 1: 'w'/'*'/'-'
  • 2: 'x'/'*'/'-'

Examples can be :

  • "rwx" or
  • "*wx" or
  • "rw*" or
  • "***"

Length must be 3. Not more not less.

func (*RwxOwnerGroupOther) Is

func (receiver *RwxOwnerGroupOther) Is(
	ownerRwx,
	groupRwx,
	otherRwx string,
) bool

func (*RwxOwnerGroupOther) IsEqual

func (receiver *RwxOwnerGroupOther) IsEqual(another *RwxOwnerGroupOther) bool

func (*RwxOwnerGroupOther) IsGroup

func (receiver *RwxOwnerGroupOther) IsGroup(rwx string) bool

func (*RwxOwnerGroupOther) IsOther

func (receiver *RwxOwnerGroupOther) IsOther(rwx string) bool

func (*RwxOwnerGroupOther) IsOwner

func (receiver *RwxOwnerGroupOther) IsOwner(rwx string) bool

func (*RwxOwnerGroupOther) String

func (receiver *RwxOwnerGroupOther) String() string

func (*RwxOwnerGroupOther) ToString

func (receiver *RwxOwnerGroupOther) ToString(isIncludeHyphen bool) string

Jump to

Keyboard shortcuts

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