Documentation ¶
Index ¶
- Variables
- func NewLoaderContext(ctx context.Context, dbConn *pgxpool.Pool) context.Context
- func RemoveFromTeam(ctx context.Context, input RemoveRepositoryFromTeamInput) error
- type AddRepositoryToTeamInput
- type AddRepositoryToTeamPayload
- type RemoveRepositoryFromTeamInput
- type RemoveRepositoryFromTeamPayload
- type Repository
- type RepositoryAddedActivityLogEntry
- type RepositoryConnection
- type RepositoryEdge
- type RepositoryOrder
- type RepositoryOrderField
- type RepositoryRemovedActivityLogEntry
- type TeamRepositoryFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRepositoryOrderField = []RepositoryOrderField{ RepositoryOrderFieldName, }
Functions ¶
func NewLoaderContext ¶
func RemoveFromTeam ¶
func RemoveFromTeam(ctx context.Context, input RemoveRepositoryFromTeamInput) error
Types ¶
type AddRepositoryToTeamPayload ¶
type AddRepositoryToTeamPayload struct {
Repository *Repository `json:"repository"`
}
type RemoveRepositoryFromTeamPayload ¶
type RemoveRepositoryFromTeamPayload struct {
Success bool `json:"success"`
}
type Repository ¶
func AddToTeam ¶
func AddToTeam(ctx context.Context, input AddRepositoryToTeamInput) (*Repository, error)
func (Repository) ID ¶
func (r Repository) ID() ident.Ident
func (Repository) IsNode ¶
func (Repository) IsNode()
type RepositoryAddedActivityLogEntry ¶
type RepositoryAddedActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
type RepositoryConnection ¶
type RepositoryConnection = pagination.Connection[*Repository]
func ListForTeam ¶
func ListForTeam(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, orderBy *RepositoryOrder, filter *TeamRepositoryFilter) (*RepositoryConnection, error)
type RepositoryEdge ¶
type RepositoryEdge = pagination.Edge[*Repository]
type RepositoryOrder ¶
type RepositoryOrder struct { // The field to order items by. Field RepositoryOrderField `json:"field"` // The direction to order items by. Direction model.OrderDirection `json:"direction"` }
Ordering options when fetching repositories.
func (*RepositoryOrder) String ¶
func (o *RepositoryOrder) String() string
type RepositoryOrderField ¶
type RepositoryOrderField string
const ( // Order repositories by name. RepositoryOrderFieldName RepositoryOrderField = "NAME" )
func (RepositoryOrderField) IsValid ¶
func (e RepositoryOrderField) IsValid() bool
func (RepositoryOrderField) MarshalGQL ¶
func (e RepositoryOrderField) MarshalGQL(w io.Writer)
func (RepositoryOrderField) String ¶
func (e RepositoryOrderField) String() string
func (*RepositoryOrderField) UnmarshalGQL ¶
func (e *RepositoryOrderField) UnmarshalGQL(v interface{}) error
type RepositoryRemovedActivityLogEntry ¶
type RepositoryRemovedActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
type TeamRepositoryFilter ¶
type TeamRepositoryFilter struct {
Name *string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.