You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
Updates AWS SDK and removes Blazer B2 dependency in favor of unified S3-compatible approach. Includes configuration examples and documentation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
383 B
Go
24 lines
383 B
Go
package s3manager
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/aws/aws-sdk-go/aws/arn"
|
|
)
|
|
|
|
func validateSupportedARNType(bucket string) error {
|
|
if !arn.IsARN(bucket) {
|
|
return nil
|
|
}
|
|
|
|
parsedARN, err := arn.Parse(bucket)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if parsedARN.Service == "s3-object-lambda" {
|
|
return fmt.Errorf("manager does not support s3-object-lambda service ARNs")
|
|
}
|
|
|
|
return nil
|
|
}
|