mocks

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) Session

func (_m *Client) Session(ctx context.Context, actor string, emulator string) (awsprovider.Session, error)

Session provides a mock function with given fields: ctx, actor, emulator

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func NewSession

func NewSession(t interface {
	mock.TestingT
	Cleanup(func())
}) *Session

NewSession creates a new instance of Session. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Session) AuthenticationTest

func (_m *Session) AuthenticationTest(providerID string, variables map[string]string) error

AuthenticationTest provides a mock function with given fields: providerID, variables

func (*Session) CredentialList

func (_m *Session) CredentialList(providerID string) ([]service.CredentialModel, error)

CredentialList provides a mock function with given fields: providerID

func (*Session) FlavorList

func (_m *Session) FlavorList(providerID string, region string, credential providers.CredentialOption) ([]providers.Flavor, error)

FlavorList provides a mock function with given fields: providerID, region, credential

func (*Session) GetFlavor

func (_m *Session) GetFlavor(providerID string, region string, credential providers.CredentialOption, flavorID string) (*providers.Flavor, error)

GetFlavor provides a mock function with given fields: providerID, region, credential, flavorID

func (*Session) GetImage

func (_m *Session) GetImage(providerID string, region string, credential providers.CredentialOption, imageID string) (*providers.AWSImage, error)

GetImage provides a mock function with given fields: providerID, region, credential, imageID

func (*Session) ImageList

func (_m *Session) ImageList(providerID string, region string, credential providers.CredentialOption) ([]providers.AWSImage, error)

ImageList provides a mock function with given fields: providerID, region, credential

func (*Session) RegionList

func (_m *Session) RegionList(providerID string, credential providers.CredentialOption) ([]providers.Region, error)

RegionList provides a mock function with given fields: providerID, credential

Jump to

Keyboard shortcuts

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