reposettings

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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