orgserviceuser

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidDetail = errors.New("invalid service user detail")
)

Functions

This section is empty.

Types

type AggregatedServiceUser

type AggregatedServiceUser struct {
	ID        string    `rql:"filter,sort,column=id"`
	OrgID     string    `rql:"filter,sort,column=org_id"`
	Title     string    `rql:"filter,sort,column=title"`
	Projects  []Project `rql:"filter,sort,column=projects"`
	CreatedAt time.Time `rql:"filter,sort,column=created_at"`
	UpdatedAt time.Time `rql:"filter,sort,column=updated_at"`
}

type OrganizationServiceUsers

type OrganizationServiceUsers struct {
	ServiceUsers []AggregatedServiceUser `json:"service_users"`
	Pagination   Page                    `json:"pagination"`
}

type Page

type Page struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

type Project

type Project struct {
	ID    string `json:"id"`
	Title string `json:"title"`
	Name  string `json:"name"`
}

type Repository

type Repository interface {
	Search(ctx context.Context, orgID string, query *rql.Query) (OrganizationServiceUsers, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(repository Repository) *Service

func (Service) Search

func (s Service) Search(ctx context.Context, orgID string, query *rql.Query) (OrganizationServiceUsers, error)

Jump to

Keyboard shortcuts

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