code: func isPolicyValid(policy string) bool {
  	switch policy {
  	case PolicyDeny:
  		return true
  	case PolicyRead:
  		return true
  	case PolicyWrite:
  		return true
  	default:
  		return false
  	}
  }
docs: // isPolicyValid makes sure the given string matches one of the valid policies.