MCPcopy
hub / github.com/seaweedfs/seaweedfs / EmbeddedIamApi

Struct EmbeddedIamApi

weed/s3api/s3api_embedded_iam.go:37–46  ·  view source on GitHub ↗

EmbeddedIamApi provides IAM API functionality embedded in the S3 server. This allows running a single server that handles both S3 and IAM requests.

Source from the content-addressed store, hash-verified

35// EmbeddedIamApi provides IAM API functionality embedded in the S3 server.
36// This allows running a single server that handles both S3 and IAM requests.
37type EmbeddedIamApi struct {
38 credentialManager *credential.CredentialManager
39 iam *IdentityAccessManagement
40 policyLock sync.RWMutex
41 // Test hook
42 getS3ApiConfigurationFunc func(*iam_pb.S3ApiConfiguration) error
43 putS3ApiConfigurationFunc func(*iam_pb.S3ApiConfiguration) error
44 reloadConfigurationFunc func() error
45 readOnly bool
46}
47
48// NewEmbeddedIamApi creates a new embedded IAM API handler.
49func NewEmbeddedIamApi(credentialManager *credential.CredentialManager, iam *IdentityAccessManagement, readOnly bool) *EmbeddedIamApi {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected