Documentation ¶
Index ¶
- Constants
- Variables
- func DocumentUrlDecode(content string) (string, error)
- func GetEquipAttribute(equipments []shared.MinerConfigEquipment, info EquipmentInfo) string
- func GetProperties(serviceClient Client, identifier string, datum CacheInfo, ...) (shared.MinerResource, error)
- type AwsProfile
- type CacheInfo
- type Client
- type Crawler
- type CrawlerConstructor
- type EquipmentInfo
- type MMError
- type PropsCrawler
- type PropsCrawlerConstructor
Constants ¶
View Source
const ( NoProps = "NoProperties" NoConfig = "NoConfiguration" )
Variables ¶
View Source
var ErrAttributeNotFound = errors.New("miner configuration attribute not found")
Functions ¶
func DocumentUrlDecode ¶
DocumentUrlDecode decodes a json formatted URL-encoded string and returns the decoded result.
func GetEquipAttribute ¶
func GetEquipAttribute( equipments []shared.MinerConfigEquipment, info EquipmentInfo, ) string
GetEquipAttribute read from given equipments and return the attribute value that matches the given EquipmentInfo. If the attribute is not found, return the default value in equipment info.
func GetProperties ¶
func GetProperties( serviceClient Client, identifier string, datum CacheInfo, constructors []PropsCrawlerConstructor, ) (shared.MinerResource, error)
Types ¶
type AwsProfile ¶
func ConfigAuth ¶
func ConfigAuth(mineConfig shared.MinerConfig) (AwsProfile, error)
configAuth gets the authentication profile from the config and returns an awsProfile struct with the profile name for use in authenticating with AWS.
type Crawler ¶
func NewCrawler ¶
type CrawlerConstructor ¶
type EquipmentInfo ¶
type PropsCrawler ¶
type PropsCrawlerConstructor ¶
type PropsCrawlerConstructor func(serviceClient Client) (PropsCrawler, error)
Click to show internal directories.
Click to hide internal directories.