dynamodbpolicystore

package module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttributeDefinition

func NewAttributeDefinition(nameOrPath string, valType string, pk bool, sk bool) *table.AttributeDefinition

func NewDynamicTableInfo

func NewDynamicTableInfo(tableName string, resourceAttrDef, actionsAttrDef, membersAttrDef *table.AttributeDefinition) (*table.TableInfo[rar.DynamicResourceActionRolesMapper], error)

func NewPolicyStoreSvc

func NewPolicyStoreSvc[R rar.ResourceActionRolesMapper](tableInfo *table.TableInfo[R], key []byte, opts ...Opt[R]) (policystore.PolicyBackendSvc[R], error)

func NewSimpleTableInfo

func NewSimpleTableInfo[R rar.ResourceActionRolesMapper](tableName string, sampleItem R) (*table.TableInfo[R], error)

func NewTableDefinitionV2

func NewTableDefinitionV2(jsonStr string) (table.TableDefinition, error)

Types

type Opt

type Opt[R rar.ResourceActionRolesMapper] func(svc *PolicyStoreSvc[R])

func WithDynamodbClientOverride

func WithDynamodbClientOverride[R rar.ResourceActionRolesMapper](client client.DynamodbClient) Opt[R]

type PolicyStoreSvc

type PolicyStoreSvc[R rar.ResourceActionRolesMapper] struct {
	// contains filtered or unexported fields
}

func (*PolicyStoreSvc[R]) GetPolicies

func (s *PolicyStoreSvc[R]) GetPolicies(_ idp.AppInfo) ([]rar.ResourceActionRoles, error)

func (*PolicyStoreSvc[R]) SetPolicy

func (s *PolicyStoreSvc[R]) SetPolicy(aRar rar.ResourceActionRoles) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL