Documentation ¶
Index ¶
- type MockPubAckFuture
- type TestFGAAuthorizer
- func (t *TestFGAAuthorizer) AddAccountToOrganization(ctx context.Context, accountID uuid.UUID) error
- func (t *TestFGAAuthorizer) AddOrganizationalUnit(ctx context.Context, id uuid.UUID, parentID uuid.NullUUID) error
- func (t *TestFGAAuthorizer) AddUserToOrganization(ctx context.Context, userID uuid.UUID) error
- func (t *TestFGAAuthorizer) AddUsersToGroup(ctx context.Context, userIDs []uuid.UUID, groupID uuid.UUID) error
- func (t *TestFGAAuthorizer) Check(ctx context.Context, callerID uuid.UUID, relation fga.Relation, ...) (bool, error)
- func (t *TestFGAAuthorizer) CheckAccountAlreadyExistsInOrganization(ctx context.Context, accountID uuid.UUID) (bool, error)
- func (t *TestFGAAuthorizer) CheckOrganizationalUnitRelationship(ctx context.Context, id uuid.UUID, parentID uuid.NullUUID) (bool, error)
- func (t *TestFGAAuthorizer) CheckUserAlreadyExistsInGroup(ctx context.Context, userID, groupID uuid.UUID) (bool, error)
- func (t *TestFGAAuthorizer) CheckUserAlreadyExistsInOrganization(ctx context.Context, userID uuid.UUID) (bool, error)
- func (t *TestFGAAuthorizer) RemoveOrganizationalUnitRelationships(ctx context.Context, id uuid.UUID, parentID uuid.NullUUID) error
- func (t *TestFGAAuthorizer) RemoveUser(ctx context.Context, userID uuid.UUID) error
- func (t *TestFGAAuthorizer) RemoveUserFromGroup(ctx context.Context, userID uuid.UUID, groupID uuid.UUID) error
- func (t *TestFGAAuthorizer) RemoveUserFromOrganization(ctx context.Context, userID uuid.UUID) error
- func (t *TestFGAAuthorizer) RemoveUsersInGroup(ctx context.Context, groupID uuid.UUID) error
- func (t *TestFGAAuthorizer) ReplaceUsersInGroup(ctx context.Context, userIDs []uuid.UUID, groupID uuid.UUID) error
- func (t *TestFGAAuthorizer) RunAssertions(ctx context.Context, typeDefinitionsContent string) (bool, error)
- func (t *TestFGAAuthorizer) SetTypeDefinitions(ctx context.Context, authorizationModelID string) (string, error)
- func (t *TestFGAAuthorizer) UserTuples(ctx context.Context, userID uuid.UUID, document string) ([]openfga.TupleKey, error)
- func (t *TestFGAAuthorizer) WriteAssertions(ctx context.Context, authorizationModelID string, ...) error
- func (t *TestFGAAuthorizer) WriteTuples(ctx context.Context, tuples []openfga.TupleKey) error
- type TestJS
- func (t *TestJS) AccountInfo(opts ...nats.JSOpt) (*nats.AccountInfo, error)
- func (t *TestJS) AddConsumer(stream string, cfg *nats.ConsumerConfig, opts ...nats.JSOpt) (*nats.ConsumerInfo, error)
- func (t *TestJS) AddStream(cfg *nats.StreamConfig, opts ...nats.JSOpt) (*nats.StreamInfo, error)
- func (t *TestJS) ChanQueueSubscribe(subj, queue string, ch chan *nats.Msg, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) ChanSubscribe(subj string, ch chan *nats.Msg, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) ConsumerInfo(stream, name string, opts ...nats.JSOpt) (*nats.ConsumerInfo, error)
- func (t *TestJS) ConsumerNames(stream string, opts ...nats.JSOpt) <-chan string
- func (t *TestJS) Consumers(stream string, opts ...nats.JSOpt) <-chan *nats.ConsumerInfo
- func (t *TestJS) ConsumersInfo(stream string, opts ...nats.JSOpt) <-chan *nats.ConsumerInfo
- func (t *TestJS) CreateKeyValue(cfg *nats.KeyValueConfig) (nats.KeyValue, error)
- func (t *TestJS) CreateObjectStore(cfg *nats.ObjectStoreConfig) (nats.ObjectStore, error)
- func (t *TestJS) DeleteConsumer(stream, consumer string, opts ...nats.JSOpt) error
- func (t *TestJS) DeleteKeyValue(bucket string) error
- func (t *TestJS) DeleteMsg(name string, seq uint64, opts ...nats.JSOpt) error
- func (t *TestJS) DeleteObjectStore(bucket string) error
- func (t *TestJS) DeleteStream(name string, opts ...nats.JSOpt) error
- func (t *TestJS) GetLastMsg(name, subject string, opts ...nats.JSOpt) (*nats.RawStreamMsg, error)
- func (t *TestJS) GetMsg(name string, seq uint64, opts ...nats.JSOpt) (*nats.RawStreamMsg, error)
- func (t *TestJS) KeyValue(bucket string) (nats.KeyValue, error)
- func (t *TestJS) KeyValueStoreNames() <-chan string
- func (t *TestJS) KeyValueStores() <-chan nats.KeyValueStatus
- func (t *TestJS) ObjectStore(bucket string) (nats.ObjectStore, error)
- func (t *TestJS) ObjectStoreNames(opts ...nats.ObjectOpt) <-chan string
- func (t *TestJS) ObjectStores(opts ...nats.ObjectOpt) <-chan nats.ObjectStoreStatus
- func (t *TestJS) Publish(subj string, data []byte, opts ...nats.PubOpt) (*nats.PubAck, error)
- func (t *TestJS) PublishAsync(subj string, data []byte, opts ...nats.PubOpt) (nats.PubAckFuture, error)
- func (t *TestJS) PublishAsyncComplete() <-chan struct{}
- func (t *TestJS) PublishAsyncPending() int
- func (t *TestJS) PublishMsg(m *nats.Msg, opts ...nats.PubOpt) (*nats.PubAck, error)
- func (t *TestJS) PublishMsgAsync(m *nats.Msg, opts ...nats.PubOpt) (nats.PubAckFuture, error)
- func (t *TestJS) PullSubscribe(subj, durable string, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) PurgeStream(name string, opts ...nats.JSOpt) error
- func (t *TestJS) QueueSubscribe(subj, queue string, cb nats.MsgHandler, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) QueueSubscribeSync(subj, queue string, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) SecureDeleteMsg(name string, seq uint64, opts ...nats.JSOpt) error
- func (t *TestJS) StreamInfo(stream string, opts ...nats.JSOpt) (*nats.StreamInfo, error)
- func (t *TestJS) StreamNameBySubject(s string, opt ...nats.JSOpt) (string, error)
- func (t *TestJS) StreamNames(opts ...nats.JSOpt) <-chan string
- func (t *TestJS) Streams(opts ...nats.JSOpt) <-chan *nats.StreamInfo
- func (t *TestJS) StreamsInfo(opts ...nats.JSOpt) <-chan *nats.StreamInfo
- func (t *TestJS) Subscribe(subj string, cb nats.MsgHandler, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) SubscribeSync(subj string, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (t *TestJS) UpdateConsumer(stream string, cfg *nats.ConsumerConfig, opts ...nats.JSOpt) (*nats.ConsumerInfo, error)
- func (t *TestJS) UpdateStream(cfg *nats.StreamConfig, opts ...nats.JSOpt) (*nats.StreamInfo, error)
- type TestRepo
- func (t *TestRepo) AssignAccountToOU(ctx context.Context, arg db.AssignAccountToOUParams) error
- func (t *TestRepo) CreateAuditLog(ctx context.Context, arg db.CreateAuditLogParams) (db.AuditLog, error)
- func (t *TestRepo) CreateGroup(ctx context.Context, displayName string) (db.Group, error)
- func (t *TestRepo) CreateMembershipForUserAndGroup(ctx context.Context, arg db.CreateMembershipForUserAndGroupParams) error
- func (t *TestRepo) CreateOrUpdateCloudAccount(ctx context.Context, arg db.CreateOrUpdateCloudAccountParams) (db.CloudAccount, error)
- func (t *TestRepo) CreateOrUpdateCloudTenant(ctx context.Context, arg db.CreateOrUpdateCloudTenantParams) (db.CloudTenant, error)
- func (t *TestRepo) CreateOrganizationalUnit(ctx context.Context, arg db.CreateOrganizationalUnitParams) (db.OrganizationalUnit, error)
- func (t *TestRepo) CreateTag(ctx context.Context, arg db.CreateTagParams) (db.StandardTag, error)
- func (t *TestRepo) CreateUser(ctx context.Context, arg db.CreateUserParams) (db.User, error)
- func (t *TestRepo) DeleteAPIKey(ctx context.Context, id uuid.UUID) error
- func (t *TestRepo) DeleteGroup(ctx context.Context, id uuid.UUID) error
- func (t *TestRepo) DeleteOrganizationalUnit(ctx context.Context, id uuid.UUID) error
- func (t *TestRepo) DeleteScimAPIKey(ctx context.Context) error
- func (t *TestRepo) DeleteTag(ctx context.Context, id uuid.UUID) error
- func (t *TestRepo) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (t *TestRepo) DropMembershipForGroup(ctx context.Context, groupID uuid.UUID) error
- func (t *TestRepo) DropMembershipForUserAndGroup(ctx context.Context, arg db.DropMembershipForUserAndGroupParams) error
- func (t *TestRepo) FindAPIKey(ctx context.Context, id uuid.UUID) (db.ApiKey, error)
- func (t *TestRepo) FindAPIKeysByID(ctx context.Context, id []uuid.UUID) ([]db.ApiKey, error)
- func (t *TestRepo) FindCloudAccount(ctx context.Context, id uuid.UUID) (db.CloudAccount, error)
- func (t *TestRepo) FindCloudAccountByCloudAndTenant(ctx context.Context, arg db.FindCloudAccountByCloudAndTenantParams) (db.CloudAccount, error)
- func (t *TestRepo) FindOrganizationalUnit(ctx context.Context, id uuid.UUID) (db.OrganizationalUnit, error)
- func (t *TestRepo) FindScimAPIKey(ctx context.Context) (db.ApiKey, error)
- func (t *TestRepo) FindTag(ctx context.Context, id uuid.UUID) (db.StandardTag, error)
- func (t *TestRepo) FindUserByUsername(ctx context.Context, username string) (db.User, error)
- func (t *TestRepo) GetAPIKeys(ctx context.Context) ([]db.ApiKey, error)
- func (t *TestRepo) GetAPIKeysOrganizationalUnits(ctx context.Context, apiKeyID uuid.UUID) ([]db.OrganizationalUnit, error)
- func (t *TestRepo) GetAuditLogs(ctx context.Context) ([]db.AuditLog, error)
- func (t *TestRepo) GetAuditLogsForTarget(ctx context.Context, arg db.GetAuditLogsForTargetParams) ([]db.AuditLog, error)
- func (t *TestRepo) GetCloudTenant(ctx context.Context, arg db.GetCloudTenantParams) (db.CloudTenant, error)
- func (t *TestRepo) GetCloudTenants(ctx context.Context) ([]db.CloudTenant, error)
- func (t *TestRepo) GetGroup(ctx context.Context, id uuid.UUID) (db.Group, error)
- func (t *TestRepo) GetGroupCount(ctx context.Context) (int64, error)
- func (t *TestRepo) GetGroupMembership(ctx context.Context, groupID uuid.UUID) ([]db.GetGroupMembershipRow, error)
- func (t *TestRepo) GetGroupMembershipForUser(ctx context.Context, arg db.GetGroupMembershipForUserParams) (db.GetGroupMembershipForUserRow, error)
- func (t *TestRepo) GetGroups(ctx context.Context, arg db.GetGroupsParams) ([]db.Group, error)
- func (t *TestRepo) GetOrganizationalUnitChildren(ctx context.Context, parentID uuid.UUID) ([]db.OrganizationalUnit, error)
- func (t *TestRepo) GetOrganizationalUnitCloudAccounts(ctx context.Context, organizationalUnitID uuid.UUID) ([]db.CloudAccount, error)
- func (t *TestRepo) GetOrganizationalUnits(ctx context.Context) ([]db.OrganizationalUnit, error)
- func (t *TestRepo) GetTags(ctx context.Context) ([]db.StandardTag, error)
- func (t *TestRepo) GetUser(ctx context.Context, id uuid.UUID) (db.User, error)
- func (t *TestRepo) GetUserCount(ctx context.Context) (int64, error)
- func (t *TestRepo) GetUserOrganizationalUnits(ctx context.Context, userID uuid.UUID) ([]db.OrganizationalUnit, error)
- func (t *TestRepo) GetUsers(ctx context.Context, arg db.GetUsersParams) ([]db.User, error)
- func (t *TestRepo) GetUsersByID(ctx context.Context, userIDs []uuid.UUID) ([]db.User, error)
- func (t *TestRepo) InsertAPIKey(ctx context.Context, arg db.InsertAPIKeyParams) (db.ApiKey, error)
- func (t *TestRepo) InsertScimAPIKey(ctx context.Context, apiKeyID uuid.UUID) (db.ScimApiKey, error)
- func (t *TestRepo) OrganizationalUnitsCloudAccounts(ctx context.Context, id []uuid.UUID) ([]db.CloudAccount, error)
- func (t *TestRepo) PatchGroupDisplayName(ctx context.Context, arg db.PatchGroupDisplayNameParams) error
- func (t *TestRepo) PatchUser(ctx context.Context, arg db.PatchUserParams) error
- func (t *TestRepo) SearchTag(ctx context.Context, arg db.SearchTagParams) ([]db.CloudAccount, error)
- func (t *TestRepo) UnAssignAccountFromOUs(ctx context.Context, cloudAccountID uuid.UUID) error
- func (t *TestRepo) UpdateCloudAccount(ctx context.Context, arg db.UpdateCloudAccountParams) error
- func (t *TestRepo) UpdateCloudAccountTagsDriftDetected(ctx context.Context, arg db.UpdateCloudAccountTagsDriftDetectedParams) error
- func (t *TestRepo) UpdateTag(ctx context.Context, arg db.UpdateTagParams) (db.StandardTag, error)
- func (t *TestRepo) UpdateUser(ctx context.Context, arg db.UpdateUserParams) (db.User, error)
- func (t *TestRepo) WithTx(tx pgx.Tx) db.Repository
- type TestSearcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPubAckFuture ¶
func (*MockPubAckFuture) Err ¶
func (m *MockPubAckFuture) Err() <-chan error
func (*MockPubAckFuture) Msg ¶
func (m *MockPubAckFuture) Msg() *nats.Msg
func (*MockPubAckFuture) Ok ¶
func (m *MockPubAckFuture) Ok() <-chan *nats.PubAck
type TestFGAAuthorizer ¶
func (*TestFGAAuthorizer) AddAccountToOrganization ¶
func (*TestFGAAuthorizer) AddOrganizationalUnit ¶
func (*TestFGAAuthorizer) AddUserToOrganization ¶
func (*TestFGAAuthorizer) AddUsersToGroup ¶
func (*TestFGAAuthorizer) CheckAccountAlreadyExistsInOrganization ¶
func (*TestFGAAuthorizer) CheckOrganizationalUnitRelationship ¶
func (*TestFGAAuthorizer) CheckUserAlreadyExistsInGroup ¶
func (*TestFGAAuthorizer) CheckUserAlreadyExistsInOrganization ¶
func (*TestFGAAuthorizer) RemoveOrganizationalUnitRelationships ¶
func (*TestFGAAuthorizer) RemoveUser ¶
func (*TestFGAAuthorizer) RemoveUserFromGroup ¶
func (*TestFGAAuthorizer) RemoveUserFromOrganization ¶
func (*TestFGAAuthorizer) RemoveUsersInGroup ¶
func (*TestFGAAuthorizer) ReplaceUsersInGroup ¶
func (*TestFGAAuthorizer) RunAssertions ¶
func (*TestFGAAuthorizer) SetTypeDefinitions ¶
func (*TestFGAAuthorizer) UserTuples ¶
func (*TestFGAAuthorizer) WriteAssertions ¶
func (*TestFGAAuthorizer) WriteTuples ¶
type TestJS ¶
func (*TestJS) AccountInfo ¶
func (*TestJS) AddConsumer ¶
func (*TestJS) ChanQueueSubscribe ¶
func (*TestJS) ChanSubscribe ¶
func (*TestJS) ConsumerInfo ¶
func (*TestJS) ConsumerNames ¶
func (*TestJS) ConsumersInfo ¶
func (*TestJS) CreateKeyValue ¶
func (*TestJS) CreateObjectStore ¶
func (*TestJS) DeleteConsumer ¶
func (*TestJS) DeleteKeyValue ¶
func (*TestJS) DeleteObjectStore ¶
func (*TestJS) DeleteStream ¶
func (*TestJS) GetLastMsg ¶
func (*TestJS) KeyValueStoreNames ¶
func (*TestJS) KeyValueStores ¶
func (t *TestJS) KeyValueStores() <-chan nats.KeyValueStatus
func (*TestJS) ObjectStore ¶
func (*TestJS) ObjectStoreNames ¶
func (*TestJS) ObjectStores ¶
func (t *TestJS) ObjectStores(opts ...nats.ObjectOpt) <-chan nats.ObjectStoreStatus
func (*TestJS) PublishAsync ¶
func (*TestJS) PublishAsyncComplete ¶
func (t *TestJS) PublishAsyncComplete() <-chan struct{}
func (*TestJS) PublishAsyncPending ¶
func (*TestJS) PublishMsg ¶
func (*TestJS) PublishMsgAsync ¶
func (*TestJS) PullSubscribe ¶
func (*TestJS) PurgeStream ¶
func (*TestJS) QueueSubscribe ¶
func (*TestJS) QueueSubscribeSync ¶
func (*TestJS) SecureDeleteMsg ¶
func (*TestJS) StreamInfo ¶
func (*TestJS) StreamNameBySubject ¶
func (*TestJS) StreamNames ¶
func (*TestJS) StreamsInfo ¶
func (t *TestJS) StreamsInfo(opts ...nats.JSOpt) <-chan *nats.StreamInfo
func (*TestJS) SubscribeSync ¶
func (*TestJS) UpdateConsumer ¶
func (*TestJS) UpdateStream ¶
type TestRepo ¶
func (*TestRepo) AssignAccountToOU ¶
func (*TestRepo) CreateAuditLog ¶
func (*TestRepo) CreateGroup ¶
func (*TestRepo) CreateMembershipForUserAndGroup ¶
func (*TestRepo) CreateOrUpdateCloudAccount ¶
func (t *TestRepo) CreateOrUpdateCloudAccount(ctx context.Context, arg db.CreateOrUpdateCloudAccountParams) (db.CloudAccount, error)
func (*TestRepo) CreateOrUpdateCloudTenant ¶
func (t *TestRepo) CreateOrUpdateCloudTenant(ctx context.Context, arg db.CreateOrUpdateCloudTenantParams) (db.CloudTenant, error)
func (*TestRepo) CreateOrganizationalUnit ¶
func (t *TestRepo) CreateOrganizationalUnit(ctx context.Context, arg db.CreateOrganizationalUnitParams) (db.OrganizationalUnit, error)
func (*TestRepo) CreateTag ¶
func (t *TestRepo) CreateTag(ctx context.Context, arg db.CreateTagParams) (db.StandardTag, error)
func (*TestRepo) CreateUser ¶
func (*TestRepo) DeleteAPIKey ¶
func (*TestRepo) DeleteGroup ¶
func (*TestRepo) DeleteOrganizationalUnit ¶
func (*TestRepo) DeleteUser ¶
func (*TestRepo) DropMembershipForGroup ¶
func (*TestRepo) DropMembershipForUserAndGroup ¶
func (*TestRepo) FindAPIKey ¶
func (*TestRepo) FindAPIKeysByID ¶
func (*TestRepo) FindCloudAccount ¶
func (*TestRepo) FindCloudAccountByCloudAndTenant ¶
func (t *TestRepo) FindCloudAccountByCloudAndTenant(ctx context.Context, arg db.FindCloudAccountByCloudAndTenantParams) (db.CloudAccount, error)
func (*TestRepo) FindOrganizationalUnit ¶
func (*TestRepo) FindScimAPIKey ¶
func (*TestRepo) FindUserByUsername ¶
func (*TestRepo) GetAPIKeys ¶
func (*TestRepo) GetAPIKeysOrganizationalUnits ¶
func (*TestRepo) GetAuditLogs ¶
func (*TestRepo) GetAuditLogsForTarget ¶
func (*TestRepo) GetCloudTenant ¶
func (t *TestRepo) GetCloudTenant(ctx context.Context, arg db.GetCloudTenantParams) (db.CloudTenant, error)
func (*TestRepo) GetCloudTenants ¶
func (*TestRepo) GetGroupCount ¶
func (*TestRepo) GetGroupMembership ¶
func (*TestRepo) GetGroupMembershipForUser ¶
func (t *TestRepo) GetGroupMembershipForUser(ctx context.Context, arg db.GetGroupMembershipForUserParams) (db.GetGroupMembershipForUserRow, error)
func (*TestRepo) GetOrganizationalUnitChildren ¶
func (*TestRepo) GetOrganizationalUnitCloudAccounts ¶
func (*TestRepo) GetOrganizationalUnits ¶
func (*TestRepo) GetUserOrganizationalUnits ¶
func (*TestRepo) GetUsersByID ¶
func (*TestRepo) InsertAPIKey ¶
func (*TestRepo) InsertScimAPIKey ¶
func (*TestRepo) OrganizationalUnitsCloudAccounts ¶
func (*TestRepo) PatchGroupDisplayName ¶
func (*TestRepo) SearchTag ¶
func (t *TestRepo) SearchTag(ctx context.Context, arg db.SearchTagParams) ([]db.CloudAccount, error)
func (*TestRepo) UnAssignAccountFromOUs ¶
func (*TestRepo) UpdateCloudAccount ¶
func (*TestRepo) UpdateCloudAccountTagsDriftDetected ¶
func (*TestRepo) UpdateTag ¶
func (t *TestRepo) UpdateTag(ctx context.Context, arg db.UpdateTagParams) (db.StandardTag, error)
func (*TestRepo) UpdateUser ¶
func (*TestRepo) WithTx ¶
func (t *TestRepo) WithTx(tx pgx.Tx) db.Repository
type TestSearcher ¶
func (*TestSearcher) SearchCloudAccounts ¶
func (t *TestSearcher) SearchCloudAccounts(ctx context.Context, input db.SearchCloudAccountsInput) ([]db.CloudAccount, error)
Click to show internal directories.
Click to hide internal directories.