fetch

package
v0.0.0-...-e410d2a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: BSD-3-Clause Imports: 11 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