operate

package
v10.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 31 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("operation was cancelled")

Functions

func DownloadInstallSource

func DownloadInstallSource(oc *OperationContext, file eos.File, destPath string) error

func GameFindUploads

func GameFindUploads(ctx *mansion.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (*buse.GameFindUploadsResult, error)

func Start

func Start(ctx context.Context, mansionContext *mansion.Context, conn *jsonrpc2.Conn, params *buse.OperationStartParams) error

Types

type InstallSubcontext

type InstallSubcontext struct {
	// contains filtered or unexported fields
}

func (*InstallSubcontext) Data

func (mt *InstallSubcontext) Data() interface{}

func (*InstallSubcontext) Key

func (mt *InstallSubcontext) Key() string

type InstallSubcontextState

type InstallSubcontextState struct {
	InstallerInfo      *installer.InstallerInfo `json:"installerInfo,omitempty"`
	IsAvailableLocally bool                     `json:"isAvailableLocally"`
}

type MetaSubcontext

type MetaSubcontext struct {
	// contains filtered or unexported fields
}

func (*MetaSubcontext) Data

func (mt *MetaSubcontext) Data() interface{}

func (*MetaSubcontext) Key

func (mt *MetaSubcontext) Key() string

type OperationContext

type OperationContext struct {
	// contains filtered or unexported fields
}

func LoadContext

func LoadContext(conn *jsonrpc2.Conn, ctx context.Context, mansionContext *mansion.Context, consumer *state.Consumer, stageFolder string) *OperationContext

func (*OperationContext) Consumer

func (oc *OperationContext) Consumer() *state.Consumer

func (*OperationContext) EndProgress

func (oc *OperationContext) EndProgress()

func (*OperationContext) Load

func (oc *OperationContext) Load(s Subcontext)

func (*OperationContext) MansionContext

func (oc *OperationContext) MansionContext() *mansion.Context

func (*OperationContext) Retire

func (oc *OperationContext) Retire() error

func (*OperationContext) Save

func (oc *OperationContext) Save(s Subcontext) error

func (*OperationContext) StageFolder

func (oc *OperationContext) StageFolder() string

func (*OperationContext) StartProgress

func (oc *OperationContext) StartProgress()

func (*OperationContext) StartProgressWithInitialAndTotal

func (oc *OperationContext) StartProgressWithInitialAndTotal(initialProgress float64, totalBytes int64)

func (*OperationContext) StartProgressWithTotalBytes

func (oc *OperationContext) StartProgressWithTotalBytes(totalBytes int64)

type OperationError

type OperationError struct {
	Type      string `json:"type"`
	Code      string `json:"code"`
	Message   string `json:"message"`
	Operation string `json:"operation"`
}

func (*OperationError) Error

func (oe *OperationError) Error() string

func (*OperationError) Throw

func (oe *OperationError) Throw() error

type Subcontext

type Subcontext interface {
	// Key returns a unique string key used for storing
	// something under the context object
	Key() string

	// Data should return a pointer to the underlying struct
	// of the subcontext
	Data() interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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