fetch

package
v0.0.0-...-21c4e99 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: 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