Documentation ¶
Index ¶
- type ClientInterface
- func (_m *ClientInterface) CreateInvitation(ctx context.Context, email bool, name string) (*styra.CreateInvitationResponse, error)
- func (_m *ClientInterface) CreateRoleBinding(ctx context.Context, request *styra.CreateRoleBindingRequest) (*styra.CreateRoleBindingResponse, error)
- func (_m *ClientInterface) CreateSystem(ctx context.Context, request *styra.CreateSystemRequest) (*styra.CreateSystemResponse, error)
- func (_m *ClientInterface) CreateUpdateSecret(ctx context.Context, secretID string, ...) (*styra.CreateUpdateSecretResponse, error)
- func (_m *ClientInterface) DeleteDatasource(ctx context.Context, id string) (*styra.DeleteDatasourceResponse, error)
- func (_m *ClientInterface) DeletePolicy(ctx context.Context, policyName string) (*styra.DeletePolicyResponse, error)
- func (_m *ClientInterface) DeleteRoleBindingV2(ctx context.Context, id string) (*styra.DeleteRoleBindingV2Response, error)
- func (_m *ClientInterface) DeleteSystem(ctx context.Context, id string) (*styra.DeleteSystemResponse, error)
- func (_m *ClientInterface) GetDatasource(ctx context.Context, id string) (*styra.GetDatasourceResponse, error)
- func (_m *ClientInterface) GetLibrary(ctx context.Context, id string) (*styra.GetLibraryResponse, error)
- func (_m *ClientInterface) GetOPAConfig(ctx context.Context, systemID string) (styra.OPAConfig, error)
- func (_m *ClientInterface) GetSystem(ctx context.Context, id string) (*styra.GetSystemResponse, error)
- func (_m *ClientInterface) GetSystemByName(ctx context.Context, name string) (*styra.GetSystemResponse, error)
- func (_m *ClientInterface) GetUser(ctx context.Context, name string) (*styra.GetUserResponse, error)
- func (_m *ClientInterface) ListRoleBindingsV2(ctx context.Context, params *styra.ListRoleBindingsV2Params) (*styra.ListRoleBindingsV2Response, error)
- func (_m *ClientInterface) UpdateRoleBindingSubjects(ctx context.Context, id string, ...) (*styra.UpdateRoleBindingSubjectsResponse, error)
- func (_m *ClientInterface) UpdateSystem(ctx context.Context, id string, request *styra.UpdateSystemRequest) (*styra.UpdateSystemResponse, error)
- func (_m *ClientInterface) UpdateWorkspace(ctx context.Context, request *styra.UpdateWorkspaceRequest) (*styra.UpdateWorkspaceResponse, error)
- func (_m *ClientInterface) UpsertDatasource(ctx context.Context, id string, request *styra.UpsertDatasourceRequest) (*styra.UpsertDatasourceResponse, error)
- func (_m *ClientInterface) UpsertLibrary(ctx context.Context, id string, request *styra.UpsertLibraryRequest) (*styra.UpsertLibraryResponse, error)
- func (_m *ClientInterface) VerifyGitConfiguration(ctx context.Context, request *styra.VerfiyGitConfigRequest) (*styra.VerfiyGitConfigResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
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 ¶
func (_m *ClientInterface) CreateRoleBinding(ctx context.Context, request *styra.CreateRoleBindingRequest) (*styra.CreateRoleBindingResponse, error)
CreateRoleBinding provides a mock function with given fields: ctx, request
func (*ClientInterface) CreateSystem ¶
func (_m *ClientInterface) CreateSystem(ctx context.Context, request *styra.CreateSystemRequest) (*styra.CreateSystemResponse, error)
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) ListRoleBindingsV2 ¶
func (_m *ClientInterface) ListRoleBindingsV2(ctx context.Context, params *styra.ListRoleBindingsV2Params) (*styra.ListRoleBindingsV2Response, error)
ListRoleBindingsV2 provides a mock function with given fields: ctx, params
func (*ClientInterface) UpdateRoleBindingSubjects ¶
func (_m *ClientInterface) UpdateRoleBindingSubjects(ctx context.Context, id string, request *styra.UpdateRoleBindingSubjectsRequest) (*styra.UpdateRoleBindingSubjectsResponse, error)
UpdateRoleBindingSubjects provides a mock function with given fields: ctx, id, request
func (*ClientInterface) UpdateSystem ¶
func (_m *ClientInterface) UpdateSystem(ctx context.Context, id string, request *styra.UpdateSystemRequest) (*styra.UpdateSystemResponse, error)
UpdateSystem provides a mock function with given fields: ctx, id, request
func (*ClientInterface) UpdateWorkspace ¶ added in v0.16.0
func (_m *ClientInterface) UpdateWorkspace(ctx context.Context, request *styra.UpdateWorkspaceRequest) (*styra.UpdateWorkspaceResponse, error)
UpdateWorkspace provides a mock function with given fields: ctx, request
func (*ClientInterface) UpsertDatasource ¶
func (_m *ClientInterface) UpsertDatasource(ctx context.Context, id string, request *styra.UpsertDatasourceRequest) (*styra.UpsertDatasourceResponse, error)
UpsertDatasource provides a mock function with given fields: ctx, id, request
func (*ClientInterface) UpsertLibrary ¶ added in v0.10.0
func (_m *ClientInterface) UpsertLibrary(ctx context.Context, id string, request *styra.UpsertLibraryRequest) (*styra.UpsertLibraryResponse, error)
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