fake

package
v3.0.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PivotalCF

type PivotalCF struct {
	FakeActivity             string
	FakeReader               io.ReadCloser
	FakeWriter               io.WriteCloser
	FakeHostDetails          tileregistry.TileSpec
	FakeInstallationSettings cfbackup.InstallationSettings
}

PivotalCF --

func (*PivotalCF) GetActivity

func (s *PivotalCF) GetActivity() string

GetActivity --

func (*PivotalCF) GetHostDetails

func (s *PivotalCF) GetHostDetails() tileregistry.TileSpec

GetHostDetails --

func (*PivotalCF) GetInstallationSettings

func (s *PivotalCF) GetInstallationSettings() cfbackup.InstallationSettings

GetInstallationSettings --

func (*PivotalCF) NewArchiveReader

func (s *PivotalCF) NewArchiveReader(name string) (reader io.ReadCloser, err error)

NewArchiveReader -- fake archive reader

func (*PivotalCF) NewArchiveWriter

func (s *PivotalCF) NewArchiveWriter(name string) (writer io.WriteCloser, err error)

NewArchiveWriter -- fake archive writer

func (*PivotalCF) SetActivity

func (s *PivotalCF) SetActivity(activity string)

SetActivity --

type Plugin

type Plugin struct {
	Meta cfopsplugin.Meta
}

Plugin -- Here is a real implementation of a plugin

func (Plugin) Backup

func (Plugin) Backup() error

Backup --

func (Plugin) GetMeta

func (b Plugin) GetMeta() cfopsplugin.Meta

GetMeta ---

func (Plugin) Restore

func (Plugin) Restore() error

Restore --

func (Plugin) Setup

func (Plugin) Setup(pcf cfopsplugin.PivotalCF) error

Setup --

Jump to

Keyboard shortcuts

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