sandbox

package
v0.6.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sandbox allows checking files before re-uploading the, so any given version of a file need only be uploaded once rather than being uploaded repeatedly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetList

func GetList() []string

Types

type Sandbox

type Sandbox struct {
	Id           string
	CreationTime time.Time
	Completed    bool
	Checksums    []string
}

func AllSandboxes added in v0.5.2

func AllSandboxes() []*Sandbox

Return all sandboxes on the server.

func Get

func Get(sandbox_id string) (*Sandbox, error)

func New

func New(checksum_hash map[string]interface{}) (*Sandbox, error)

Create a new sandbox, given a map of null values with file checksums as keys.

func (*Sandbox) Delete

func (s *Sandbox) Delete() error

func (*Sandbox) GetName

func (s *Sandbox) GetName() string

func (*Sandbox) IsComplete

func (s *Sandbox) IsComplete() error

Is the sandbox complete?

func (*Sandbox) Save

func (s *Sandbox) Save() error

func (*Sandbox) URLType

func (s *Sandbox) URLType() string

func (*Sandbox) UploadChkList

func (s *Sandbox) UploadChkList() map[string]map[string]interface{}

Creates the list of file checksums and whether or not they need to be uploaded or not. If they do, the upload URL is also provided.

Jump to

Keyboard shortcuts

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