gitlab.com/evatix-go/core@v1.3.55/chmodhelper/ParseRwxInstructionToExecutor.go (about)

     1  package chmodhelper
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/chmodhelper/chmodins"
     5  )
     6  
     7  func ParseRwxInstructionToExecutor(
     8  	rwxInstruction *chmodins.RwxInstruction,
     9  ) (
    10  	*RwxInstructionExecutor, error,
    11  ) {
    12  	if rwxInstruction == nil {
    13  		return nil, rwxInstructionNilErr
    14  	}
    15  
    16  	varWrapper, err := ParseRwxInstructionToVarWrapper(rwxInstruction)
    17  
    18  	return &RwxInstructionExecutor{
    19  		rwxInstruction: rwxInstruction,
    20  		varWrapper:     varWrapper,
    21  	}, err
    22  }