Versions in this module Expand all Collapse all v0 v0.14.0 Jan 29, 2024 Changes in this version + func PageQuery(pm clients.Page) (string, error) + func ToClient(c DBClient) (clients.Client, error) + func ToDBClientsPage(pm clients.Page) (dbClientsPage, error) + type DBClient struct + CreatedAt time.Time + Domain string + Groups []groups.Group + ID string + Identity string + Metadata []byte + Name string + Role *clients.Role + Secret string + Status clients.Status + Tags pgtype.TextArray + UpdatedAt sql.NullTime + UpdatedBy *string + func ToDBClient(c clients.Client) (DBClient, error) + type Repository struct + DB postgres.Database + func (repo *Repository) ChangeStatus(ctx context.Context, client clients.Client) (clients.Client, error) + func (repo *Repository) RetrieveAll(ctx context.Context, pm clients.Page) (clients.ClientsPage, error) + func (repo *Repository) RetrieveAllBasicInfo(ctx context.Context, pm clients.Page) (clients.ClientsPage, error) + func (repo *Repository) RetrieveAllByIDs(ctx context.Context, pm clients.Page) (clients.ClientsPage, error) + func (repo *Repository) RetrieveByID(ctx context.Context, id string) (clients.Client, error) + func (repo *Repository) RetrieveByIdentity(ctx context.Context, identity string) (clients.Client, error) + func (repo *Repository) Update(ctx context.Context, client clients.Client) (clients.Client, error) + func (repo *Repository) UpdateIdentity(ctx context.Context, client clients.Client) (clients.Client, error) + func (repo *Repository) UpdateRole(ctx context.Context, client clients.Client) (clients.Client, error) + func (repo *Repository) UpdateSecret(ctx context.Context, client clients.Client) (clients.Client, error) + func (repo *Repository) UpdateTags(ctx context.Context, client clients.Client) (clients.Client, error)