Documentation
¶
Index ¶
- type Client
- func (_m *Client) GetSystemAuthByID(ctx context.Context, authID string) (*model.SystemAuth, error)
- func (_m *Client) GetSystemAuthByToken(ctx context.Context, token string) (*model.SystemAuth, error)
- func (_m *Client) GetTenantByExternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)
- func (_m *Client) GetTenantByInternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)
- func (_m *Client) GetTenantByLowestOwnerForResource(ctx context.Context, resourceID string, resourceType string) (string, error)
- func (_m *Client) InvalidateSystemAuthOneTimeToken(ctx context.Context, authID string) error
- func (_m *Client) ListCertificateSubjectMappings(ctx context.Context, after string) (*graphql.CertificateSubjectMappingPage, error)
- func (_m *Client) UpdateSystemAuth(ctx context.Context, sysAuth *model.SystemAuth) (director.UpdateAuthResult, error)
- type ClientProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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 ¶
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 ¶
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 ¶
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: