Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSafety ¶
func CheckSafety(level SafetyLevel, contextName, method string, params interface{}, force bool) error
func IsReadOnlyMethod ¶
Types ¶
type SafetyError ¶
type SafetyError struct {
Code string `json:"code"`
Method string `json:"method"`
Message string `json:"message"`
Resolution string `json:"resolution"`
}
func (*SafetyError) Error ¶
func (e *SafetyError) Error() string
type SafetyErrorEnvelope ¶
type SafetyErrorEnvelope struct {
Error SafetyError `json:"error"`
}
type SafetyLevel ¶
type SafetyLevel string
const ( LevelReadOnly SafetyLevel = "readonly" LevelReadWriteMine SafetyLevel = "readwrite-mine" LevelReadWriteAll SafetyLevel = "readwrite-all" LevelDangerouslyUnrestricted SafetyLevel = "dangerously-unrestricted" )
Click to show internal directories.
Click to hide internal directories.