mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIer

type APIer struct {
	mock.Mock
}

APIer is an autogenerated mock type for the APIer type

func (*APIer) DeleteAccountsID

DeleteAccountsID provides a mock function with given fields: _a0, _a1

func (*APIer) DeleteLeases

DeleteLeases provides a mock function with given fields: _a0, _a1

func (*APIer) DeleteLeasesID added in v0.5.0

DeleteLeasesID provides a mock function with given fields: _a0, _a1

func (*APIer) GetAccounts

GetAccounts provides a mock function with given fields: _a0, _a1

func (*APIer) GetAccountsID

GetAccountsID provides a mock function with given fields: _a0, _a1

func (*APIer) GetAuth added in v0.5.0

func (_m *APIer) GetAuth(_a0 *operations.GetAuthParams) (*operations.GetAuthOK, error)

GetAuth provides a mock function with given fields: _a0

func (*APIer) GetAuthFile added in v0.5.0

func (_m *APIer) GetAuthFile(_a0 *operations.GetAuthFileParams) (*operations.GetAuthFileOK, error)

GetAuthFile provides a mock function with given fields: _a0

func (*APIer) GetLeases

GetLeases provides a mock function with given fields: _a0, _a1

func (*APIer) GetLeasesID

GetLeasesID provides a mock function with given fields: _a0, _a1

func (*APIer) GetUsage

GetUsage provides a mock function with given fields: _a0, _a1

func (*APIer) PostAccounts

PostAccounts provides a mock function with given fields: _a0, _a1

func (*APIer) PostLeases

PostLeases provides a mock function with given fields: _a0, _a1

func (*APIer) PostLeasesAuth added in v0.5.0

PostLeasesAuth provides a mock function with given fields: _a0, _a1

func (*APIer) PostLeasesIDAuth

PostLeasesIDAuth provides a mock function with given fields: _a0, _a1

func (*APIer) PutAccountsID added in v0.5.0

PutAccountsID provides a mock function with given fields: _a0, _a1

func (*APIer) SetTransport

func (_m *APIer) SetTransport(_a0 runtime.ClientTransport)

SetTransport provides a mock function with given fields: _a0

type AWSer

type AWSer struct {
	mock.Mock
}

AWSer is an autogenerated mock type for the AWSer type

func (*AWSer) ConfigureAWSCLICredentials

func (_m *AWSer) ConfigureAWSCLICredentials(accessKeyID string, secretAccessKey string, sessionToken string, profile string)

ConfigureAWSCLICredentials provides a mock function with given fields: accessKeyID, secretAccessKey, sessionToken, profile

func (*AWSer) UpdateLambdasFromS3Assets

func (_m *AWSer) UpdateLambdasFromS3Assets(lambdaNames []string, bucket string, namespace string)

UpdateLambdasFromS3Assets provides a mock function with given fields: lambdaNames, bucket, namespace

func (*AWSer) UploadDirectoryToS3

func (_m *AWSer) UploadDirectoryToS3(localPath string, bucket string, prefix string) ([]string, []string)

UploadDirectoryToS3 provides a mock function with given fields: localPath, bucket, prefix

type Accounter

type Accounter struct {
	mock.Mock
}

Accounter is an autogenerated mock type for the Accounter type

func (*Accounter) AddAccount

func (_m *Accounter) AddAccount(accountID string, adminRoleARN string)

AddAccount provides a mock function with given fields: accountID, adminRoleARN

func (*Accounter) GetAccount

func (_m *Accounter) GetAccount(accountID string)

GetAccount provides a mock function with given fields: accountID

func (*Accounter) ListAccounts

func (_m *Accounter) ListAccounts()

ListAccounts provides a mock function with given fields:

func (*Accounter) RemoveAccount

func (_m *Accounter) RemoveAccount(accountID string)

RemoveAccount provides a mock function with given fields: accountID

type Authenticater

type Authenticater struct {
	mock.Mock
}

Authenticater is an autogenerated mock type for the Authenticater type

func (*Authenticater) Authenticate

func (_m *Authenticater) Authenticate() error

Authenticate provides a mock function with given fields:

type ClientService added in v0.5.0

type ClientService struct {
	mock.Mock
}

ClientService is an autogenerated mock type for the ClientService type

func (*ClientService) OptionsAccounts added in v0.5.0

func (_m *ClientService) OptionsAccounts(params *c_o_r_s.OptionsAccountsParams) (*c_o_r_s.OptionsAccountsOK, error)

OptionsAccounts provides a mock function with given fields: params

func (*ClientService) OptionsAccountsID added in v0.5.0

OptionsAccountsID provides a mock function with given fields: params

func (*ClientService) OptionsAuth added in v0.5.0

func (_m *ClientService) OptionsAuth(params *c_o_r_s.OptionsAuthParams) (*c_o_r_s.OptionsAuthOK, error)

OptionsAuth provides a mock function with given fields: params

func (*ClientService) OptionsAuthFile added in v0.5.0

func (_m *ClientService) OptionsAuthFile(params *c_o_r_s.OptionsAuthFileParams) (*c_o_r_s.OptionsAuthFileOK, error)

OptionsAuthFile provides a mock function with given fields: params

func (*ClientService) OptionsLeases added in v0.5.0

func (_m *ClientService) OptionsLeases(params *c_o_r_s.OptionsLeasesParams) (*c_o_r_s.OptionsLeasesOK, error)

OptionsLeases provides a mock function with given fields: params

func (*ClientService) OptionsLeasesAuth added in v0.5.0

OptionsLeasesAuth provides a mock function with given fields: params

func (*ClientService) OptionsLeasesID added in v0.5.0

func (_m *ClientService) OptionsLeasesID(params *c_o_r_s.OptionsLeasesIDParams) (*c_o_r_s.OptionsLeasesIDOK, error)

OptionsLeasesID provides a mock function with given fields: params

func (*ClientService) OptionsLeasesIDAuth added in v0.5.0

OptionsLeasesIDAuth provides a mock function with given fields: params

func (*ClientService) OptionsUsage added in v0.5.0

func (_m *ClientService) OptionsUsage(params *c_o_r_s.OptionsUsageParams) (*c_o_r_s.OptionsUsageOK, error)

OptionsUsage provides a mock function with given fields: params

func (*ClientService) SetTransport added in v0.5.0

func (_m *ClientService) SetTransport(transport runtime.ClientTransport)

SetTransport provides a mock function with given fields: transport

type Deployer

type Deployer struct {
	mock.Mock
}

Deployer is an autogenerated mock type for the Deployer type

func (*Deployer) Deploy

func (_m *Deployer) Deploy(input *service.DeployConfig) error

Deploy provides a mock function with given fields: input

func (*Deployer) PostDeploy added in v0.4.0

func (_m *Deployer) PostDeploy(input *service.DeployConfig) error

PostDeploy provides a mock function with given fields: input

type Durationer

type Durationer struct {
	mock.Mock
}

Durationer is an autogenerated mock type for the Durationer type

func (*Durationer) ExpandEpochTime

func (_m *Durationer) ExpandEpochTime(str string) (int64, error)

ExpandEpochTime provides a mock function with given fields: str

func (*Durationer) ParseDuration

func (_m *Durationer) ParseDuration(str string) (time.Duration, error)

ParseDuration provides a mock function with given fields: str

type FileSystemer

type FileSystemer struct {
	mock.Mock
}

FileSystemer is an autogenerated mock type for the FileSystemer type

func (*FileSystemer) ChToConfigDir added in v0.4.0

func (_m *FileSystemer) ChToConfigDir() (string, string)

ChToConfigDir provides a mock function with given fields:

func (*FileSystemer) ChToTmpDir added in v0.4.0

func (_m *FileSystemer) ChToTmpDir() (string, string)

ChToTmpDir provides a mock function with given fields:

func (*FileSystemer) Chdir

func (_m *FileSystemer) Chdir(path string)

Chdir provides a mock function with given fields: path

func (*FileSystemer) CreateConfigDirTree added in v0.4.0

func (_m *FileSystemer) CreateConfigDirTree(dceVersion string) error

CreateConfigDirTree provides a mock function with given fields: dceVersion

func (*FileSystemer) GetArtifactsDir added in v0.4.0

func (_m *FileSystemer) GetArtifactsDir(dceVersion string) string

GetArtifactsDir provides a mock function with given fields: dceVersion

func (*FileSystemer) GetCacheDir added in v0.4.0

func (_m *FileSystemer) GetCacheDir() string

GetCacheDir provides a mock function with given fields:

func (*FileSystemer) GetConfigDir added in v0.4.0

func (_m *FileSystemer) GetConfigDir() string

GetConfigDir provides a mock function with given fields:

func (*FileSystemer) GetConfigFile

func (_m *FileSystemer) GetConfigFile() string

GetConfigFile provides a mock function with given fields:

func (*FileSystemer) GetHomeDir

func (_m *FileSystemer) GetHomeDir() string

GetHomeDir provides a mock function with given fields:

func (*FileSystemer) GetLocalMainTFFile added in v0.4.0

func (_m *FileSystemer) GetLocalMainTFFile() string

GetLocalMainTFFile provides a mock function with given fields:

func (*FileSystemer) GetLocalTFModuleDir added in v0.4.0

func (_m *FileSystemer) GetLocalTFModuleDir() string

GetLocalTFModuleDir provides a mock function with given fields:

func (*FileSystemer) GetLogFile added in v0.4.0

func (_m *FileSystemer) GetLogFile() string

GetLogFile provides a mock function with given fields:

func (*FileSystemer) GetTerraformBin added in v0.4.0

func (_m *FileSystemer) GetTerraformBin() string

GetTerraformBin provides a mock function with given fields:

func (*FileSystemer) GetTerraformBinDir added in v0.4.0

func (_m *FileSystemer) GetTerraformBinDir() string

GetTerraformBinDir provides a mock function with given fields:

func (*FileSystemer) GetTerraformStateFile added in v0.4.0

func (_m *FileSystemer) GetTerraformStateFile() string

GetTerraformStateFile provides a mock function with given fields:

func (*FileSystemer) IsExistingFile

func (_m *FileSystemer) IsExistingFile(path string) bool

IsExistingFile provides a mock function with given fields: path

func (*FileSystemer) OpenFileWriter added in v0.4.0

func (_m *FileSystemer) OpenFileWriter(path string) (*os.File, error)

OpenFileWriter provides a mock function with given fields: path

func (*FileSystemer) ReadDir

func (_m *FileSystemer) ReadDir(path string) []os.FileInfo

ReadDir provides a mock function with given fields: path

func (*FileSystemer) ReadFromFile

func (_m *FileSystemer) ReadFromFile(path string) string

ReadFromFile provides a mock function with given fields: path

func (*FileSystemer) ReadInConfig

func (_m *FileSystemer) ReadInConfig() error

ReadInConfig provides a mock function with given fields:

func (*FileSystemer) RemoveAll

func (_m *FileSystemer) RemoveAll(path string)

RemoveAll provides a mock function with given fields: path

func (*FileSystemer) Unarchive

func (_m *FileSystemer) Unarchive(source string, destination string) error

Unarchive provides a mock function with given fields: source, destination

func (*FileSystemer) WriteConfig

func (_m *FileSystemer) WriteConfig() error

WriteConfig provides a mock function with given fields:

func (*FileSystemer) WriteFile

func (_m *FileSystemer) WriteFile(fileName string, data string)

WriteFile provides a mock function with given fields: fileName, data

type Githuber

type Githuber struct {
	mock.Mock
}

Githuber is an autogenerated mock type for the Githuber type

func (*Githuber) DownloadGithubReleaseAsset

func (_m *Githuber) DownloadGithubReleaseAsset(assetName string, dceVersion string) error

DownloadGithubReleaseAsset provides a mock function with given fields: assetName, dceVersion

type Initer

type Initer struct {
	mock.Mock
}

Initer is an autogenerated mock type for the Initer type

func (*Initer) InitializeDCE

func (_m *Initer) InitializeDCE()

InitializeDCE provides a mock function with given fields:

type Leaser

type Leaser struct {
	mock.Mock
}

Leaser is an autogenerated mock type for the Leaser type

func (*Leaser) CreateLease

func (_m *Leaser) CreateLease(principalID string, budgetAmount float64, budgetCurrency string, email []string, expiresOn string)

CreateLease provides a mock function with given fields: principalID, budgetAmount, budgetCurrency, email, expiresOn

func (*Leaser) EndLease

func (_m *Leaser) EndLease(accountID string, principalID string)

EndLease provides a mock function with given fields: accountID, principalID

func (*Leaser) GetLease

func (_m *Leaser) GetLease(leaseID string)

GetLease provides a mock function with given fields: leaseID

func (*Leaser) ListLeases

func (_m *Leaser) ListLeases(acctID string, principalID string, nextAcctID string, nextPrincipalID string, leaseStatus string, pagLimit int64)

ListLeases provides a mock function with given fields: acctID, principalID, nextAcctID, nextPrincipalID, leaseStatus, pagLimit

func (*Leaser) Login added in v0.5.0

func (_m *Leaser) Login(opts *service.LeaseLoginOptions)

Login provides a mock function with given fields: opts

func (*Leaser) LoginByID added in v0.5.0

func (_m *Leaser) LoginByID(leaseID string, opts *service.LeaseLoginOptions)

LoginByID provides a mock function with given fields: leaseID, opts

type LevelLogger

type LevelLogger struct {
	mock.Mock
}

LevelLogger is an autogenerated mock type for the LevelLogger type

func (*LevelLogger) Debug

func (_m *LevelLogger) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*LevelLogger) Debugf

func (_m *LevelLogger) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, args

func (*LevelLogger) Debugln

func (_m *LevelLogger) Debugln(args ...interface{})

Debugln provides a mock function with given fields: args

func (*LevelLogger) Error

func (_m *LevelLogger) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*LevelLogger) Errorf

func (_m *LevelLogger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*LevelLogger) Errorln

func (_m *LevelLogger) Errorln(args ...interface{})

Errorln provides a mock function with given fields: args

func (*LevelLogger) Fatal

func (_m *LevelLogger) Fatal(args ...interface{})

Fatal provides a mock function with given fields: args

func (*LevelLogger) Fatalf

func (_m *LevelLogger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*LevelLogger) Fatalln

func (_m *LevelLogger) Fatalln(args ...interface{})

Fatalln provides a mock function with given fields: args

func (*LevelLogger) Info

func (_m *LevelLogger) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*LevelLogger) Infof

func (_m *LevelLogger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

func (*LevelLogger) Infoln

func (_m *LevelLogger) Infoln(args ...interface{})

Infoln provides a mock function with given fields: args

func (*LevelLogger) Print

func (_m *LevelLogger) Print(args ...interface{})

Print provides a mock function with given fields: args

func (*LevelLogger) Printf

func (_m *LevelLogger) Printf(format string, args ...interface{})

Printf provides a mock function with given fields: format, args

func (*LevelLogger) Println

func (_m *LevelLogger) Println(args ...interface{})

Println provides a mock function with given fields: args

func (*LevelLogger) Warn

func (_m *LevelLogger) Warn(args ...interface{})

Warn provides a mock function with given fields: args

func (*LevelLogger) Warnf

func (_m *LevelLogger) Warnf(format string, args ...interface{})

Warnf provides a mock function with given fields: format, args

func (*LevelLogger) Warnln

func (_m *LevelLogger) Warnln(args ...interface{})

Warnln provides a mock function with given fields: args

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Debug

func (_m *Logger) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*Logger) Debugf

func (_m *Logger) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, args

func (*Logger) Debugln

func (_m *Logger) Debugln(args ...interface{})

Debugln provides a mock function with given fields: args

func (*Logger) End

func (_m *Logger) End(args ...interface{})

End provides a mock function with given fields: args

func (*Logger) Endf

func (_m *Logger) Endf(format string, args ...interface{})

Endf provides a mock function with given fields: format, args

func (*Logger) Endln

func (_m *Logger) Endln(args ...interface{})

Endln provides a mock function with given fields: args

func (*Logger) Error

func (_m *Logger) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*Logger) Errorf

func (_m *Logger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*Logger) Errorln

func (_m *Logger) Errorln(args ...interface{})

Errorln provides a mock function with given fields: args

func (*Logger) Fatal

func (_m *Logger) Fatal(args ...interface{})

Fatal provides a mock function with given fields: args

func (*Logger) Fatalf

func (_m *Logger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*Logger) Fatalln

func (_m *Logger) Fatalln(args ...interface{})

Fatalln provides a mock function with given fields: args

func (*Logger) Info

func (_m *Logger) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*Logger) Infof

func (_m *Logger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

func (*Logger) Infoln

func (_m *Logger) Infoln(args ...interface{})

Infoln provides a mock function with given fields: args

func (*Logger) Print

func (_m *Logger) Print(args ...interface{})

Print provides a mock function with given fields: args

func (*Logger) Printf

func (_m *Logger) Printf(format string, args ...interface{})

Printf provides a mock function with given fields: format, args

func (*Logger) Println

func (_m *Logger) Println(args ...interface{})

Println provides a mock function with given fields: args

func (*Logger) Warn

func (_m *Logger) Warn(args ...interface{})

Warn provides a mock function with given fields: args

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

Warnf provides a mock function with given fields: format, args

func (*Logger) Warnln

func (_m *Logger) Warnln(args ...interface{})

Warnln provides a mock function with given fields: args

type OutputWriter added in v0.5.0

type OutputWriter struct {
	mock.Mock
}

OutputWriter is an autogenerated mock type for the OutputWriter type

func (*OutputWriter) Write added in v0.5.0

func (_m *OutputWriter) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type Prompter

type Prompter struct {
	mock.Mock
}

Prompter is an autogenerated mock type for the Prompter type

func (*Prompter) PromptBasic

func (_m *Prompter) PromptBasic(label string, validator func(string) error) *string

PromptBasic provides a mock function with given fields: label, validator

func (*Prompter) PromptSelect

func (_m *Prompter) PromptSelect(label string, items []string) *string

PromptSelect provides a mock function with given fields: label, items

type TFTemplater added in v0.4.0

type TFTemplater struct {
	mock.Mock
}

TFTemplater is an autogenerated mock type for the TFTemplater type

func (*TFTemplater) AddVariable added in v0.4.0

func (_m *TFTemplater) AddVariable(name string, vartype string, vardefault string) error

AddVariable provides a mock function with given fields: name, vartype, vardefault

func (*TFTemplater) SetModuleSource added in v0.5.0

func (_m *TFTemplater) SetModuleSource(source string)

SetModuleSource provides a mock function with given fields: source

func (*TFTemplater) Write added in v0.4.0

func (_m *TFTemplater) Write(w io.Writer) error

Write provides a mock function with given fields: w

type TerraformBinDownloader added in v0.4.0

type TerraformBinDownloader struct {
	mock.Mock
}

TerraformBinDownloader is an autogenerated mock type for the TerraformBinDownloader type

func (*TerraformBinDownloader) Download added in v0.4.0

func (_m *TerraformBinDownloader) Download(url string, localpath string) error

Download provides a mock function with given fields: url, localpath

type TerraformBinFileSystemUtil added in v0.4.0

type TerraformBinFileSystemUtil struct {
	mock.Mock
}

TerraformBinFileSystemUtil is an autogenerated mock type for the TerraformBinFileSystemUtil type

func (*TerraformBinFileSystemUtil) GetConfigDir added in v0.4.0

func (_m *TerraformBinFileSystemUtil) GetConfigDir() string

GetConfigDir provides a mock function with given fields:

func (*TerraformBinFileSystemUtil) GetLocalTFModuleDir added in v0.4.0

func (_m *TerraformBinFileSystemUtil) GetLocalTFModuleDir() string

GetLocalTFModuleDir provides a mock function with given fields:

func (*TerraformBinFileSystemUtil) GetTerraformBin added in v0.4.0

func (_m *TerraformBinFileSystemUtil) GetTerraformBin() string

GetTerraformBin provides a mock function with given fields:

func (*TerraformBinFileSystemUtil) GetTerraformBinDir added in v0.4.0

func (_m *TerraformBinFileSystemUtil) GetTerraformBinDir() string

GetTerraformBinDir provides a mock function with given fields:

func (*TerraformBinFileSystemUtil) IsExistingFile added in v0.4.0

func (_m *TerraformBinFileSystemUtil) IsExistingFile(path string) bool

IsExistingFile provides a mock function with given fields: path

func (*TerraformBinFileSystemUtil) OpenFileWriter added in v0.4.0

func (_m *TerraformBinFileSystemUtil) OpenFileWriter(path string) (*os.File, error)

OpenFileWriter provides a mock function with given fields: path

func (*TerraformBinFileSystemUtil) RemoveAll added in v0.4.0

func (_m *TerraformBinFileSystemUtil) RemoveAll(path string)

RemoveAll provides a mock function with given fields: path

func (*TerraformBinFileSystemUtil) Unarchive added in v0.4.0

func (_m *TerraformBinFileSystemUtil) Unarchive(source string, destination string) error

Unarchive provides a mock function with given fields: source, destination

type Terraformer

type Terraformer struct {
	mock.Mock
}

Terraformer is an autogenerated mock type for the Terraformer type

func (*Terraformer) Apply

func (_m *Terraformer) Apply(ctx context.Context, args []string) error

Apply provides a mock function with given fields: ctx, args

func (*Terraformer) GetOutput

func (_m *Terraformer) GetOutput(ctx context.Context, key string) (string, error)

GetOutput provides a mock function with given fields: ctx, key

func (*Terraformer) Init

func (_m *Terraformer) Init(ctx context.Context, args []string) error

Init provides a mock function with given fields: ctx, args

type Usager

type Usager struct {
	mock.Mock
}

Usager is an autogenerated mock type for the Usager type

func (*Usager) GetUsage

func (_m *Usager) GetUsage(startDate float64, endDate float64)

GetUsage provides a mock function with given fields: startDate, endDate

type Weber

type Weber struct {
	mock.Mock
}

Weber is an autogenerated mock type for the Weber type

func (*Weber) OpenURL

func (_m *Weber) OpenURL(url string)

OpenURL provides a mock function with given fields: url

Jump to

Keyboard shortcuts

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