Documentation ¶
Index ¶
- type Store
- func (s *Store) AddTarget(target ark.RawTarget) (artifact ark.RawArtifact, err error)
- func (s *Store) ConnectTargets(edge ark.GraphEdge) error
- func (s *Store) GetGraph() (*dag.AcyclicGraph, error)
- func (s *Store) GetGraphEdges() (edges []ark.GraphEdge, err error)
- func (s *Store) GetTargetByKey(key string) (target ark.RawTarget, err error)
- func (s *Store) GetTargets() (targets []ark.RawTarget, err error)
- func (s *Store) Migrate() error
- func (s *Store) Open(_ string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store an in memory implementation of the ark.Store
func NewCachedMemoryStore ¶
func NewCachedMemoryStore() *Store
NewCachedMemoryStore returns a singleton memory store (idempotent)
func (*Store) ConnectTargets ¶
ConnectTargets adds a graph edge to memory state
func (*Store) GetGraph ¶
func (s *Store) GetGraph() (*dag.AcyclicGraph, error)
GetGraph calculates a DAG from the set of targets and edges
func (*Store) GetGraphEdges ¶
GetGraphEdges returns the list of graph edges in memory
func (*Store) GetTargetByKey ¶
GetTargetByKey returns a target by its key with an error if it doesn't exist or if we fail to cast a target to the correct type
func (*Store) GetTargets ¶
GetTargets returns a list of []ark.RawTarget from the memory state
Click to show internal directories.
Click to hide internal directories.