nfc

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileItem

type FileItem struct {
	types.OvfFileItem
	URL *url.URL
	// contains filtered or unexported fields
}

func NewFileItem

func NewFileItem(u *url.URL, item types.OvfFileItem) FileItem

func (FileItem) File

func (o FileItem) File() types.OvfFile

File converts the FileItem.OvfFileItem to an OvfFile

func (FileItem) Sink

func (o FileItem) Sink() chan<- progress.Report

type Lease

type Lease struct {
	types.ManagedObjectReference
	// contains filtered or unexported fields
}

func NewLease

func NewLease(c *vim25.Client, ref types.ManagedObjectReference) *Lease

func (*Lease) Abort

func (l *Lease) Abort(ctx context.Context, fault *types.LocalizedMethodFault) error

Abort wraps methods.Abort

func (*Lease) Complete

func (l *Lease) Complete(ctx context.Context) error

Complete wraps methods.Complete

func (*Lease) DownloadFile

func (l *Lease) DownloadFile(ctx context.Context, file string, item FileItem, opts soap.Download) error

func (*Lease) GetManifest

func (l *Lease) GetManifest(ctx context.Context) error

GetManifest wraps methods.GetManifest

func (*Lease) Progress

func (l *Lease) Progress(ctx context.Context, percent int32) error

Progress wraps methods.Progress

func (*Lease) StartUpdater

func (l *Lease) StartUpdater(ctx context.Context, info *LeaseInfo) *LeaseUpdater

func (*Lease) Upload

func (l *Lease) Upload(ctx context.Context, item FileItem, f io.Reader, opts soap.Upload) error

func (*Lease) Wait

func (l *Lease) Wait(ctx context.Context, items []types.OvfFileItem) (*LeaseInfo, error)

type LeaseInfo

type LeaseInfo struct {
	types.HttpNfcLeaseInfo

	Items []FileItem
}

type LeaseUpdater

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

func (*LeaseUpdater) Done

func (l *LeaseUpdater) Done()

Jump to

Keyboard shortcuts

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