Documentation ¶
Index ¶
- Constants
- Variables
- func VisitorCollectFunc(collect *[]*Resource) visitEachFunc
- type Alias
- type And
- type ById
- type ByProperty
- type ByType
- type ChildrenVisitor
- type Diff
- type FilterFn
- type FirewallRule
- type Grant
- type Graph
- func (g *Graph) Accept(v Visitor) error
- func (g *Graph) AddAppliesOnRelation(parent, child *Resource) error
- func (g *Graph) AddGraph(gph *Graph)
- func (g *Graph) AddParentRelation(parent, child *Resource) error
- func (g *Graph) AddResource(resources ...*Resource) error
- func (g *Graph) Filter(entity string, filters ...FilterFn) (*Graph, error)
- func (g *Graph) FindResource(id string) (*Resource, error)
- func (g *Graph) FindResourcesByProperty(key string, value interface{}) ([]*Resource, error)
- func (g *Graph) GetAllResources(t string) ([]*Resource, error)
- func (g *Graph) GetResource(t string, id string) (*Resource, error)
- func (g *Graph) ListResourcesAppliedOn(start *Resource) ([]*Resource, error)
- func (g *Graph) ListResourcesDependingOn(start *Resource) ([]*Resource, error)
- func (g *Graph) Marshal() ([]byte, error)
- func (g *Graph) MustMarshal() string
- func (g *Graph) ResolveResources(resolvers ...Resolver) ([]*Resource, error)
- func (g *Graph) Unmarshal(data []byte) error
- type ParentsVisitor
- type PortRange
- type Properties
- type Property
- type Resolver
- type Resource
- type ResourceById
- type ResourceType
- type Resources
- type Route
- type RouteTarget
- type SiblingsVisitor
- type Visitor
Constants ¶
View Source
const ( EgressOnlyInternetGatewayTarget routeTargetType = iota GatewayTarget InstanceTarget NatTarget NetworkInterfaceTarget VpcPeeringConnectionTarget )
Variables ¶
View Source
var Differ = &differ{rdf.DefaultDiffer}
Functions ¶
func VisitorCollectFunc ¶
func VisitorCollectFunc(collect *[]*Resource) visitEachFunc
Types ¶
type ByProperty ¶
type ByProperty struct { Name string Val interface{} }
type ChildrenVisitor ¶
func (*ChildrenVisitor) Visit ¶
func (v *ChildrenVisitor) Visit(g *Graph) error
type Diff ¶
func (*Diff) MergedGraph ¶
type FilterFn ¶
func BuildPropertyFilterFunc ¶
type FirewallRule ¶
type FirewallRule struct { PortRange PortRange Protocol string IPRanges []*net.IPNet // IPv4 or IPv6 range }
func (*FirewallRule) String ¶
func (r *FirewallRule) String() string
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func NewGraphFromFile ¶
func (*Graph) AddAppliesOnRelation ¶
func (*Graph) AddParentRelation ¶
func (*Graph) AddResource ¶
func (*Graph) FindResourcesByProperty ¶
func (*Graph) ListResourcesAppliedOn ¶
func (*Graph) ListResourcesDependingOn ¶
func (*Graph) MustMarshal ¶
func (*Graph) ResolveResources ¶
type ParentsVisitor ¶
func (*ParentsVisitor) Visit ¶
func (v *ParentsVisitor) Visit(g *Graph) error
type Properties ¶
type Properties map[string]interface{}
func (Properties) Subtract ¶
func (props Properties) Subtract(other Properties) Properties
type Resource ¶
type Resource struct { Properties Properties Meta Properties // contains filtered or unexported fields }
func InitResource ¶
type ResourceById ¶
type ResourceById []*Resource
func (ResourceById) Len ¶
func (r ResourceById) Len() int
func (ResourceById) Less ¶
func (r ResourceById) Less(i, j int) bool
func (ResourceById) Swap ¶
func (r ResourceById) Swap(i, j int)
type ResourceType ¶
type ResourceType string
func (ResourceType) String ¶
func (r ResourceType) String() string
type Route ¶
type RouteTarget ¶
func (*RouteTarget) String ¶
func (t *RouteTarget) String() string
type SiblingsVisitor ¶
func (*SiblingsVisitor) Visit ¶
func (v *SiblingsVisitor) Visit(g *Graph) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.