mock

package
v0.0.0-...-494ba3a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInterface

AccountInterface is a mock of AccountInterface interface

func (*AccountInterface) Create

Create mocks base method by wrapping the associated func.

func (*AccountInterface) CreateCalled

func (m *AccountInterface) CreateCalled() bool

CreateCalled returns true if Create was called at least once.

func (*AccountInterface) CreateCalls

func (m *AccountInterface) CreateCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.Account
}

CreateCalls returns the calls made to Create.

func (*AccountInterface) Get

Get mocks base method by wrapping the associated func.

func (*AccountInterface) GetCalled

func (m *AccountInterface) GetCalled() bool

GetCalled returns true if Get was called at least once.

func (*AccountInterface) GetCalls

GetCalls returns the calls made to Get.

func (*AccountInterface) List

List mocks base method by wrapping the associated func.

func (*AccountInterface) ListCalled

func (m *AccountInterface) ListCalled() bool

ListCalled returns true if List was called at least once.

func (*AccountInterface) ListCalls

ListCalls returns the calls made to List.

func (*AccountInterface) Reset

func (m *AccountInterface) Reset()

Reset resets the calls made to the mocked methods.

type Auth

Auth is a mock of Auth interface

func (*Auth) Login

Login mocks base method by wrapping the associated func.

func (*Auth) LoginCalled

func (m *Auth) LoginCalled() bool

LoginCalled returns true if Login was called at least once.

func (*Auth) LoginCalls

LoginCalls returns the calls made to Login.

func (*Auth) Logout

Logout mocks base method by wrapping the associated func.

func (*Auth) LogoutCalled

func (m *Auth) LogoutCalled() bool

LogoutCalled returns true if Logout was called at least once.

func (*Auth) LogoutCalls

func (m *Auth) LogoutCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.AuthenticateRequest
}

LogoutCalls returns the calls made to Logout.

func (*Auth) OktaLogin

OktaLogin mocks base method by wrapping the associated func.

func (*Auth) OktaLoginCalled

func (m *Auth) OktaLoginCalled() bool

OktaLoginCalled returns true if OktaLogin was called at least once.

func (*Auth) OktaLoginCalls

func (m *Auth) OktaLoginCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.AuthenticateRequest
}

OktaLoginCalls returns the calls made to OktaLogin.

func (*Auth) OktaLogout

OktaLogout mocks base method by wrapping the associated func.

func (*Auth) OktaLogoutCalled

func (m *Auth) OktaLogoutCalled() bool

OktaLogoutCalled returns true if OktaLogout was called at least once.

func (*Auth) OktaLogoutCalls

func (m *Auth) OktaLogoutCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.AuthenticateRequest
}

OktaLogoutCalls returns the calls made to OktaLogout.

func (*Auth) Reset

func (m *Auth) Reset()

Reset resets the calls made to the mocked methods.

func (*Auth) User

User mocks base method by wrapping the associated func.

func (*Auth) UserCalled

func (m *Auth) UserCalled() bool

UserCalled returns true if User was called at least once.

func (*Auth) UserCalls

func (m *Auth) UserCalls() []struct {
}

UserCalls returns the calls made to User.

type Billing

Billing is a mock of Billing interface

func (*Billing) ClaimPromoCode

ClaimPromoCode mocks base method by wrapping the associated func.

func (*Billing) ClaimPromoCodeCalled

func (m *Billing) ClaimPromoCodeCalled() bool

ClaimPromoCodeCalled returns true if ClaimPromoCode was called at least once.

func (*Billing) ClaimPromoCodeCalls

func (m *Billing) ClaimPromoCodeCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.Organization
	Arg1 string
}

ClaimPromoCodeCalls returns the calls made to ClaimPromoCode.

func (*Billing) GetClaimedPromoCodes

GetClaimedPromoCodes mocks base method by wrapping the associated func.

func (*Billing) GetClaimedPromoCodesCalled

func (m *Billing) GetClaimedPromoCodesCalled() bool

GetClaimedPromoCodesCalled returns true if GetClaimedPromoCodes was called at least once.

func (*Billing) GetClaimedPromoCodesCalls

func (m *Billing) GetClaimedPromoCodesCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.Organization
	Arg1 bool
}

GetClaimedPromoCodesCalls returns the calls made to GetClaimedPromoCodes.

func (*Billing) GetPaymentInfo

GetPaymentInfo mocks base method by wrapping the associated func.

func (*Billing) GetPaymentInfoCalled

func (m *Billing) GetPaymentInfoCalled() bool

GetPaymentInfoCalled returns true if GetPaymentInfo was called at least once.

func (*Billing) GetPaymentInfoCalls

func (m *Billing) GetPaymentInfoCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.Organization
}

GetPaymentInfoCalls returns the calls made to GetPaymentInfo.

func (*Billing) GetPriceTable

GetPriceTable mocks base method by wrapping the associated func.

func (*Billing) GetPriceTableCalled

func (m *Billing) GetPriceTableCalled() bool

GetPriceTableCalled returns true if GetPriceTable was called at least once.

func (*Billing) GetPriceTableCalls

func (m *Billing) GetPriceTableCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.Organization
	Arg1 string
}

GetPriceTableCalls returns the calls made to GetPriceTable.

func (*Billing) Reset

func (m *Billing) Reset()

Reset resets the calls made to the mocked methods.

func (*Billing) UpdatePaymentInfo

UpdatePaymentInfo mocks base method by wrapping the associated func.

func (*Billing) UpdatePaymentInfoCalled

func (m *Billing) UpdatePaymentInfoCalled() bool

UpdatePaymentInfoCalled returns true if UpdatePaymentInfo was called at least once.

func (*Billing) UpdatePaymentInfoCalls

func (m *Billing) UpdatePaymentInfoCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.Organization
	Arg1 string
}

UpdatePaymentInfoCalls returns the calls made to UpdatePaymentInfo.

type EnvironmentMetadata

type EnvironmentMetadata struct {
	GetFunc func() ([]*github_com_confluentinc_ccloud_sdk_go_v1_public.CloudMetadata, error)
	// contains filtered or unexported fields
}

EnvironmentMetadata is a mock of EnvironmentMetadata interface

func (*EnvironmentMetadata) Get

Get mocks base method by wrapping the associated func.

func (*EnvironmentMetadata) GetCalled

func (m *EnvironmentMetadata) GetCalled() bool

GetCalled returns true if Get was called at least once.

func (*EnvironmentMetadata) GetCalls

func (m *EnvironmentMetadata) GetCalls() []struct {
}

GetCalls returns the calls made to Get.

func (*EnvironmentMetadata) Reset

func (m *EnvironmentMetadata) Reset()

Reset resets the calls made to the mocked methods.

type Growth

type Growth struct {
	GetFreeTrialInfoFunc func(arg0 int32) ([]*github_com_confluentinc_ccloud_sdk_go_v1_public.GrowthPromoCodeClaim, error)
	// contains filtered or unexported fields
}

Growth is a mock of Growth interface

func (*Growth) GetFreeTrialInfo

GetFreeTrialInfo mocks base method by wrapping the associated func.

func (*Growth) GetFreeTrialInfoCalled

func (m *Growth) GetFreeTrialInfoCalled() bool

GetFreeTrialInfoCalled returns true if GetFreeTrialInfo was called at least once.

func (*Growth) GetFreeTrialInfoCalls

func (m *Growth) GetFreeTrialInfoCalls() []struct {
	Arg0 int32
}

GetFreeTrialInfoCalls returns the calls made to GetFreeTrialInfo.

func (*Growth) Reset

func (m *Growth) Reset()

Reset resets the calls made to the mocked methods.

type SchemaRegistry

SchemaRegistry is a mock of SchemaRegistry interface

func (*SchemaRegistry) CreateSchemaRegistryCluster

CreateSchemaRegistryCluster mocks base method by wrapping the associated func.

func (*SchemaRegistry) CreateSchemaRegistryClusterCalled

func (m *SchemaRegistry) CreateSchemaRegistryClusterCalled() bool

CreateSchemaRegistryClusterCalled returns true if CreateSchemaRegistryCluster was called at least once.

func (*SchemaRegistry) CreateSchemaRegistryClusterCalls

func (m *SchemaRegistry) CreateSchemaRegistryClusterCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.SchemaRegistryClusterConfig
}

CreateSchemaRegistryClusterCalls returns the calls made to CreateSchemaRegistryCluster.

func (*SchemaRegistry) DeleteSchemaRegistryCluster

DeleteSchemaRegistryCluster mocks base method by wrapping the associated func.

func (*SchemaRegistry) DeleteSchemaRegistryClusterCalled

func (m *SchemaRegistry) DeleteSchemaRegistryClusterCalled() bool

DeleteSchemaRegistryClusterCalled returns true if DeleteSchemaRegistryCluster was called at least once.

func (*SchemaRegistry) DeleteSchemaRegistryClusterCalls

func (m *SchemaRegistry) DeleteSchemaRegistryClusterCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.SchemaRegistryCluster
}

DeleteSchemaRegistryClusterCalls returns the calls made to DeleteSchemaRegistryCluster.

func (*SchemaRegistry) GetSchemaRegistryCluster

GetSchemaRegistryCluster mocks base method by wrapping the associated func.

func (*SchemaRegistry) GetSchemaRegistryClusterCalled

func (m *SchemaRegistry) GetSchemaRegistryClusterCalled() bool

GetSchemaRegistryClusterCalled returns true if GetSchemaRegistryCluster was called at least once.

func (*SchemaRegistry) GetSchemaRegistryClusterCalls

func (m *SchemaRegistry) GetSchemaRegistryClusterCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.SchemaRegistryCluster
}

GetSchemaRegistryClusterCalls returns the calls made to GetSchemaRegistryCluster.

func (*SchemaRegistry) GetSchemaRegistryClusters

GetSchemaRegistryClusters mocks base method by wrapping the associated func.

func (*SchemaRegistry) GetSchemaRegistryClustersCalled

func (m *SchemaRegistry) GetSchemaRegistryClustersCalled() bool

GetSchemaRegistryClustersCalled returns true if GetSchemaRegistryClusters was called at least once.

func (*SchemaRegistry) GetSchemaRegistryClustersCalls

func (m *SchemaRegistry) GetSchemaRegistryClustersCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.SchemaRegistryCluster
}

GetSchemaRegistryClustersCalls returns the calls made to GetSchemaRegistryClusters.

func (*SchemaRegistry) Reset

func (m *SchemaRegistry) Reset()

Reset resets the calls made to the mocked methods.

func (*SchemaRegistry) UpdateSchemaRegistryCluster

UpdateSchemaRegistryCluster mocks base method by wrapping the associated func.

func (*SchemaRegistry) UpdateSchemaRegistryClusterCalled

func (m *SchemaRegistry) UpdateSchemaRegistryClusterCalled() bool

UpdateSchemaRegistryClusterCalled returns true if UpdateSchemaRegistryCluster was called at least once.

func (*SchemaRegistry) UpdateSchemaRegistryClusterCalls

func (m *SchemaRegistry) UpdateSchemaRegistryClusterCalls() []struct {
	Arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.SchemaRegistryCluster
}

UpdateSchemaRegistryClusterCalls returns the calls made to UpdateSchemaRegistryCluster.

type UserInterface

type UserInterface struct {
	ListFunc func() ([]*github_com_confluentinc_ccloud_sdk_go_v1_public.User, error)

	GetServiceAccountsFunc func() ([]*github_com_confluentinc_ccloud_sdk_go_v1_public.User, error)

	GetServiceAccountFunc func(arg0 int32) (*github_com_confluentinc_ccloud_sdk_go_v1_public.User, error)

	LoginRealmFunc func(arg0 *github_com_confluentinc_ccloud_sdk_go_v1_public.GetLoginRealmRequest) (*github_com_confluentinc_ccloud_sdk_go_v1_public.GetLoginRealmReply, error)
	// contains filtered or unexported fields
}

UserInterface is a mock of UserInterface interface

func (*UserInterface) GetServiceAccount

GetServiceAccount mocks base method by wrapping the associated func.

func (*UserInterface) GetServiceAccountCalled

func (m *UserInterface) GetServiceAccountCalled() bool

GetServiceAccountCalled returns true if GetServiceAccount was called at least once.

func (*UserInterface) GetServiceAccountCalls

func (m *UserInterface) GetServiceAccountCalls() []struct {
	Arg0 int32
}

GetServiceAccountCalls returns the calls made to GetServiceAccount.

func (*UserInterface) GetServiceAccounts

GetServiceAccounts mocks base method by wrapping the associated func.

func (*UserInterface) GetServiceAccountsCalled

func (m *UserInterface) GetServiceAccountsCalled() bool

GetServiceAccountsCalled returns true if GetServiceAccounts was called at least once.

func (*UserInterface) GetServiceAccountsCalls

func (m *UserInterface) GetServiceAccountsCalls() []struct {
}

GetServiceAccountsCalls returns the calls made to GetServiceAccounts.

func (*UserInterface) List

List mocks base method by wrapping the associated func.

func (*UserInterface) ListCalled

func (m *UserInterface) ListCalled() bool

ListCalled returns true if List was called at least once.

func (*UserInterface) ListCalls

func (m *UserInterface) ListCalls() []struct {
}

ListCalls returns the calls made to List.

func (*UserInterface) LoginRealm

LoginRealm mocks base method by wrapping the associated func.

func (*UserInterface) LoginRealmCalled

func (m *UserInterface) LoginRealmCalled() bool

LoginRealmCalled returns true if LoginRealm was called at least once.

func (*UserInterface) LoginRealmCalls

LoginRealmCalls returns the calls made to LoginRealm.

func (*UserInterface) Reset

func (m *UserInterface) Reset()

Reset resets the calls made to the mocked methods.

Jump to

Keyboard shortcuts

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