mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 6 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) 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) 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) PostLeasesIDAuth

PostLeasesIDAuth 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 Deployer

type Deployer struct {
	mock.Mock
}

Deployer is an autogenerated mock type for the Deployer type

func (*Deployer) Deploy

func (_m *Deployer) Deploy(deployLocal string, overrides *service.DeployOverrides)

Deploy provides a mock function with given fields: deployLocal, overrides

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) Chdir

func (_m *FileSystemer) Chdir(path string)

Chdir provides a mock function with given fields: path

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) IsExistingFile

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

IsExistingFile provides a mock function with given fields: path

func (*FileSystemer) MvToTempDir

func (_m *FileSystemer) MvToTempDir(prefix string) (string, string)

MvToTempDir provides a mock function with given fields: prefix

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)

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)

DownloadGithubReleaseAsset provides a mock function with given fields: assetName

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) LoginToLease

func (_m *Leaser) LoginToLease(leaseID string, profile string, loginOpenBrowser bool, loginPrintCreds bool)

LoginToLease provides a mock function with given fields: leaseID, profile, loginOpenBrowser, loginPrintCreds

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 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 ResponseWithPayload

type ResponseWithPayload struct {
	mock.Mock
}

ResponseWithPayload is an autogenerated mock type for the ResponseWithPayload type

func (*ResponseWithPayload) GetPayload

func (_m *ResponseWithPayload) GetPayload() interface{}

GetPayload provides a mock function with given fields:

type Terraformer

type Terraformer struct {
	mock.Mock
}

Terraformer is an autogenerated mock type for the Terraformer type

func (*Terraformer) Apply

func (_m *Terraformer) Apply(tfVars []string)

Apply provides a mock function with given fields: tfVars

func (*Terraformer) GetOutput

func (_m *Terraformer) GetOutput(key string) string

GetOutput provides a mock function with given fields: key

func (*Terraformer) Init

func (_m *Terraformer) Init(args []string)

Init provides a mock function with given fields: 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