Documentation ¶
Index ¶
- type Attribute
- type CedarMapper
- func (c *CedarMapper) MapCedarPolicyBytes(location string, cedarBytes []byte) (*hexapolicy.Policies, error)
- func (c *CedarMapper) MapHexaPolicies(location string, policies []hexapolicy.PolicyInfo) (string, error)
- func (c *CedarMapper) MapHexaPolicyBytes(location string, idqlBytes []byte) (string, error)
- type Entity
- type EntityStore
- type ParseSet
- type PolicyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CedarMapper ¶ added in v0.7.2
type CedarMapper struct {
// contains filtered or unexported fields
}
func NewCedarMapper ¶ added in v0.7.2
func NewCedarMapper(attrNameMap map[string]string) *CedarMapper
func (*CedarMapper) MapCedarPolicyBytes ¶ added in v0.7.2
func (c *CedarMapper) MapCedarPolicyBytes(location string, cedarBytes []byte) (*hexapolicy.Policies, error)
func (*CedarMapper) MapHexaPolicies ¶ added in v0.7.2
func (c *CedarMapper) MapHexaPolicies(location string, policies []hexapolicy.PolicyInfo) (string, error)
func (*CedarMapper) MapHexaPolicyBytes ¶ added in v0.7.2
func (c *CedarMapper) MapHexaPolicyBytes(location string, idqlBytes []byte) (string, error)
type EntityStore ¶
type EntityStore struct {
// contains filtered or unexported fields
}
EntityStore represents the complete set of known entities within the system.
func NewEntityStore ¶
func NewEntityStore(r io.Reader) *EntityStore
NewEntityStore returns a new instance of EntityStore.
func (*EntityStore) GetEntities ¶
func (e *EntityStore) GetEntities() ([]Entity, error)
GetEntities retrieves all entities.
func (*EntityStore) GetEntityDescendents ¶
func (e *EntityStore) GetEntityDescendents(parents []string) ([]Entity, error)
GetEntityDescendents retrieves all entities that match or are descendents of those passed in.
func (*EntityStore) SetEntities ¶
func (e *EntityStore) SetEntities(r io.Reader)
SetEntities overrides all entities.
type ParseSet ¶
type ParseSet struct { IdqlPolicies []hexapolicy.PolicyInfo Pairs []PolicyPair Pos int // contains filtered or unexported fields }
func (*ParseSet) MapCedarPolicy ¶
func (*ParseSet) MapHexaPolicy ¶
func (t *ParseSet) MapHexaPolicy(policy hexapolicy.PolicyInfo) (string, error)
type PolicyPair ¶
type PolicyPair struct { HexaPolicy *hexapolicy.PolicyInfo CedarPolicy *cedar.Policy Ast policyjson.PolicyJSON // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.