container_discovery/crawler/discovery/discovery-crawler.go

33 lines
573 B
Go
Raw Permalink Normal View History

2018-04-19 11:36:56 +00:00
package discovery
import (
2018-04-26 09:00:24 +00:00
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
2018-04-19 11:36:56 +00:00
"git.loafle.net/overflow/crawler-go"
)
type DiscoveryCrawler struct {
}
2018-06-21 10:54:31 +00:00
func (c *DiscoveryCrawler) Key() string {
2018-04-19 11:36:56 +00:00
return "DISCOVERY"
}
func (c *DiscoveryCrawler) String() string {
return "Discovery"
}
2018-04-23 10:24:00 +00:00
func (c *DiscoveryCrawler) Auth(auth map[string]interface{}) error {
2018-04-19 11:36:56 +00:00
return nil
}
2018-04-26 09:00:24 +00:00
func (c *DiscoveryCrawler) Get(sensorConfig *ocmsc.SensorConfig) (map[string]string, error) {
2018-04-19 11:36:56 +00:00
return nil, nil
}
func NewCrawler() crawler.Crawler {
c := &DiscoveryCrawler{}
return c
}