Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalid = errors.New("invalid type")
)
Functions ¶
This section is empty.
Types ¶
type AttributeNameFQN ¶
type AttributeNameFQN string
Utility type to represent an FQN for an attribute.
func NewAttributeNameFQN ¶
func NewAttributeNameFQN(u string) (AttributeNameFQN, error)
func (AttributeNameFQN) Authority ¶
func (a AttributeNameFQN) Authority() string
func (AttributeNameFQN) Name ¶
func (a AttributeNameFQN) Name() string
func (AttributeNameFQN) Prefix ¶
func (a AttributeNameFQN) Prefix() string
func (AttributeNameFQN) Select ¶
func (a AttributeNameFQN) Select(v string) AttributeValueFQN
type AttributeService ¶
type AttributeService struct {
// contains filtered or unexported fields
}
func (*AttributeService) Get ¶
func (s *AttributeService) Get(prefix AttributeNameFQN) (*policy.Attribute, error)
Given an attribute without a value (everything before /value/...), get the definition
type AttributeValueFQN ¶
type AttributeValueFQN string
Utility type to represent an FQN for an attribute value.
func NewAttributeValueFQN ¶
func NewAttributeValueFQN(u string) (AttributeValueFQN, error)
func (AttributeValueFQN) Authority ¶
func (a AttributeValueFQN) Authority() string
func (AttributeValueFQN) Name ¶
func (a AttributeValueFQN) Name() string
func (AttributeValueFQN) Prefix ¶
func (a AttributeValueFQN) Prefix() AttributeNameFQN
func (AttributeValueFQN) Value ¶
func (a AttributeValueFQN) Value() string
type Granter ¶
type Granter struct {
// contains filtered or unexported fields
}
Structure capable of generating a split plan from a given set of data tags.
func NewGranterFromAttributes ¶
Given a policy (list of data attributes or tags), get a set of grants from attribute values to KASes. Unlike `NewGranterFromService`, this works offline.
func NewGranterFromService ¶
func NewGranterFromService(ctx context.Context, as attributes.AttributesServiceClient, fqns ...AttributeValueFQN) (Granter, error)
Gets a list of directory of KAS grants for a list of attribute FQNs
Click to show internal directories.
Click to hide internal directories.