container_discovery/crawler/discovery/discovery-crawler.go

33 lines
574 B
Go
Raw 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 {
}
func (c *DiscoveryCrawler) Name() string {
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
}