melkor

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

README

Melkor

Build Status Coverage Status Go Report

Purpose

Melkor is a caching layer for AWS, inspired by Edda but intended to be simpler.

**Note: This is early prototype code, with very limited functionality. It might even go nowhere. **

Crawlers

Crawlers are meant to periodically scrape the AWS api and put it into a cache.

API

Get all items:

/v1/aws/{collection}

Get a limited number of items:

/v1/aws/{collection}?_limit=1

Get a list of expanded items:

/v1/aws/{collection}?_expand=true

Get a single item:

/v1/aws/{collection}/{id}

Contributors

  • Rickard Dybeck (alde)

License

Licence

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

type Crawler interface {
	DoCrawl() error
	Resource() string
	List(limit int, expand bool) interface{}
	Get(id string) map[string]interface{}
	LastCrawled() time.Time
	Count() int
}

The Crawler interface sets up the contract for a crawler

type Crawlers

type Crawlers map[string]Crawler

The Crawlers struct holds all the creepy crawlies

func (Crawlers) Get

func (c Crawlers) Get(r string) Crawler

Get fetches a Crawler case-insensitively.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL