orgpats

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedPAT

type AggregatedPAT struct {
	ID         string
	Title      string
	CreatedBy  CreatedBy
	Scopes     []patmodels.PATScope
	CreatedAt  time.Time
	ExpiresAt  time.Time
	LastUsedAt *time.Time
	UserID     string
}

type CreatedBy

type CreatedBy struct {
	ID    string
	Title string
	Email string
}

type OrganizationPATs

type OrganizationPATs struct {
	PATs       []AggregatedPAT
	Pagination utils.Page
}

type PATSearchFields

type PATSearchFields struct {
	ID             string     `rql:"name=id,type=string"`
	Title          string     `rql:"name=title,type=string"`
	CreatedByTitle string     `rql:"name=created_by_title,type=string"`
	CreatedByEmail string     `rql:"name=created_by_email,type=string"`
	CreatedAt      time.Time  `rql:"name=created_at,type=datetime"`
	ExpiresAt      time.Time  `rql:"name=expires_at,type=datetime"`
	LastUsedAt     *time.Time `rql:"name=last_used_at,type=datetime"`
}

PATSearchFields is used for RQL validation — flat struct with rql tags.

type ProjectService

type ProjectService interface {
	ListByUser(ctx context.Context, principal authenticate.Principal, flt project.Filter) ([]project.Project, error)
}

type Repository

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

type Service

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

func NewService

func NewService(repository Repository, projectService ProjectService) *Service

func (*Service) Search

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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