mocks

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterface

type ClientInterface struct {
	mock.Mock
}

ClientInterface is an autogenerated mock type for the ClientInterface type

func NewClientInterface

func NewClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientInterface

NewClientInterface creates a new instance of ClientInterface. 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 (*ClientInterface) CreateInvitation

func (_m *ClientInterface) CreateInvitation(ctx context.Context, email bool, name string) (*styra.CreateInvitationResponse, error)

CreateInvitation provides a mock function with given fields: ctx, email, name

func (*ClientInterface) CreateRoleBinding

CreateRoleBinding provides a mock function with given fields: ctx, request

func (*ClientInterface) CreateSystem

CreateSystem provides a mock function with given fields: ctx, request

func (*ClientInterface) CreateUpdateSecret

func (_m *ClientInterface) CreateUpdateSecret(ctx context.Context, secretID string, request *styra.CreateUpdateSecretsRequest) (*styra.CreateUpdateSecretResponse, error)

CreateUpdateSecret provides a mock function with given fields: ctx, secretID, request

func (*ClientInterface) DeleteDatasource

func (_m *ClientInterface) DeleteDatasource(ctx context.Context, id string) (*styra.DeleteDatasourceResponse, error)

DeleteDatasource provides a mock function with given fields: ctx, id

func (*ClientInterface) DeletePolicy added in v0.9.5

func (_m *ClientInterface) DeletePolicy(ctx context.Context, policyName string) (*styra.DeletePolicyResponse, error)

DeletePolicy provides a mock function with given fields: ctx, policyName

func (*ClientInterface) DeleteRoleBindingV2

func (_m *ClientInterface) DeleteRoleBindingV2(ctx context.Context, id string) (*styra.DeleteRoleBindingV2Response, error)

DeleteRoleBindingV2 provides a mock function with given fields: ctx, id

func (*ClientInterface) DeleteSystem

func (_m *ClientInterface) DeleteSystem(ctx context.Context, id string) (*styra.DeleteSystemResponse, error)

DeleteSystem provides a mock function with given fields: ctx, id

func (*ClientInterface) GetDatasource

func (_m *ClientInterface) GetDatasource(ctx context.Context, id string) (*styra.GetDatasourceResponse, error)

GetDatasource provides a mock function with given fields: ctx, id

func (*ClientInterface) GetLibrary added in v0.10.0

func (_m *ClientInterface) GetLibrary(ctx context.Context, id string) (*styra.GetLibraryResponse, error)

GetLibrary provides a mock function with given fields: ctx, id

func (*ClientInterface) GetOPAConfig

func (_m *ClientInterface) GetOPAConfig(ctx context.Context, systemID string) (styra.OPAConfig, error)

GetOPAConfig provides a mock function with given fields: ctx, systemID

func (*ClientInterface) GetSystem

func (_m *ClientInterface) GetSystem(ctx context.Context, id string) (*styra.GetSystemResponse, error)

GetSystem provides a mock function with given fields: ctx, id

func (*ClientInterface) GetSystemByName added in v0.13.0

func (_m *ClientInterface) GetSystemByName(ctx context.Context, name string) (*styra.GetSystemResponse, error)

GetSystemByName provides a mock function with given fields: ctx, name

func (*ClientInterface) GetUser

func (_m *ClientInterface) GetUser(ctx context.Context, name string) (*styra.GetUserResponse, error)

GetUser provides a mock function with given fields: ctx, name

func (*ClientInterface) GetUsers added in v0.19.0

GetUsers provides a mock function with given fields: ctx

func (*ClientInterface) InvalidateCache added in v0.19.0

func (_m *ClientInterface) InvalidateCache()

InvalidateCache provides a mock function with given fields:

func (*ClientInterface) ListRoleBindingsV2

ListRoleBindingsV2 provides a mock function with given fields: ctx, params

func (*ClientInterface) UpdateRoleBindingSubjects

UpdateRoleBindingSubjects provides a mock function with given fields: ctx, id, request

func (*ClientInterface) UpdateSystem

UpdateSystem provides a mock function with given fields: ctx, id, request

func (*ClientInterface) UpdateWorkspace added in v0.16.0

UpdateWorkspace provides a mock function with given fields: ctx, request

func (*ClientInterface) UpsertDatasource

UpsertDatasource provides a mock function with given fields: ctx, id, request

func (*ClientInterface) UpsertLibrary added in v0.10.0

UpsertLibrary provides a mock function with given fields: ctx, id, request

func (*ClientInterface) VerifyGitConfiguration

func (_m *ClientInterface) VerifyGitConfiguration(ctx context.Context, request *styra.VerfiyGitConfigRequest) (*styra.VerfiyGitConfigResponse, error)

VerifyGitConfiguration provides a mock function with given fields: ctx, request

Jump to

Keyboard shortcuts

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