system_repo

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemRepository

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

SystemRepository handles GitHub-related database operations

func NewSystemRepository

func NewSystemRepository(db *ent.Client) *SystemRepository

NewSystemRepository creates a new GitHub repository

func (*SystemRepository) CreateRegistry

func (self *SystemRepository) CreateRegistry(ctx context.Context, tx repository.TxInterface, host string, kubernetesSecret string, isDefault bool) (*ent.Registry, error)

func (*SystemRepository) DeletePVCMetadata

func (self *SystemRepository) DeletePVCMetadata(ctx context.Context, tx repository.TxInterface, pvcID string) error

func (*SystemRepository) DeleteRegistry

func (self *SystemRepository) DeleteRegistry(ctx context.Context, id uuid.UUID) error

func (*SystemRepository) GetAllRegistries

func (self *SystemRepository) GetAllRegistries(ctx context.Context) ([]*ent.Registry, error)

func (*SystemRepository) GetDefaultRegistry

func (self *SystemRepository) GetDefaultRegistry(ctx context.Context) (*ent.Registry, error)

func (*SystemRepository) GetImagePullSecrets

func (self *SystemRepository) GetImagePullSecrets(ctx context.Context) ([]string, error)

func (*SystemRepository) GetPVCMetadata

func (self *SystemRepository) GetPVCMetadata(ctx context.Context, tx repository.TxInterface, pvcIDs []string) (map[string]*ent.PVCMetadata, error)

func (*SystemRepository) GetRegistry

func (self *SystemRepository) GetRegistry(ctx context.Context, id uuid.UUID) (*ent.Registry, error)

func (*SystemRepository) GetSystemSettings

func (self *SystemRepository) GetSystemSettings(ctx context.Context, tx repository.TxInterface) (*ent.SystemSetting, error)

func (*SystemRepository) SetDefaultRegistry

func (self *SystemRepository) SetDefaultRegistry(ctx context.Context, id uuid.UUID) (*ent.Registry, error)

func (*SystemRepository) UpdateSystemSettings

func (self *SystemRepository) UpdateSystemSettings(ctx context.Context, input *SystemSettingUpdateInput) (settings *ent.SystemSetting, err error)

func (*SystemRepository) UpsertPVCMetadata

func (self *SystemRepository) UpsertPVCMetadata(ctx context.Context, tx repository.TxInterface, pvcID string, name *string, description *string) error

type SystemRepositoryInterface

type SystemRepositoryInterface interface {
	UpsertPVCMetadata(ctx context.Context, tx repository.TxInterface, pvcID string, name *string, description *string) error
	GetPVCMetadata(ctx context.Context, tx repository.TxInterface, pvcIDs []string) (map[string]*ent.PVCMetadata, error)
	DeletePVCMetadata(ctx context.Context, tx repository.TxInterface, pvcID string) error
	CreateRegistry(ctx context.Context, tx repository.TxInterface, host string, kubernetesSecret string, isDefault bool) (*ent.Registry, error)
	GetDefaultRegistry(ctx context.Context) (*ent.Registry, error)
	SetDefaultRegistry(ctx context.Context, id uuid.UUID) (*ent.Registry, error)
	GetImagePullSecrets(ctx context.Context) ([]string, error)
	GetRegistry(ctx context.Context, id uuid.UUID) (*ent.Registry, error)
	GetAllRegistries(ctx context.Context) ([]*ent.Registry, error)
	DeleteRegistry(ctx context.Context, id uuid.UUID) error
	GetSystemSettings(ctx context.Context, tx repository.TxInterface) (*ent.SystemSetting, error)
	UpdateSystemSettings(ctx context.Context, input *SystemSettingUpdateInput) (settings *ent.SystemSetting, err error)
}

SystemRepositoryInterface ...

type SystemSettingUpdateInput

type SystemSettingUpdateInput struct {
	WildcardDomain   *string                  `json:"wildcard_domain" doc:"Wildcard domain for the system"`
	BuildkitSettings *schema.BuildkitSettings `json:"buildkit_settings" doc:"Buildkit settings"`
}

Jump to

Keyboard shortcuts

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