Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryCache ¶
MemoryCache maintains a mapping of dinghyfiles and their dependencies
func (MemoryCache) GetRoots ¶
func (c MemoryCache) GetRoots(url string) []string
GetRoots returns all roots for a given leaf
func (MemoryCache) SetDeps ¶
func (c MemoryCache) SetDeps(parent string, deps []string)
SetDeps sets the dependencies for a parent
func (MemoryCache) UpstreamURLs ¶
func (c MemoryCache) UpstreamURLs(url string) ([]string, []string)
UpstreamURLs returns two arrays: 1) Array of all upstream URLs from a URL 2) Array of only the root URLs (dinghyfiles) for a given URL
type Node ¶
Node represents either a dinghyfile or a module. The URL is the github URL for the dinghyfile or module that can optionally include the commit hash for versioning purposes.
type RedisCache ¶
type RedisCache struct { Client *redis.Client Logger *log.Entry // contains filtered or unexported fields }
RedisCache maintains a dependency graph inside Redis
func NewRedisCache ¶
func NewRedisCache(redisOptions *redis.Options, logger *log.Logger, ctx context.Context, stop chan os.Signal) *RedisCache
NewRedisCache initializes a new cache
func (*RedisCache) GetRoots ¶
func (c *RedisCache) GetRoots(url string) []string
GetRoots grabs roots
func (*RedisCache) SetDeps ¶
func (c *RedisCache) SetDeps(parent string, deps []string)
SetDeps sets dependencies for a parent
Click to show internal directories.
Click to hide internal directories.