autoconfigure

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: BSD-3-Clause-Clear Imports: 10 Imported by: 0

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 struct {
	// contains filtered or unexported fields
}

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 (AttributeNameFQN) String added in v0.3.3

func (a AttributeNameFQN) String() string

type AttributeService

type AttributeService struct {
	// contains filtered or unexported fields
}

func (*AttributeService) Get

Given an attribute without a value (everything before /value/...), get the definition

func (*AttributeService) Put

func (s *AttributeService) Put(ad *policy.Attribute) error

type AttributeValueFQN

type AttributeValueFQN struct {
	// contains filtered or unexported fields
}

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 (AttributeValueFQN) String added in v0.3.3

func (a AttributeValueFQN) String() string

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

func NewGranterFromAttributes(attrs ...*policy.Value) (Granter, error)

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

func (Granter) Plan

func (r Granter) Plan(defaultKas []string, genSplitID func() string) ([]SplitStep, error)

type SplitStep

type SplitStep struct {
	KAS, SplitID string
}

Represents a which KAS a split with the associated ID should shared with.

Jump to

Keyboard shortcuts

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