fetch

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2016 License: Apache-2.0, BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package fetch provides an extensible mechanism to fetch a profile from a data source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchProfile

func FetchProfile(source string, timeout time.Duration) (*profile.Profile, error)

FetchProfile reads from a data source (network, file) and generates a profile.

func FetchURL

func FetchURL(source string, timeout time.Duration) (io.ReadCloser, error)

FetchURL fetches a profile from a URL using HTTP.

func Fetcher

func Fetcher(source string, timeout time.Duration, ui plugin.UI) (*profile.Profile, error)

Fetcher is the plugin.Fetcher version of FetchProfile.

func PostURL

func PostURL(source, post string) ([]byte, error)

PostURL issues a POST to a URL over HTTP.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL