mirror of
https://github.com/versity/versitygw.git
synced 2026-09-20 23:14:49 +00:00
24 lines
451 B
Go
24 lines
451 B
Go
package auth
|
|
|
|
import "github.com/versity/scoutgw/s3err"
|
|
|
|
type IAMConfig struct {
|
|
AccessAccounts map[string]string
|
|
}
|
|
|
|
type IAMService interface {
|
|
GetIAMConfig() (*IAMConfig, error)
|
|
}
|
|
|
|
type IAMServiceUnsupported struct{}
|
|
|
|
var _ IAMService = &IAMServiceUnsupported{}
|
|
|
|
func New() IAMService {
|
|
return &IAMServiceUnsupported{}
|
|
}
|
|
|
|
func (IAMServiceUnsupported) GetIAMConfig() (*IAMConfig, error) {
|
|
return nil, s3err.GetAPIError(s3err.ErrNotImplemented)
|
|
}
|