automock

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 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 mockConstructorTestingTNewClient) *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.

func (*Client) GetSystemAuthByID

func (_m *Client) GetSystemAuthByID(ctx context.Context, authID string) (*model.SystemAuth, error)

GetSystemAuthByID provides a mock function with given fields: ctx, authID

func (*Client) GetSystemAuthByToken

func (_m *Client) GetSystemAuthByToken(ctx context.Context, token string) (*model.SystemAuth, error)

GetSystemAuthByToken provides a mock function with given fields: ctx, token

func (*Client) GetTenantByExternalID

func (_m *Client) GetTenantByExternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)

GetTenantByExternalID provides a mock function with given fields: ctx, tenantID

func (*Client) GetTenantByInternalID

func (_m *Client) GetTenantByInternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)

GetTenantByInternalID provides a mock function with given fields: ctx, tenantID

func (*Client) GetTenantByLowestOwnerForResource

func (_m *Client) GetTenantByLowestOwnerForResource(ctx context.Context, resourceID string, resourceType string) (string, error)

GetTenantByLowestOwnerForResource provides a mock function with given fields: ctx, resourceID, resourceType

func (*Client) InvalidateSystemAuthOneTimeToken

func (_m *Client) InvalidateSystemAuthOneTimeToken(ctx context.Context, authID string) error

InvalidateSystemAuthOneTimeToken provides a mock function with given fields: ctx, authID

func (*Client) ListCertificateSubjectMappings

func (_m *Client) ListCertificateSubjectMappings(ctx context.Context, after string) (*graphql.CertificateSubjectMappingPage, error)

ListCertificateSubjectMappings provides a mock function with given fields: ctx, after

func (*Client) UpdateSystemAuth

func (_m *Client) UpdateSystemAuth(ctx context.Context, sysAuth *model.SystemAuth) (director.UpdateAuthResult, error)

UpdateSystemAuth provides a mock function with given fields: ctx, sysAuth

type ClientProvider

type ClientProvider struct {
	mock.Mock
}

ClientProvider is an autogenerated mock type for the ClientProvider type

func NewClientProvider

func NewClientProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientProvider

NewClientProvider creates a new instance of ClientProvider. 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 (*ClientProvider) Client

func (_m *ClientProvider) Client() director.Client

Client provides a mock function with given fields:

Jump to

Keyboard shortcuts

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