crawlers

package
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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstancesCrawler

type InstancesCrawler struct {
	// contains filtered or unexported fields
}

The InstancesCrawler struct holds the implementation for the interface

func NewInstancesCrawler

func NewInstancesCrawler(c *config.Config) *InstancesCrawler

NewInstancesCrawler is the constructor of this crawler

func (*InstancesCrawler) Count

func (i *InstancesCrawler) Count() int

Count the number of instances crawled

func (*InstancesCrawler) DoCrawl

func (i *InstancesCrawler) DoCrawl() error

DoCrawl handles the crawling of AWS

func (*InstancesCrawler) Get

func (i *InstancesCrawler) Get(id string) map[string]interface{}

Get returns a single instance by id

func (*InstancesCrawler) LastCrawled

func (i *InstancesCrawler) LastCrawled() time.Time

LastCrawled is the timestamp of the most recent crawl

func (*InstancesCrawler) List

func (i *InstancesCrawler) List(limit int, expand bool) interface{}

List instances

func (*InstancesCrawler) Resource

func (i *InstancesCrawler) Resource() string

Resource identifies the name of the crawled resource

Jump to

Keyboard shortcuts

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