MCPcopy
hub / github.com/seaweedfs/seaweedfs / PolicyManager

Interface PolicyManager

weed/credential/credential_store.go:132–138  ·  view source on GitHub ↗

PolicyManager interface for managing IAM policies

Source from the content-addressed store, hash-verified

130
131// PolicyManager interface for managing IAM policies
132type PolicyManager interface {
133 GetPolicies(ctx context.Context) (map[string]policy_engine.PolicyDocument, error)
134 CreatePolicy(ctx context.Context, name string, document policy_engine.PolicyDocument) error
135 UpdatePolicy(ctx context.Context, name string, document policy_engine.PolicyDocument) error
136 DeletePolicy(ctx context.Context, name string) error
137 GetPolicy(ctx context.Context, name string) (*policy_engine.PolicyDocument, error)
138}
139
140// InlinePolicyStore is an optional interface for credential stores that support
141// per-user inline policy storage. Stores that implement this interface preserve

Implementers 8

CredentialManagerweed/credential/credential_manager.go
PostgresStoreweed/credential/postgres/postgres_stor
IamGrpcStoreweed/credential/grpc/grpc_store.go
MemoryStoreweed/credential/memory/memory_store.go
FilerEtcStoreweed/credential/filer_etc/filer_etc_st
CredentialStorePolicyManagerweed/admin/dash/policies_management.go
AdminServerweed/admin/dash/admin_server.go
PolicyHandlersweed/admin/handlers/policy_handlers.go

Calls

no outgoing calls

Tested by

no test coverage detected