code: func appendAccessRecords(records []auth.Access, method string, repo string) []auth.Access {
  	resource := auth.Resource{
  		Type: "repository",
  		Name: repo,
  	}
  
  	switch method {
  	case "GET", "HEAD":
  		records = append(records,
  			auth.Access{
  				Resource: resource,
  				Action:   "pull",
  			})
  	case "POST", "PUT", "PATCH":
  		records = append(records,
  			auth.Access{
  				Resource: resource,
  				Action:   "pull",
  			},
  			auth.Access{
  				Resource: resource,
  				Action:   "push",
  			})
  	case "DELETE":
  		records = append(records,
  			auth.Access{
  				Resource: resource,
  				Action:   "delete",
  			})
  	}
  	return records
  }
docs: // appendAccessRecords checks the method and adds the appropriate Access records to the records list.