You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							535 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							20 lines
						
					
					
						
							535 B
						
					
					
				| package s3_constants | |
| 
 | |
| //Amazon S3 predefined groups | |
| var ( | |
| 	GranteeGroupAllUsers           = "http://acs.amazonaws.com/groups/global/AllUsers" | |
| 	GranteeGroupAuthenticatedUsers = "http://acs.amazonaws.com/groups/global/AuthenticatedUsers" | |
| 	GranteeGroupLogDelivery        = "http://acs.amazonaws.com/groups/s3/LogDelivery" | |
| ) | |
| 
 | |
| func ValidateGroup(group string) bool { | |
| 	valid := true | |
| 	switch group { | |
| 	case GranteeGroupAllUsers: | |
| 	case GranteeGroupLogDelivery: | |
| 	case GranteeGroupAuthenticatedUsers: | |
| 	default: | |
| 		valid = false | |
| 	} | |
| 	return valid | |
| }
 |