Documentation ¶
Index ¶
- func AddRecords(table eacl.Table, toWhom []eacl.Target, ...) eacl.Table
- func AllowDelete(cid cid.ID, toWhom eacl.Target) (eacl.Table, error)
- func AllowGetPut(cid cid.ID, toWhom eacl.Target) (eacl.Table, error)
- func BuildBearerToken(key *keys.PrivateKey, table *eacl.Table, lIat, lNbf, lExp uint64, ...) (*bearer.Token, error)
- func BuildContainerSessionToken(key *keys.PrivateKey, lIat, lNbf, lExp uint64, cnrID cid.ID, ...) (*session.Container, error)
- func BuildObjectSessionToken(key *keys.PrivateKey, lIat, lNbf, lExp uint64, verb session.ObjectVerb, ...) (*session.Object, error)
- func CalculateEpochsForTime(ctx context.Context, cli *client.Client, durationInSeconds int64) uint64
- func InitTable(cid cid.ID) eacl.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRecords ¶
func AddRecords(table eacl.Table, toWhom []eacl.Target, operations map[eacl.Operation]eacl.Action) eacl.Table
recomend adding all allow records then all deny records
func AllowDelete ¶
AllowOthersReadOnly from https://github.com/nspcc-dev/neofs-s3-gw/blob/fdc07b8dc15272e2aabcbd7bb8c19e435c94e392/authmate/authmate.go#L358
func AllowGetPut ¶
AllowOthersReadOnly from https://github.com/nspcc-dev/neofs-s3-gw/blob/fdc07b8dc15272e2aabcbd7bb8c19e435c94e392/authmate/authmate.go#L358
func BuildBearerToken ¶
func BuildObjectSessionToken ¶
func BuildObjectSessionToken(key *keys.PrivateKey, lIat, lNbf, lExp uint64, verb session.ObjectVerb, cnrID cid.ID, gateSession *client.ResSessionCreate) (*session.Object, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.