Documentation
¶
Index ¶
- Variables
- func GetAISettingsAsKeyValues(s *AISettings) []settings.KeyValue
- func GetAISettingsMappings(s *AISettings) []settings.SettingHandler
- func GetGeneralSettingsAsKeyValues(s *GeneralSettings) []settings.KeyValue
- func GetGeneralSettingsMappings(s *GeneralSettings) []settings.SettingHandler
- func GetSecuritySettingsAsKeyValues(s *SecuritySettings) []settings.KeyValue
- func GetSecuritySettingsMappings(s *SecuritySettings) []settings.SettingHandler
- type AISettings
- type Controller
- func (c *Controller) AIFind(ctx context.Context, session *auth.Session, repoRef string) (*AISettings, error)
- func (c *Controller) AIUpdate(ctx context.Context, session *auth.Session, repoRef string, in *AISettings) (*AISettings, error)
- func (c *Controller) GeneralFind(ctx context.Context, session *auth.Session, repoRef string) (*GeneralSettings, error)
- func (c *Controller) GeneralUpdate(ctx context.Context, session *auth.Session, repoRef string, ...) (*GeneralSettings, error)
- func (c *Controller) SecurityFind(ctx context.Context, session *auth.Session, repoRef string) (*SecuritySettings, error)
- func (c *Controller) SecurityUpdate(ctx context.Context, session *auth.Session, repoRef string, ...) (*SecuritySettings, error)
- type GeneralSettings
- type SecuritySettings
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
WireSet provides a wire set for this package.
Functions ¶
func GetAISettingsAsKeyValues ¶
func GetAISettingsAsKeyValues(s *AISettings) []settings.KeyValue
func GetAISettingsMappings ¶
func GetAISettingsMappings(s *AISettings) []settings.SettingHandler
func GetGeneralSettingsAsKeyValues ¶
func GetGeneralSettingsAsKeyValues(s *GeneralSettings) []settings.KeyValue
func GetGeneralSettingsMappings ¶
func GetGeneralSettingsMappings(s *GeneralSettings) []settings.SettingHandler
func GetSecuritySettingsAsKeyValues ¶
func GetSecuritySettingsAsKeyValues(s *SecuritySettings) []settings.KeyValue
func GetSecuritySettingsMappings ¶
func GetSecuritySettingsMappings(s *SecuritySettings) []settings.SettingHandler
Types ¶
type AISettings ¶
type AISettings struct {
AIReviewEnabled *bool `json:"ai_review_enabled" yaml:"ai_review_enabled"`
SpaceAIProvider int64 `json:"space_ai_provider" yaml:"space_ai_provider"`
}
func GetDefaultAISettings ¶
func GetDefaultAISettings() *AISettings
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( authorizer authz.Authorizer, repoStore store.RepoStore, aiStore store.AIStore, settings *settings.Service, auditService audit.Service, repoReporter *eventsrepo.Reporter, ) *Controller
func ProvideController ¶
func ProvideController( authorizer authz.Authorizer, repoStore store.RepoStore, aiStore store.AIStore, settings *settings.Service, auditService audit.Service, repoReporter *eventsrepo.Reporter, ) *Controller
func (*Controller) AIFind ¶
func (c *Controller) AIFind( ctx context.Context, session *auth.Session, repoRef string, ) (*AISettings, error)
AIFind returns the ai settings of a repo.
func (*Controller) AIUpdate ¶
func (c *Controller) AIUpdate( ctx context.Context, session *auth.Session, repoRef string, in *AISettings, ) (*AISettings, error)
AIUpdate updates the ai settings of the repo.
func (*Controller) GeneralFind ¶
func (c *Controller) GeneralFind( ctx context.Context, session *auth.Session, repoRef string, ) (*GeneralSettings, error)
GeneralFind returns the general settings of a repo.
func (*Controller) GeneralUpdate ¶
func (c *Controller) GeneralUpdate( ctx context.Context, session *auth.Session, repoRef string, in *GeneralSettings, ) (*GeneralSettings, error)
GeneralUpdate updates the general settings of the repo.
func (*Controller) SecurityFind ¶
func (c *Controller) SecurityFind( ctx context.Context, session *auth.Session, repoRef string, ) (*SecuritySettings, error)
SecurityFind returns the security settings of a repo.
func (*Controller) SecurityUpdate ¶
func (c *Controller) SecurityUpdate( ctx context.Context, session *auth.Session, repoRef string, in *SecuritySettings, ) (*SecuritySettings, error)
SecurityUpdate updates the security settings of the repo.
type GeneralSettings ¶
type GeneralSettings struct {
FileSizeLimit *int64 `json:"file_size_limit" yaml:"file_size_limit"`
}
GeneralSettings represent the general repository settings as exposed externally.
func GetDefaultGeneralSettings ¶
func GetDefaultGeneralSettings() *GeneralSettings
type SecuritySettings ¶
type SecuritySettings struct {
SecretScanningEnabled *bool `json:"secret_scanning_enabled" yaml:"secret_scanning_enabled"`
}
SecuritySettings represents the security related part of repository settings as exposed externally.
func GetDefaultSecuritySettings ¶
func GetDefaultSecuritySettings() *SecuritySettings
Click to show internal directories.
Click to hide internal directories.