Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyCrawlerData ¶
func EmptyCrawlerData() []map[string]interface{}
EmptyCrawlerData is an empty mock
func FullCrawlerData ¶
func FullCrawlerData() []map[string]interface{}
FullCrawlerData is a mock with some data
Types ¶
type Crawler ¶
type Crawler struct { ResourceFn func() string ResourceFnInvoked bool LastCrawledFn func() time.Time LastCrawledFnInvoked bool DoCrawlFn func() error DoCrawlFnInvoked bool ListFn func(int, bool) interface{} ListFnInvoked bool GetFn func(string) map[string]interface{} GetFnInvoked bool CountFn func() int CountFnInvoked bool Data []map[string]interface{} }
The Crawler mock struct holds the mocked implementation for the crawler interface
func (*Crawler) LastCrawled ¶
LastCrawled is the timestamp of the most recent crawl
type EC2Client ¶
type EC2Client struct { DescribeInstancesFn func(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) DescribeInstancesFnInvoked bool }
The EC2Client struct holds the mock implementation of the EC2Client, to facilitate testing
func (*EC2Client) DescribeInstances ¶
func (m *EC2Client) DescribeInstances(params *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
DescribeInstances is a mock implementation of ec2.DescribeInstances
Click to show internal directories.
Click to hide internal directories.