fake

package
v2.0.84+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2016 License: Apache-2.0 Imports: 8 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 {
	FakeProducts      map[string]cfbackup.Products
	FakeCredentials   map[string]map[string][]cfbackup.Properties
	FakeActivity      string
	FakeReader        io.ReadCloser
	FakeWriter        io.WriteCloser
	FakeHostDetails   tileregistry.TileSpec
	FakeJobProperties []cfbackup.Properties
	FakePropertyMap   map[string]string
	FakeSSHConfig     command.SshConfig
	FakeIP            string
}

PivotalCF --

func (*PivotalCF) GetActivity

func (s *PivotalCF) GetActivity() string

GetActivity --

func (*PivotalCF) GetCredentials

func (s *PivotalCF) GetCredentials() (credentials map[string]map[string][]cfbackup.Properties)

GetCredentials --

func (*PivotalCF) GetHostDetails

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

GetHostDetails --

func (*PivotalCF) GetJobIP

func (s *PivotalCF) GetJobIP(productName, jobName string) (ip string, err error)

GetJobIP - returns ip for a given product, job vm

func (*PivotalCF) GetJobProperties

func (s *PivotalCF) GetJobProperties(productName, jobName string) (properties []cfbackup.Properties, err error)

GetJobProperties - returns fake []cfbackup.Properties

func (*PivotalCF) GetProducts

func (s *PivotalCF) GetProducts() (products map[string]cfbackup.Products)

GetProducts --

func (*PivotalCF) GetPropertyValues

func (s *PivotalCF) GetPropertyValues(productName, jobName, identifier string) (propertyMap map[string]string, err error)

GetPropertyValues - returns fake map[string]string

func (*PivotalCF) GetSSHConfig

func (s *PivotalCF) GetSSHConfig(productName, jobName string) (sshConfig command.SshConfig, err error)

GetSSHConfig - returns command.SshConfig for a given product, job vm

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