Documentation ¶
Index ¶
- Constants
- func Fetch(revision, path, url string) error
- func LoadData(c *http.Client, u *url.URL, timeout time.Duration) (interface{}, error)
- func LoadEnvironment(opts DefaultPlanOptions) (interface{}, error)
- func MetadataSpecURL() (string, error)
- func MetadataURL(subpath string) (string, error)
- func PopulateSpecFromDefaultPlan(target interface{}, opts DefaultPlanOptions) error
- func SSHKeyScan(domain string) ([]byte, error)
- func TreeFromDefaultPlan(opts DefaultPlanOptions) (interface{}, error)
- func WriteDataToFile(file string, data []byte) error
- func WriteToFile(file, content string) error
- type Decoder
- type DefaultPlanOptions
- type Loader
- type LocalLoader
- type RemoteLoader
- type SSHConfig
- type SSHEntry
Constants ¶
View Source
const ( DefaultMetadataTimeout = 5 * time.Minute MetadataAPIURLEnvName = "METADATA_API_URL" )
Variables ¶
This section is empty.
Functions ¶
func LoadEnvironment ¶ added in v1.17.1
func LoadEnvironment(opts DefaultPlanOptions) (interface{}, error)
func MetadataSpecURL ¶
func MetadataURL ¶ added in v1.17.1
func PopulateSpecFromDefaultPlan ¶
func PopulateSpecFromDefaultPlan(target interface{}, opts DefaultPlanOptions) error
func SSHKeyScan ¶
func TreeFromDefaultPlan ¶
func TreeFromDefaultPlan(opts DefaultPlanOptions) (interface{}, error)
func WriteDataToFile ¶
func WriteToFile ¶
Types ¶
type DefaultPlanOptions ¶
type LocalLoader ¶ added in v1.17.1
type LocalLoader struct {
// contains filtered or unexported fields
}
func NewLocalLoader ¶ added in v1.17.1
func NewLocalLoader(path string) LocalLoader
type RemoteLoader ¶ added in v1.17.1
type RemoteLoader struct {
// contains filtered or unexported fields
}
func NewRemoteLoader ¶ added in v1.17.1
func NewRemoteLoader(u *url.URL, client *http.Client) RemoteLoader
Source Files ¶
Click to show internal directories.
Click to hide internal directories.