projectSettings

package
v0.0.0-...-e341b83 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const EventSource = "ProjectSettings"

Variables

View Source
var (
	DisableAdvisoryLock     = false
	UseBlockingAdvisoryLock = true
)

Functions

func NewMockProjectSettingsDao

func NewMockProjectSettingsDao() *projectSettingsDaoMock

func NewProjectSettingsGRPCHandler

func NewProjectSettingsGRPCHandler(service ProjectSettingsService, generic services.GenericService, brokerFunc func() *server.EventBroker) pb.ProjectSettingsServiceServer

func NewProjectSettingsHandler

func NewProjectSettingsHandler(ps ProjectSettingsService, generic services.GenericService) *projectSettingsHandler

func PresentProjectSettings

func PresentProjectSettings(ps *ProjectSettings) openapi.ProjectSettings

Types

type ProjectSettings

type ProjectSettings struct {
	api.Meta
	ProjectId    string  `json:"project_id" gorm:"uniqueIndex;not null"`
	GroupAccess  *string `json:"group_access"`
	Repositories *string `json:"repositories"`
}

func ConvertProjectSettings

func ConvertProjectSettings(ps openapi.ProjectSettings) *ProjectSettings

func (*ProjectSettings) BeforeCreate

func (d *ProjectSettings) BeforeCreate(tx *gorm.DB) error

type ProjectSettingsDao

type ProjectSettingsDao interface {
	Get(ctx context.Context, id string) (*ProjectSettings, error)
	Create(ctx context.Context, projectSettings *ProjectSettings) (*ProjectSettings, error)
	Replace(ctx context.Context, projectSettings *ProjectSettings) (*ProjectSettings, error)
	Delete(ctx context.Context, id string) error
	FindByIDs(ctx context.Context, ids []string) (ProjectSettingsList, error)
	All(ctx context.Context) (ProjectSettingsList, error)
	AllByProjectId(ctx context.Context, projectId string) (ProjectSettingsList, error)
}

func NewProjectSettingsDao

func NewProjectSettingsDao(sessionFactory *db.SessionFactory) ProjectSettingsDao

type ProjectSettingsIndex

type ProjectSettingsIndex map[string]*ProjectSettings

type ProjectSettingsList

type ProjectSettingsList []*ProjectSettings

func (ProjectSettingsList) Index

type ProjectSettingsPatchRequest

type ProjectSettingsPatchRequest struct {
	ProjectId    *string `json:"project_id,omitempty"`
	GroupAccess  *string `json:"group_access,omitempty"`
	Repositories *string `json:"repositories,omitempty"`
}

type ServiceLocator

type ServiceLocator func() ProjectSettingsService

func NewServiceLocator

func NewServiceLocator(env *environments.Env) ServiceLocator

Jump to

Keyboard shortcuts

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