Documentation
¶
Index ¶
- type AddOption
- type AddOpts
- type Cycle
- type DAG
- func (g *DAG) Add(node string, opt ...AddOption) bool
- func (g *DAG) AddDependencies(sub string, dependencies []string) bool
- func (g *DAG) AddDependency(sub string, dependencies ...string) bool
- func (g *DAG) AddEdge(from, to string) bool
- func (g *DAG) AddLabel(sub string, labels ...string)
- func (g *DAG) AddLabels(sub string, labels []string)
- func (g *DAG) AddNode(name string) bool
- func (g *DAG) AddNodes(names ...string) bool
- func (g *DAG) Plan(opts ...SortOption) (Topology, error)
- func (g *DAG) RemoveEdge(from, to string) bool
- func (g *DAG) Sort(opts ...SortOption) (Topology, error)
- func (d *DAG) WriteDotTo(w io.Writer) error
- type Error
- type NodeInfo
- type Option
- type SortOption
- type SortOptions
- type Topology
- type UnhandledDependency
- type UnhandledDependencyError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Cycle struct {
Path []string
}
Cycle is not a loop :) See https://math.stackexchange.com/questions/1490053
type DAG ¶
type DAG struct {
// contains filtered or unexported fields
}
func (*DAG) RemoveEdge ¶
type SortOption ¶
type SortOption interface {
ApplySortOptions(*SortOptions)
}
func Only ¶
func Only(nodes ...string) SortOption
func SortOptionFunc ¶
func SortOptionFunc(f func(so *SortOptions)) SortOption
func WithDependencies ¶
func WithDependencies() SortOption
func WithoutDependencies ¶
func WithoutDependencies() SortOption
type SortOptions ¶
func (SortOptions) ApplySortOptions ¶
func (so SortOptions) ApplySortOptions(dst *SortOptions)
type UnhandledDependency ¶
type UnhandledDependencyError ¶
type UnhandledDependencyError struct {
UnhandledDependencies []UnhandledDependency
}
func (*UnhandledDependencyError) Error ¶
func (e *UnhandledDependencyError) Error() string
Click to show internal directories.
Click to hide internal directories.