Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grapher ¶
Grapher defines a graph resolution object for finding paths to accounts
func (*Grapher) ResolveAll ¶ added in v2.1.0
ResolveAll selects all matching paths based on provided args
func (*Grapher) ResolveWithOptions ¶ added in v2.10.0
func (g *Grapher) ResolveWithOptions(opts ResolveOptions) (Path, error)
ResolveWithOptions resolves a valid path using the provided options and the graph
type MapCache ¶
type MapCache struct {
// contains filtered or unexported fields
}
MapCache stores credentials in a map object based on the hop information
type NullCache ¶
type NullCache struct{}
NullCache implements an empty cache which stores nothing
type Path ¶
type Path []Hop
Path defines a set of hops to reach the target account
func (Path) Traverse ¶
Traverse executes a path and returns the final resulting credentials using the default set of TraverseOptions
func (Path) TraverseWithOptions ¶
func (p Path) TraverseWithOptions(opts TraverseOptions) (creds.Creds, error)
TraverseWithOptions executes a path and returns the final resulting credentials
type ResolveOptions ¶ added in v2.10.0
ResolveOptions allow passing structured parameters for graph resolution
type TraverseOptions ¶
type TraverseOptions struct { MfaCode string MfaPrompt creds.MfaPrompt Store profiles.Store Cache Cache SessionName string Lifetime int64 UserAgentItems []creds.UserAgentItem }
TraverseOptions defines the parameters for traversing a path
func DefaultTraverseOptions ¶
func DefaultTraverseOptions() TraverseOptions
DefaultTraverseOptions returns a standard set of TraverseOptions