Documentation
¶
Index ¶
- type BatchUpsertRelationshipsParams
- type CountGrantedObjectsParams
- type DBTX
- type DeleteRelationshipsParams
- type LookupRelationshipsByOrgParams
- type LookupRelationshipsByOrgRow
- type Querier
- type Queries
- func (q *Queries) BatchUpsertRelationships(ctx context.Context, arg BatchUpsertRelationshipsParams) ([]Relationship, error)
- func (q *Queries) CountGrantedObjects(ctx context.Context, arg CountGrantedObjectsParams) (int64, error)
- func (q *Queries) DeleteRelationships(ctx context.Context, arg DeleteRelationshipsParams) error
- func (q *Queries) LookupRelationshipsByOrg(ctx context.Context, arg LookupRelationshipsByOrgParams) ([]LookupRelationshipsByOrgRow, error)
- func (q *Queries) ReadRelationships(ctx context.Context, arg ReadRelationshipsParams) ([]Relationship, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type ReadRelationshipsParams
- type Relationship
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountGrantedObjectsParams ¶ added in v1.18.0
type DeleteRelationshipsParams ¶ added in v1.33.0
type LookupRelationshipsByOrgParams ¶ added in v1.27.0
type LookupRelationshipsByOrgRow ¶ added in v1.27.0
type Querier ¶
type Querier interface {
BatchUpsertRelationships(ctx context.Context, arg BatchUpsertRelationshipsParams) ([]Relationship, error)
CountGrantedObjects(ctx context.Context, arg CountGrantedObjectsParams) (int64, error)
DeleteRelationships(ctx context.Context, arg DeleteRelationshipsParams) error
// origin = 1 is relationships.v1.Origin ORIGIN_ORGANIZATION; org scoping is by
// the subject's local identity in that org.
//
// Assumes one identities row per principal per org. True today, since identity
// resolution always creates a new principal for a new local_id. If that
// changes, add local_id to the ORDER BY/cursor below, or pagination can
// silently drop a row (left out now since it costs an extra sort per call).
LookupRelationshipsByOrg(ctx context.Context, arg LookupRelationshipsByOrgParams) ([]LookupRelationshipsByOrgRow, error)
ReadRelationships(ctx context.Context, arg ReadRelationshipsParams) ([]Relationship, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BatchUpsertRelationships ¶
func (q *Queries) BatchUpsertRelationships(ctx context.Context, arg BatchUpsertRelationshipsParams) ([]Relationship, error)
func (*Queries) CountGrantedObjects ¶ added in v1.18.0
func (*Queries) DeleteRelationships ¶ added in v1.33.0
func (q *Queries) DeleteRelationships(ctx context.Context, arg DeleteRelationshipsParams) error
func (*Queries) LookupRelationshipsByOrg ¶ added in v1.27.0
func (q *Queries) LookupRelationshipsByOrg(ctx context.Context, arg LookupRelationshipsByOrgParams) ([]LookupRelationshipsByOrgRow, error)
origin = 1 is relationships.v1.Origin ORIGIN_ORGANIZATION; org scoping is by the subject's local identity in that org.
Assumes one identities row per principal per org. True today, since identity resolution always creates a new principal for a new local_id. If that changes, add local_id to the ORDER BY/cursor below, or pagination can silently drop a row (left out now since it costs an extra sort per call).
func (*Queries) ReadRelationships ¶ added in v1.16.0
func (q *Queries) ReadRelationships(ctx context.Context, arg ReadRelationshipsParams) ([]Relationship, error)
type ReadRelationshipsParams ¶ added in v1.16.0
Click to show internal directories.
Click to hide internal directories.