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) (openstackprovider.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) ApplicationCredentialList

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

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

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

func (_m *Session) CreateApplicationCredential(providerID string, credential providers.CredentialOption, namePostfix string, scope providers.ProjectScope) (string, error)

CreateApplicationCredential provides a mock function with given fields: providerID, credential, namePostfix, scope

func (*Session) CredentialList

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

CredentialList provides a mock function with given fields: providerID, filter

func (*Session) DeleteApplicationCredential

func (_m *Session) DeleteApplicationCredential(providerID string, credentialID string) error

DeleteApplicationCredential provides a mock function with given fields: providerID, credentialID

func (*Session) FlavorList

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

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

func (*Session) GetApplicationCredential

func (_m *Session) GetApplicationCredential(providerID string, credential providers.CredentialOption, applicationCredentialID string) (*providers.ApplicationCredential, error)

GetApplicationCredential provides a mock function with given fields: providerID, credential, applicationCredentialID

func (*Session) GetFlavor

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

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

func (*Session) GetImage

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

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

func (*Session) GetProject

func (_m *Session) GetProject(providerID string, credential providers.CredentialOption, projectID string) (*providers.Project, error)

GetProject provides a mock function with given fields: providerID, credential, projectID

func (*Session) ImageList

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

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

func (*Session) ProjectList

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

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

func (*Session) RecordsetList

func (_m *Session) RecordsetList(providerID string, credential providers.CredentialOption, zoneID string) ([]providers.DNSRecordset, error)

RecordsetList provides a mock function with given fields: providerID, credential, zoneID

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

func (*Session) ZoneList

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

ZoneList 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