slurper

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: GPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForSVN

func CheckForSVN() bool

CheckForSVN checks if the SVN CLI tool is available.

func ExtractZip

func ExtractZip(content []byte, length int64, dest string, ctx *context.Context) (uint64, error)

ExtractZip extracts the archive containing extension data.

func NewClient

func NewClient(timeout int, max int) *http.Client

NewClient returns a new HTTP client configured for large numbers of requests.

func NewRequest

func NewRequest(URL string, timeout int, concurrent int) ([]byte, error)

NewRequest sets up and creates a new HTTP request to the given URL

func StartUpdate

func StartUpdate(ctx *context.Context)

StartUpdate begins the update 'plugin/theme' command. It begins by checking for an existing folder. TODO: Check for folder and .last-revision file as that is needed to update an existing slurp.

Types

type Context

type Context struct {
	Name              string
	Version           string
	ConcurrentActions int
	ExtensionType     string
	FileType          string
	SVN               bool
	Stats             *stats.Stats
}

Context contains the data required for Slurping

Jump to

Keyboard shortcuts

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