fakes

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBackup

type FakeBackup struct {
	CreateArtifactStub func(orchestrator.ArtifactIdentifier) (io.WriteCloser, error)

	ReadArtifactStub func(orchestrator.ArtifactIdentifier) (io.ReadCloser, error)

	AddChecksumStub func(orchestrator.ArtifactIdentifier, orchestrator.BackupChecksum) error

	CreateMetadataFileWithStartTimeStub func(time.Time) error

	AddFinishTimeStub func(time.Time) error

	FetchChecksumStub func(orchestrator.ArtifactIdentifier) (orchestrator.BackupChecksum, error)

	CalculateChecksumStub func(orchestrator.ArtifactIdentifier) (orchestrator.BackupChecksum, error)

	DeploymentMatchesStub func(string, []orchestrator.Instance) (bool, error)

	SaveManifestStub func(manifest string) error

	ValidStub func() (bool, error)
	// contains filtered or unexported fields
}

func (*FakeBackup) AddChecksum

func (*FakeBackup) AddChecksumArgsForCall

func (fake *FakeBackup) AddChecksumArgsForCall(i int) (orchestrator.ArtifactIdentifier, orchestrator.BackupChecksum)

func (*FakeBackup) AddChecksumCallCount

func (fake *FakeBackup) AddChecksumCallCount() int

func (*FakeBackup) AddChecksumReturns

func (fake *FakeBackup) AddChecksumReturns(result1 error)

func (*FakeBackup) AddChecksumReturnsOnCall

func (fake *FakeBackup) AddChecksumReturnsOnCall(i int, result1 error)

func (*FakeBackup) AddFinishTime

func (fake *FakeBackup) AddFinishTime(arg1 time.Time) error

func (*FakeBackup) AddFinishTimeArgsForCall

func (fake *FakeBackup) AddFinishTimeArgsForCall(i int) time.Time

func (*FakeBackup) AddFinishTimeCallCount

func (fake *FakeBackup) AddFinishTimeCallCount() int

func (*FakeBackup) AddFinishTimeReturns

func (fake *FakeBackup) AddFinishTimeReturns(result1 error)

func (*FakeBackup) AddFinishTimeReturnsOnCall

func (fake *FakeBackup) AddFinishTimeReturnsOnCall(i int, result1 error)

func (*FakeBackup) CalculateChecksum

func (*FakeBackup) CalculateChecksumArgsForCall

func (fake *FakeBackup) CalculateChecksumArgsForCall(i int) orchestrator.ArtifactIdentifier

func (*FakeBackup) CalculateChecksumCallCount

func (fake *FakeBackup) CalculateChecksumCallCount() int

func (*FakeBackup) CalculateChecksumReturns

func (fake *FakeBackup) CalculateChecksumReturns(result1 orchestrator.BackupChecksum, result2 error)

func (*FakeBackup) CalculateChecksumReturnsOnCall

func (fake *FakeBackup) CalculateChecksumReturnsOnCall(i int, result1 orchestrator.BackupChecksum, result2 error)

func (*FakeBackup) CreateArtifact

func (fake *FakeBackup) CreateArtifact(arg1 orchestrator.ArtifactIdentifier) (io.WriteCloser, error)

func (*FakeBackup) CreateArtifactArgsForCall

func (fake *FakeBackup) CreateArtifactArgsForCall(i int) orchestrator.ArtifactIdentifier

func (*FakeBackup) CreateArtifactCallCount

func (fake *FakeBackup) CreateArtifactCallCount() int

func (*FakeBackup) CreateArtifactReturns

func (fake *FakeBackup) CreateArtifactReturns(result1 io.WriteCloser, result2 error)

func (*FakeBackup) CreateArtifactReturnsOnCall

func (fake *FakeBackup) CreateArtifactReturnsOnCall(i int, result1 io.WriteCloser, result2 error)

func (*FakeBackup) CreateMetadataFileWithStartTime

func (fake *FakeBackup) CreateMetadataFileWithStartTime(arg1 time.Time) error

func (*FakeBackup) CreateMetadataFileWithStartTimeArgsForCall

func (fake *FakeBackup) CreateMetadataFileWithStartTimeArgsForCall(i int) time.Time

func (*FakeBackup) CreateMetadataFileWithStartTimeCallCount

func (fake *FakeBackup) CreateMetadataFileWithStartTimeCallCount() int

func (*FakeBackup) CreateMetadataFileWithStartTimeReturns

func (fake *FakeBackup) CreateMetadataFileWithStartTimeReturns(result1 error)

func (*FakeBackup) CreateMetadataFileWithStartTimeReturnsOnCall

func (fake *FakeBackup) CreateMetadataFileWithStartTimeReturnsOnCall(i int, result1 error)

func (*FakeBackup) DeploymentMatches

func (fake *FakeBackup) DeploymentMatches(arg1 string, arg2 []orchestrator.Instance) (bool, error)

func (*FakeBackup) DeploymentMatchesArgsForCall

func (fake *FakeBackup) DeploymentMatchesArgsForCall(i int) (string, []orchestrator.Instance)

func (*FakeBackup) DeploymentMatchesCallCount

func (fake *FakeBackup) DeploymentMatchesCallCount() int

func (*FakeBackup) DeploymentMatchesReturns

func (fake *FakeBackup) DeploymentMatchesReturns(result1 bool, result2 error)

func (*FakeBackup) DeploymentMatchesReturnsOnCall

func (fake *FakeBackup) DeploymentMatchesReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeBackup) FetchChecksum

func (*FakeBackup) FetchChecksumArgsForCall

func (fake *FakeBackup) FetchChecksumArgsForCall(i int) orchestrator.ArtifactIdentifier

func (*FakeBackup) FetchChecksumCallCount

func (fake *FakeBackup) FetchChecksumCallCount() int

func (*FakeBackup) FetchChecksumReturns

func (fake *FakeBackup) FetchChecksumReturns(result1 orchestrator.BackupChecksum, result2 error)

func (*FakeBackup) FetchChecksumReturnsOnCall

func (fake *FakeBackup) FetchChecksumReturnsOnCall(i int, result1 orchestrator.BackupChecksum, result2 error)

func (*FakeBackup) Invocations

func (fake *FakeBackup) Invocations() map[string][][]interface{}

func (*FakeBackup) ReadArtifact

func (fake *FakeBackup) ReadArtifact(arg1 orchestrator.ArtifactIdentifier) (io.ReadCloser, error)

func (*FakeBackup) ReadArtifactArgsForCall

func (fake *FakeBackup) ReadArtifactArgsForCall(i int) orchestrator.ArtifactIdentifier

func (*FakeBackup) ReadArtifactCallCount

func (fake *FakeBackup) ReadArtifactCallCount() int

func (*FakeBackup) ReadArtifactReturns

func (fake *FakeBackup) ReadArtifactReturns(result1 io.ReadCloser, result2 error)

func (*FakeBackup) ReadArtifactReturnsOnCall

func (fake *FakeBackup) ReadArtifactReturnsOnCall(i int, result1 io.ReadCloser, result2 error)

func (*FakeBackup) SaveManifest

func (fake *FakeBackup) SaveManifest(manifest string) error

func (*FakeBackup) SaveManifestArgsForCall

func (fake *FakeBackup) SaveManifestArgsForCall(i int) string

func (*FakeBackup) SaveManifestCallCount

func (fake *FakeBackup) SaveManifestCallCount() int

func (*FakeBackup) SaveManifestReturns

func (fake *FakeBackup) SaveManifestReturns(result1 error)

func (*FakeBackup) SaveManifestReturnsOnCall

func (fake *FakeBackup) SaveManifestReturnsOnCall(i int, result1 error)

func (*FakeBackup) Valid

func (fake *FakeBackup) Valid() (bool, error)

func (*FakeBackup) ValidCallCount

func (fake *FakeBackup) ValidCallCount() int

func (*FakeBackup) ValidReturns

func (fake *FakeBackup) ValidReturns(result1 bool, result2 error)

func (*FakeBackup) ValidReturnsOnCall

func (fake *FakeBackup) ValidReturnsOnCall(i int, result1 bool, result2 error)

type FakeBackupArtifact

type FakeBackupArtifact struct {
	InstanceNameStub func() string

	InstanceIndexStub func() string

	NameStub func() string

	HasCustomNameStub func() bool

	SizeStub func() (string, error)

	ChecksumStub func() (orchestrator.BackupChecksum, error)

	StreamFromRemoteStub func(io.Writer) error

	DeleteStub func() error

	StreamToRemoteStub func(io.Reader) error
	// contains filtered or unexported fields
}

func (*FakeBackupArtifact) Checksum

func (*FakeBackupArtifact) ChecksumCallCount

func (fake *FakeBackupArtifact) ChecksumCallCount() int

func (*FakeBackupArtifact) ChecksumReturns

func (fake *FakeBackupArtifact) ChecksumReturns(result1 orchestrator.BackupChecksum, result2 error)

func (*FakeBackupArtifact) ChecksumReturnsOnCall

func (fake *FakeBackupArtifact) ChecksumReturnsOnCall(i int, result1 orchestrator.BackupChecksum, result2 error)

func (*FakeBackupArtifact) Delete

func (fake *FakeBackupArtifact) Delete() error

func (*FakeBackupArtifact) DeleteCallCount

func (fake *FakeBackupArtifact) DeleteCallCount() int

func (*FakeBackupArtifact) DeleteReturns

func (fake *FakeBackupArtifact) DeleteReturns(result1 error)

func (*FakeBackupArtifact) DeleteReturnsOnCall

func (fake *FakeBackupArtifact) DeleteReturnsOnCall(i int, result1 error)

func (*FakeBackupArtifact) HasCustomName

func (fake *FakeBackupArtifact) HasCustomName() bool

func (*FakeBackupArtifact) HasCustomNameCallCount

func (fake *FakeBackupArtifact) HasCustomNameCallCount() int

func (*FakeBackupArtifact) HasCustomNameReturns

func (fake *FakeBackupArtifact) HasCustomNameReturns(result1 bool)

func (*FakeBackupArtifact) HasCustomNameReturnsOnCall

func (fake *FakeBackupArtifact) HasCustomNameReturnsOnCall(i int, result1 bool)

func (*FakeBackupArtifact) InstanceIndex

func (fake *FakeBackupArtifact) InstanceIndex() string

func (*FakeBackupArtifact) InstanceIndexCallCount

func (fake *FakeBackupArtifact) InstanceIndexCallCount() int

func (*FakeBackupArtifact) InstanceIndexReturns

func (fake *FakeBackupArtifact) InstanceIndexReturns(result1 string)

func (*FakeBackupArtifact) InstanceIndexReturnsOnCall

func (fake *FakeBackupArtifact) InstanceIndexReturnsOnCall(i int, result1 string)

func (*FakeBackupArtifact) InstanceName

func (fake *FakeBackupArtifact) InstanceName() string

func (*FakeBackupArtifact) InstanceNameCallCount

func (fake *FakeBackupArtifact) InstanceNameCallCount() int

func (*FakeBackupArtifact) InstanceNameReturns

func (fake *FakeBackupArtifact) InstanceNameReturns(result1 string)

func (*FakeBackupArtifact) InstanceNameReturnsOnCall

func (fake *FakeBackupArtifact) InstanceNameReturnsOnCall(i int, result1 string)

func (*FakeBackupArtifact) Invocations

func (fake *FakeBackupArtifact) Invocations() map[string][][]interface{}

func (*FakeBackupArtifact) Name

func (fake *FakeBackupArtifact) Name() string

func (*FakeBackupArtifact) NameCallCount

func (fake *FakeBackupArtifact) NameCallCount() int

func (*FakeBackupArtifact) NameReturns

func (fake *FakeBackupArtifact) NameReturns(result1 string)

func (*FakeBackupArtifact) NameReturnsOnCall

func (fake *FakeBackupArtifact) NameReturnsOnCall(i int, result1 string)

func (*FakeBackupArtifact) Size

func (fake *FakeBackupArtifact) Size() (string, error)

func (*FakeBackupArtifact) SizeCallCount

func (fake *FakeBackupArtifact) SizeCallCount() int

func (*FakeBackupArtifact) SizeReturns

func (fake *FakeBackupArtifact) SizeReturns(result1 string, result2 error)

func (*FakeBackupArtifact) SizeReturnsOnCall

func (fake *FakeBackupArtifact) SizeReturnsOnCall(i int, result1 string, result2 error)

func (*FakeBackupArtifact) StreamFromRemote

func (fake *FakeBackupArtifact) StreamFromRemote(arg1 io.Writer) error

func (*FakeBackupArtifact) StreamFromRemoteArgsForCall

func (fake *FakeBackupArtifact) StreamFromRemoteArgsForCall(i int) io.Writer

func (*FakeBackupArtifact) StreamFromRemoteCallCount

func (fake *FakeBackupArtifact) StreamFromRemoteCallCount() int

func (*FakeBackupArtifact) StreamFromRemoteReturns

func (fake *FakeBackupArtifact) StreamFromRemoteReturns(result1 error)

func (*FakeBackupArtifact) StreamFromRemoteReturnsOnCall

func (fake *FakeBackupArtifact) StreamFromRemoteReturnsOnCall(i int, result1 error)

func (*FakeBackupArtifact) StreamToRemote

func (fake *FakeBackupArtifact) StreamToRemote(arg1 io.Reader) error

func (*FakeBackupArtifact) StreamToRemoteArgsForCall

func (fake *FakeBackupArtifact) StreamToRemoteArgsForCall(i int) io.Reader

func (*FakeBackupArtifact) StreamToRemoteCallCount

func (fake *FakeBackupArtifact) StreamToRemoteCallCount() int

func (*FakeBackupArtifact) StreamToRemoteReturns

func (fake *FakeBackupArtifact) StreamToRemoteReturns(result1 error)

func (*FakeBackupArtifact) StreamToRemoteReturnsOnCall

func (fake *FakeBackupArtifact) StreamToRemoteReturnsOnCall(i int, result1 error)

type FakeBackupManager

type FakeBackupManager struct {
	CreateStub func(string, orchestrator.Logger, func() time.Time) (orchestrator.Backup, error)

	OpenStub func(string, orchestrator.Logger) (orchestrator.Backup, error)
	// contains filtered or unexported fields
}

func (*FakeBackupManager) Create

func (fake *FakeBackupManager) Create(arg1 string, arg2 orchestrator.Logger, arg3 func() time.Time) (orchestrator.Backup, error)

func (*FakeBackupManager) CreateArgsForCall

func (fake *FakeBackupManager) CreateArgsForCall(i int) (string, orchestrator.Logger, func() time.Time)

func (*FakeBackupManager) CreateCallCount

func (fake *FakeBackupManager) CreateCallCount() int

func (*FakeBackupManager) CreateReturns

func (fake *FakeBackupManager) CreateReturns(result1 orchestrator.Backup, result2 error)

func (*FakeBackupManager) CreateReturnsOnCall

func (fake *FakeBackupManager) CreateReturnsOnCall(i int, result1 orchestrator.Backup, result2 error)

func (*FakeBackupManager) Invocations

func (fake *FakeBackupManager) Invocations() map[string][][]interface{}

func (*FakeBackupManager) Open

func (*FakeBackupManager) OpenArgsForCall

func (fake *FakeBackupManager) OpenArgsForCall(i int) (string, orchestrator.Logger)

func (*FakeBackupManager) OpenCallCount

func (fake *FakeBackupManager) OpenCallCount() int

func (*FakeBackupManager) OpenReturns

func (fake *FakeBackupManager) OpenReturns(result1 orchestrator.Backup, result2 error)

func (*FakeBackupManager) OpenReturnsOnCall

func (fake *FakeBackupManager) OpenReturnsOnCall(i int, result1 orchestrator.Backup, result2 error)

type FakeDeployment

type FakeDeployment struct {
	IsBackupableStub func() bool

	HasUniqueCustomArtifactNamesStub func() bool

	CheckArtifactDirStub func() error

	IsRestorableStub func() bool

	PreBackupLockStub func() error

	BackupStub func() error

	PostBackupUnlockStub func() error

	RestoreStub func() error

	CopyRemoteBackupToLocalStub func(orchestrator.Backup) error

	CopyLocalBackupToRemoteStub func(orchestrator.Backup) error

	CleanupStub func() error

	CleanupPreviousStub func() error

	InstancesStub func() []orchestrator.Instance

	CustomArtifactNamesMatchStub func() error
	// contains filtered or unexported fields
}

func (*FakeDeployment) Backup

func (fake *FakeDeployment) Backup() error

func (*FakeDeployment) BackupCallCount

func (fake *FakeDeployment) BackupCallCount() int

func (*FakeDeployment) BackupReturns

func (fake *FakeDeployment) BackupReturns(result1 error)

func (*FakeDeployment) BackupReturnsOnCall

func (fake *FakeDeployment) BackupReturnsOnCall(i int, result1 error)

func (*FakeDeployment) CheckArtifactDir

func (fake *FakeDeployment) CheckArtifactDir() error

func (*FakeDeployment) CheckArtifactDirCallCount

func (fake *FakeDeployment) CheckArtifactDirCallCount() int

func (*FakeDeployment) CheckArtifactDirReturns

func (fake *FakeDeployment) CheckArtifactDirReturns(result1 error)

func (*FakeDeployment) CheckArtifactDirReturnsOnCall

func (fake *FakeDeployment) CheckArtifactDirReturnsOnCall(i int, result1 error)

func (*FakeDeployment) Cleanup

func (fake *FakeDeployment) Cleanup() error

func (*FakeDeployment) CleanupCallCount

func (fake *FakeDeployment) CleanupCallCount() int

func (*FakeDeployment) CleanupPrevious added in v1.0.0

func (fake *FakeDeployment) CleanupPrevious() error

func (*FakeDeployment) CleanupPreviousCallCount added in v1.0.0

func (fake *FakeDeployment) CleanupPreviousCallCount() int

func (*FakeDeployment) CleanupPreviousReturns added in v1.0.0

func (fake *FakeDeployment) CleanupPreviousReturns(result1 error)

func (*FakeDeployment) CleanupPreviousReturnsOnCall added in v1.0.0

func (fake *FakeDeployment) CleanupPreviousReturnsOnCall(i int, result1 error)

func (*FakeDeployment) CleanupReturns

func (fake *FakeDeployment) CleanupReturns(result1 error)

func (*FakeDeployment) CleanupReturnsOnCall

func (fake *FakeDeployment) CleanupReturnsOnCall(i int, result1 error)

func (*FakeDeployment) CopyLocalBackupToRemote

func (fake *FakeDeployment) CopyLocalBackupToRemote(arg1 orchestrator.Backup) error

func (*FakeDeployment) CopyLocalBackupToRemoteArgsForCall

func (fake *FakeDeployment) CopyLocalBackupToRemoteArgsForCall(i int) orchestrator.Backup

func (*FakeDeployment) CopyLocalBackupToRemoteCallCount

func (fake *FakeDeployment) CopyLocalBackupToRemoteCallCount() int

func (*FakeDeployment) CopyLocalBackupToRemoteReturns

func (fake *FakeDeployment) CopyLocalBackupToRemoteReturns(result1 error)

func (*FakeDeployment) CopyLocalBackupToRemoteReturnsOnCall

func (fake *FakeDeployment) CopyLocalBackupToRemoteReturnsOnCall(i int, result1 error)

func (*FakeDeployment) CopyRemoteBackupToLocal

func (fake *FakeDeployment) CopyRemoteBackupToLocal(arg1 orchestrator.Backup) error

func (*FakeDeployment) CopyRemoteBackupToLocalArgsForCall

func (fake *FakeDeployment) CopyRemoteBackupToLocalArgsForCall(i int) orchestrator.Backup

func (*FakeDeployment) CopyRemoteBackupToLocalCallCount

func (fake *FakeDeployment) CopyRemoteBackupToLocalCallCount() int

func (*FakeDeployment) CopyRemoteBackupToLocalReturns

func (fake *FakeDeployment) CopyRemoteBackupToLocalReturns(result1 error)

func (*FakeDeployment) CopyRemoteBackupToLocalReturnsOnCall

func (fake *FakeDeployment) CopyRemoteBackupToLocalReturnsOnCall(i int, result1 error)

func (*FakeDeployment) CustomArtifactNamesMatch

func (fake *FakeDeployment) CustomArtifactNamesMatch() error

func (*FakeDeployment) CustomArtifactNamesMatchCallCount

func (fake *FakeDeployment) CustomArtifactNamesMatchCallCount() int

func (*FakeDeployment) CustomArtifactNamesMatchReturns

func (fake *FakeDeployment) CustomArtifactNamesMatchReturns(result1 error)

func (*FakeDeployment) CustomArtifactNamesMatchReturnsOnCall

func (fake *FakeDeployment) CustomArtifactNamesMatchReturnsOnCall(i int, result1 error)

func (*FakeDeployment) HasUniqueCustomArtifactNames

func (fake *FakeDeployment) HasUniqueCustomArtifactNames() bool

func (*FakeDeployment) HasUniqueCustomArtifactNamesCallCount

func (fake *FakeDeployment) HasUniqueCustomArtifactNamesCallCount() int

func (*FakeDeployment) HasUniqueCustomArtifactNamesReturns

func (fake *FakeDeployment) HasUniqueCustomArtifactNamesReturns(result1 bool)

func (*FakeDeployment) HasUniqueCustomArtifactNamesReturnsOnCall

func (fake *FakeDeployment) HasUniqueCustomArtifactNamesReturnsOnCall(i int, result1 bool)

func (*FakeDeployment) Instances

func (fake *FakeDeployment) Instances() []orchestrator.Instance

func (*FakeDeployment) InstancesCallCount

func (fake *FakeDeployment) InstancesCallCount() int

func (*FakeDeployment) InstancesReturns

func (fake *FakeDeployment) InstancesReturns(result1 []orchestrator.Instance)

func (*FakeDeployment) InstancesReturnsOnCall

func (fake *FakeDeployment) InstancesReturnsOnCall(i int, result1 []orchestrator.Instance)

func (*FakeDeployment) Invocations

func (fake *FakeDeployment) Invocations() map[string][][]interface{}

func (*FakeDeployment) IsBackupable added in v1.0.0

func (fake *FakeDeployment) IsBackupable() bool

func (*FakeDeployment) IsBackupableCallCount added in v1.0.0

func (fake *FakeDeployment) IsBackupableCallCount() int

func (*FakeDeployment) IsBackupableReturns added in v1.0.0

func (fake *FakeDeployment) IsBackupableReturns(result1 bool)

func (*FakeDeployment) IsBackupableReturnsOnCall added in v1.0.0

func (fake *FakeDeployment) IsBackupableReturnsOnCall(i int, result1 bool)

func (*FakeDeployment) IsRestorable

func (fake *FakeDeployment) IsRestorable() bool

func (*FakeDeployment) IsRestorableCallCount

func (fake *FakeDeployment) IsRestorableCallCount() int

func (*FakeDeployment) IsRestorableReturns

func (fake *FakeDeployment) IsRestorableReturns(result1 bool)

func (*FakeDeployment) IsRestorableReturnsOnCall

func (fake *FakeDeployment) IsRestorableReturnsOnCall(i int, result1 bool)

func (*FakeDeployment) PostBackupUnlock

func (fake *FakeDeployment) PostBackupUnlock() error

func (*FakeDeployment) PostBackupUnlockCallCount

func (fake *FakeDeployment) PostBackupUnlockCallCount() int

func (*FakeDeployment) PostBackupUnlockReturns

func (fake *FakeDeployment) PostBackupUnlockReturns(result1 error)

func (*FakeDeployment) PostBackupUnlockReturnsOnCall

func (fake *FakeDeployment) PostBackupUnlockReturnsOnCall(i int, result1 error)

func (*FakeDeployment) PreBackupLock

func (fake *FakeDeployment) PreBackupLock() error

func (*FakeDeployment) PreBackupLockCallCount

func (fake *FakeDeployment) PreBackupLockCallCount() int

func (*FakeDeployment) PreBackupLockReturns

func (fake *FakeDeployment) PreBackupLockReturns(result1 error)

func (*FakeDeployment) PreBackupLockReturnsOnCall

func (fake *FakeDeployment) PreBackupLockReturnsOnCall(i int, result1 error)

func (*FakeDeployment) Restore

func (fake *FakeDeployment) Restore() error

func (*FakeDeployment) RestoreCallCount

func (fake *FakeDeployment) RestoreCallCount() int

func (*FakeDeployment) RestoreReturns

func (fake *FakeDeployment) RestoreReturns(result1 error)

func (*FakeDeployment) RestoreReturnsOnCall

func (fake *FakeDeployment) RestoreReturnsOnCall(i int, result1 error)

type FakeDeploymentManager

type FakeDeploymentManager struct {
	FindStub func(deploymentName string) (orchestrator.Deployment, error)

	SaveManifestStub func(deploymentName string, artifact orchestrator.Backup) error
	// contains filtered or unexported fields
}

func (*FakeDeploymentManager) Find

func (fake *FakeDeploymentManager) Find(deploymentName string) (orchestrator.Deployment, error)

func (*FakeDeploymentManager) FindArgsForCall

func (fake *FakeDeploymentManager) FindArgsForCall(i int) string

func (*FakeDeploymentManager) FindCallCount

func (fake *FakeDeploymentManager) FindCallCount() int

func (*FakeDeploymentManager) FindReturns

func (fake *FakeDeploymentManager) FindReturns(result1 orchestrator.Deployment, result2 error)

func (*FakeDeploymentManager) FindReturnsOnCall

func (fake *FakeDeploymentManager) FindReturnsOnCall(i int, result1 orchestrator.Deployment, result2 error)

func (*FakeDeploymentManager) Invocations

func (fake *FakeDeploymentManager) Invocations() map[string][][]interface{}

func (*FakeDeploymentManager) SaveManifest

func (fake *FakeDeploymentManager) SaveManifest(deploymentName string, artifact orchestrator.Backup) error

func (*FakeDeploymentManager) SaveManifestArgsForCall

func (fake *FakeDeploymentManager) SaveManifestArgsForCall(i int) (string, orchestrator.Backup)

func (*FakeDeploymentManager) SaveManifestCallCount

func (fake *FakeDeploymentManager) SaveManifestCallCount() int

func (*FakeDeploymentManager) SaveManifestReturns

func (fake *FakeDeploymentManager) SaveManifestReturns(result1 error)

func (*FakeDeploymentManager) SaveManifestReturnsOnCall

func (fake *FakeDeploymentManager) SaveManifestReturnsOnCall(i int, result1 error)

type FakeInstance

type FakeInstance struct {
	NameStub func() string

	IndexStub func() string

	IDStub func() string

	IsBackupableStub func() bool

	ArtifactDirExistsStub func() (bool, error)

	ArtifactDirCreatedStub func() bool

	MarkArtifactDirCreatedStub func()

	IsPostBackupUnlockableStub func() bool

	IsPreBackupLockableStub func() bool

	IsRestorableStub func() bool

	PreBackupLockStub func() error

	BackupStub func() error

	PostBackupUnlockStub func() error

	RestoreStub func() error

	CleanupStub func() error

	CleanupPreviousStub func() error

	ArtifactsToBackupStub func() []orchestrator.BackupArtifact

	ArtifactsToRestoreStub func() []orchestrator.BackupArtifact

	CustomBackupArtifactNamesStub func() []string

	CustomRestoreArtifactNamesStub func() []string
	// contains filtered or unexported fields
}

func (*FakeInstance) ArtifactDirCreated

func (fake *FakeInstance) ArtifactDirCreated() bool

func (*FakeInstance) ArtifactDirCreatedCallCount

func (fake *FakeInstance) ArtifactDirCreatedCallCount() int

func (*FakeInstance) ArtifactDirCreatedReturns

func (fake *FakeInstance) ArtifactDirCreatedReturns(result1 bool)

func (*FakeInstance) ArtifactDirCreatedReturnsOnCall

func (fake *FakeInstance) ArtifactDirCreatedReturnsOnCall(i int, result1 bool)

func (*FakeInstance) ArtifactDirExists

func (fake *FakeInstance) ArtifactDirExists() (bool, error)

func (*FakeInstance) ArtifactDirExistsCallCount

func (fake *FakeInstance) ArtifactDirExistsCallCount() int

func (*FakeInstance) ArtifactDirExistsReturns

func (fake *FakeInstance) ArtifactDirExistsReturns(result1 bool, result2 error)

func (*FakeInstance) ArtifactDirExistsReturnsOnCall

func (fake *FakeInstance) ArtifactDirExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeInstance) ArtifactsToBackup

func (fake *FakeInstance) ArtifactsToBackup() []orchestrator.BackupArtifact

func (*FakeInstance) ArtifactsToBackupCallCount

func (fake *FakeInstance) ArtifactsToBackupCallCount() int

func (*FakeInstance) ArtifactsToBackupReturns

func (fake *FakeInstance) ArtifactsToBackupReturns(result1 []orchestrator.BackupArtifact)

func (*FakeInstance) ArtifactsToBackupReturnsOnCall

func (fake *FakeInstance) ArtifactsToBackupReturnsOnCall(i int, result1 []orchestrator.BackupArtifact)

func (*FakeInstance) ArtifactsToRestore

func (fake *FakeInstance) ArtifactsToRestore() []orchestrator.BackupArtifact

func (*FakeInstance) ArtifactsToRestoreCallCount

func (fake *FakeInstance) ArtifactsToRestoreCallCount() int

func (*FakeInstance) ArtifactsToRestoreReturns

func (fake *FakeInstance) ArtifactsToRestoreReturns(result1 []orchestrator.BackupArtifact)

func (*FakeInstance) ArtifactsToRestoreReturnsOnCall

func (fake *FakeInstance) ArtifactsToRestoreReturnsOnCall(i int, result1 []orchestrator.BackupArtifact)

func (*FakeInstance) Backup

func (fake *FakeInstance) Backup() error

func (*FakeInstance) BackupCallCount

func (fake *FakeInstance) BackupCallCount() int

func (*FakeInstance) BackupReturns

func (fake *FakeInstance) BackupReturns(result1 error)

func (*FakeInstance) BackupReturnsOnCall

func (fake *FakeInstance) BackupReturnsOnCall(i int, result1 error)

func (*FakeInstance) Cleanup

func (fake *FakeInstance) Cleanup() error

func (*FakeInstance) CleanupCallCount

func (fake *FakeInstance) CleanupCallCount() int

func (*FakeInstance) CleanupPrevious added in v1.0.0

func (fake *FakeInstance) CleanupPrevious() error

func (*FakeInstance) CleanupPreviousCallCount added in v1.0.0

func (fake *FakeInstance) CleanupPreviousCallCount() int

func (*FakeInstance) CleanupPreviousReturns added in v1.0.0

func (fake *FakeInstance) CleanupPreviousReturns(result1 error)

func (*FakeInstance) CleanupPreviousReturnsOnCall added in v1.0.0

func (fake *FakeInstance) CleanupPreviousReturnsOnCall(i int, result1 error)

func (*FakeInstance) CleanupReturns

func (fake *FakeInstance) CleanupReturns(result1 error)

func (*FakeInstance) CleanupReturnsOnCall

func (fake *FakeInstance) CleanupReturnsOnCall(i int, result1 error)

func (*FakeInstance) CustomBackupArtifactNames

func (fake *FakeInstance) CustomBackupArtifactNames() []string

func (*FakeInstance) CustomBackupArtifactNamesCallCount

func (fake *FakeInstance) CustomBackupArtifactNamesCallCount() int

func (*FakeInstance) CustomBackupArtifactNamesReturns

func (fake *FakeInstance) CustomBackupArtifactNamesReturns(result1 []string)

func (*FakeInstance) CustomBackupArtifactNamesReturnsOnCall

func (fake *FakeInstance) CustomBackupArtifactNamesReturnsOnCall(i int, result1 []string)

func (*FakeInstance) CustomRestoreArtifactNames

func (fake *FakeInstance) CustomRestoreArtifactNames() []string

func (*FakeInstance) CustomRestoreArtifactNamesCallCount

func (fake *FakeInstance) CustomRestoreArtifactNamesCallCount() int

func (*FakeInstance) CustomRestoreArtifactNamesReturns

func (fake *FakeInstance) CustomRestoreArtifactNamesReturns(result1 []string)

func (*FakeInstance) CustomRestoreArtifactNamesReturnsOnCall

func (fake *FakeInstance) CustomRestoreArtifactNamesReturnsOnCall(i int, result1 []string)

func (*FakeInstance) ID

func (fake *FakeInstance) ID() string

func (*FakeInstance) IDCallCount

func (fake *FakeInstance) IDCallCount() int

func (*FakeInstance) IDReturns

func (fake *FakeInstance) IDReturns(result1 string)

func (*FakeInstance) IDReturnsOnCall

func (fake *FakeInstance) IDReturnsOnCall(i int, result1 string)

func (*FakeInstance) Index

func (fake *FakeInstance) Index() string

func (*FakeInstance) IndexCallCount

func (fake *FakeInstance) IndexCallCount() int

func (*FakeInstance) IndexReturns

func (fake *FakeInstance) IndexReturns(result1 string)

func (*FakeInstance) IndexReturnsOnCall

func (fake *FakeInstance) IndexReturnsOnCall(i int, result1 string)

func (*FakeInstance) Invocations

func (fake *FakeInstance) Invocations() map[string][][]interface{}

func (*FakeInstance) IsBackupable added in v1.0.0

func (fake *FakeInstance) IsBackupable() bool

func (*FakeInstance) IsBackupableCallCount added in v1.0.0

func (fake *FakeInstance) IsBackupableCallCount() int

func (*FakeInstance) IsBackupableReturns added in v1.0.0

func (fake *FakeInstance) IsBackupableReturns(result1 bool)

func (*FakeInstance) IsBackupableReturnsOnCall added in v1.0.0

func (fake *FakeInstance) IsBackupableReturnsOnCall(i int, result1 bool)

func (*FakeInstance) IsPostBackupUnlockable

func (fake *FakeInstance) IsPostBackupUnlockable() bool

func (*FakeInstance) IsPostBackupUnlockableCallCount

func (fake *FakeInstance) IsPostBackupUnlockableCallCount() int

func (*FakeInstance) IsPostBackupUnlockableReturns

func (fake *FakeInstance) IsPostBackupUnlockableReturns(result1 bool)

func (*FakeInstance) IsPostBackupUnlockableReturnsOnCall

func (fake *FakeInstance) IsPostBackupUnlockableReturnsOnCall(i int, result1 bool)

func (*FakeInstance) IsPreBackupLockable

func (fake *FakeInstance) IsPreBackupLockable() bool

func (*FakeInstance) IsPreBackupLockableCallCount

func (fake *FakeInstance) IsPreBackupLockableCallCount() int

func (*FakeInstance) IsPreBackupLockableReturns

func (fake *FakeInstance) IsPreBackupLockableReturns(result1 bool)

func (*FakeInstance) IsPreBackupLockableReturnsOnCall

func (fake *FakeInstance) IsPreBackupLockableReturnsOnCall(i int, result1 bool)

func (*FakeInstance) IsRestorable

func (fake *FakeInstance) IsRestorable() bool

func (*FakeInstance) IsRestorableCallCount

func (fake *FakeInstance) IsRestorableCallCount() int

func (*FakeInstance) IsRestorableReturns

func (fake *FakeInstance) IsRestorableReturns(result1 bool)

func (*FakeInstance) IsRestorableReturnsOnCall

func (fake *FakeInstance) IsRestorableReturnsOnCall(i int, result1 bool)

func (*FakeInstance) MarkArtifactDirCreated

func (fake *FakeInstance) MarkArtifactDirCreated()

func (*FakeInstance) MarkArtifactDirCreatedCallCount

func (fake *FakeInstance) MarkArtifactDirCreatedCallCount() int

func (*FakeInstance) Name

func (fake *FakeInstance) Name() string

func (*FakeInstance) NameCallCount

func (fake *FakeInstance) NameCallCount() int

func (*FakeInstance) NameReturns

func (fake *FakeInstance) NameReturns(result1 string)

func (*FakeInstance) NameReturnsOnCall

func (fake *FakeInstance) NameReturnsOnCall(i int, result1 string)

func (*FakeInstance) PostBackupUnlock

func (fake *FakeInstance) PostBackupUnlock() error

func (*FakeInstance) PostBackupUnlockCallCount

func (fake *FakeInstance) PostBackupUnlockCallCount() int

func (*FakeInstance) PostBackupUnlockReturns

func (fake *FakeInstance) PostBackupUnlockReturns(result1 error)

func (*FakeInstance) PostBackupUnlockReturnsOnCall

func (fake *FakeInstance) PostBackupUnlockReturnsOnCall(i int, result1 error)

func (*FakeInstance) PreBackupLock

func (fake *FakeInstance) PreBackupLock() error

func (*FakeInstance) PreBackupLockCallCount

func (fake *FakeInstance) PreBackupLockCallCount() int

func (*FakeInstance) PreBackupLockReturns

func (fake *FakeInstance) PreBackupLockReturns(result1 error)

func (*FakeInstance) PreBackupLockReturnsOnCall

func (fake *FakeInstance) PreBackupLockReturnsOnCall(i int, result1 error)

func (*FakeInstance) Restore

func (fake *FakeInstance) Restore() error

func (*FakeInstance) RestoreCallCount

func (fake *FakeInstance) RestoreCallCount() int

func (*FakeInstance) RestoreReturns

func (fake *FakeInstance) RestoreReturns(result1 error)

func (*FakeInstance) RestoreReturnsOnCall

func (fake *FakeInstance) RestoreReturnsOnCall(i int, result1 error)

type FakeLogger

type FakeLogger struct {
	DebugStub func(tag, msg string, args ...interface{})

	InfoStub func(tag, msg string, args ...interface{})

	WarnStub func(tag, msg string, args ...interface{})

	ErrorStub func(tag, msg string, args ...interface{})
	// contains filtered or unexported fields
}

func (*FakeLogger) Debug

func (fake *FakeLogger) Debug(tag string, msg string, args ...interface{})

func (*FakeLogger) DebugArgsForCall

func (fake *FakeLogger) DebugArgsForCall(i int) (string, string, []interface{})

func (*FakeLogger) DebugCallCount

func (fake *FakeLogger) DebugCallCount() int

func (*FakeLogger) Error

func (fake *FakeLogger) Error(tag string, msg string, args ...interface{})

func (*FakeLogger) ErrorArgsForCall

func (fake *FakeLogger) ErrorArgsForCall(i int) (string, string, []interface{})

func (*FakeLogger) ErrorCallCount

func (fake *FakeLogger) ErrorCallCount() int

func (*FakeLogger) Info

func (fake *FakeLogger) Info(tag string, msg string, args ...interface{})

func (*FakeLogger) InfoArgsForCall

func (fake *FakeLogger) InfoArgsForCall(i int) (string, string, []interface{})

func (*FakeLogger) InfoCallCount

func (fake *FakeLogger) InfoCallCount() int

func (*FakeLogger) Invocations

func (fake *FakeLogger) Invocations() map[string][][]interface{}

func (*FakeLogger) Warn

func (fake *FakeLogger) Warn(tag string, msg string, args ...interface{})

func (*FakeLogger) WarnArgsForCall

func (fake *FakeLogger) WarnArgsForCall(i int) (string, string, []interface{})

func (*FakeLogger) WarnCallCount

func (fake *FakeLogger) WarnCallCount() int

type FakeWriteCloser

type FakeWriteCloser struct {
	WriteStub func(p []byte) (n int, err error)

	CloseStub func() error
	// contains filtered or unexported fields
}

func (*FakeWriteCloser) Close

func (fake *FakeWriteCloser) Close() error

func (*FakeWriteCloser) CloseCallCount

func (fake *FakeWriteCloser) CloseCallCount() int

func (*FakeWriteCloser) CloseReturns

func (fake *FakeWriteCloser) CloseReturns(result1 error)

func (*FakeWriteCloser) Invocations

func (fake *FakeWriteCloser) Invocations() map[string][][]interface{}

func (*FakeWriteCloser) Write

func (fake *FakeWriteCloser) Write(p []byte) (n int, err error)

func (*FakeWriteCloser) WriteArgsForCall

func (fake *FakeWriteCloser) WriteArgsForCall(i int) []byte

func (*FakeWriteCloser) WriteCallCount

func (fake *FakeWriteCloser) WriteCallCount() int

func (*FakeWriteCloser) WriteReturns

func (fake *FakeWriteCloser) WriteReturns(result1 int, result2 error)

Jump to

Keyboard shortcuts

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