cloudinit/datasource/datasource.go
Camilo Aguilar 3e00a37ef5 feat(util/http_client): Adds generic HTTP client
Supports retries with exponential backoff as well as connection
timeouts and the ability to skip SSL/TLS verification.

This commit also refactors datasource and initialize packages
in order to use the new HTTP client.
2014-05-21 13:31:50 -04:00

7 lines
90 B
Go

package datasource
type Datasource interface {
Fetch() ([]byte, error)
Type() string
}