mocks

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 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 EnvConfig

type EnvConfig struct {
	mock.Mock
}

EnvConfig is an autogenerated mock type for the EnvConfig type

func (*EnvConfig) GetEnvFloatVar

func (_m *EnvConfig) GetEnvFloatVar(varName string, defaultValue float64) float64

GetEnvFloatVar provides a mock function with given fields: varName, defaultValue

func (*EnvConfig) GetEnvIntVar

func (_m *EnvConfig) GetEnvIntVar(varName string, defaultValue int) int

GetEnvIntVar provides a mock function with given fields: varName, defaultValue

func (*EnvConfig) GetEnvVar

func (_m *EnvConfig) GetEnvVar(varName string, defaultValue string) string

GetEnvVar provides a mock function with given fields: varName, defaultValue

func (*EnvConfig) RequireEnvIntVar

func (_m *EnvConfig) RequireEnvIntVar(varName string) int

RequireEnvIntVar provides a mock function with given fields: varName

func (*EnvConfig) RequireEnvVar

func (_m *EnvConfig) RequireEnvVar(varName string) string

RequireEnvVar provides a mock function with given fields: varName

type Notificationer

type Notificationer struct {
	mock.Mock
}

Notificationer is an autogenerated mock type for the Notificationer type

func (*Notificationer) PublishMessage

func (_m *Notificationer) PublishMessage(topicArn *string, message *string, isJSON bool) (*string, error)

PublishMessage provides a mock function with given fields: topicArn, message, isJSON

type Queue

type Queue struct {
	mock.Mock
}

Queue is an autogenerated mock type for the Queue type

func (*Queue) DeleteMessage

func (_m *Queue) DeleteMessage(_a0 *sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error)

DeleteMessage provides a mock function with given fields: _a0

func (*Queue) NewFromEnv

func (_m *Queue) NewFromEnv() error

NewFromEnv provides a mock function with given fields:

func (*Queue) ReceiveMessage

func (_m *Queue) ReceiveMessage(_a0 *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error)

ReceiveMessage provides a mock function with given fields: _a0

func (*Queue) SendMessage

func (_m *Queue) SendMessage(_a0 *string, _a1 *string) error

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

type Storager

type Storager struct {
	mock.Mock
}

Storager is an autogenerated mock type for the Storager type

func (*Storager) Download

func (_m *Storager) Download(bukcet string, key string, filepath string) error

Download provides a mock function with given fields: bukcet, key, filepath

func (*Storager) GetObject

func (_m *Storager) GetObject(bucket string, key string) (string, error)

GetObject provides a mock function with given fields: bucket, key

func (*Storager) GetTemplateObject

func (_m *Storager) GetTemplateObject(bucket string, key string, input interface{}) (string, string, error)

GetTemplateObject provides a mock function with given fields: bucket, key, input

type TokenService

type TokenService struct {
	mock.Mock
}

TokenService is an autogenerated mock type for the TokenService type

func (*TokenService) AssumeRole

func (_m *TokenService) AssumeRole(_a0 *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)

AssumeRole provides a mock function with given fields: _a0

func (*TokenService) MockNewSession

func (_m *TokenService) MockNewSession(expectedRoleArn string) *awsMocks.AwsSession

func (*TokenService) NewCredentials

func (_m *TokenService) NewCredentials(_a0 client.ConfigProvider, _a1 string) *credentials.Credentials

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

func (*TokenService) NewSession

func (_m *TokenService) NewSession(baseSession awsiface.AwsSession, roleArn string) (awsiface.AwsSession, error)

NewSession provides a mock function with given fields: baseSession, roleArn

Jump to

Keyboard shortcuts

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