Documentation
¶
Index ¶
- type SystemRepository
- func (self *SystemRepository) CreateRegistry(ctx context.Context, tx repository.TxInterface, host string, ...) (*ent.Registry, error)
- func (self *SystemRepository) DeletePVCMetadata(ctx context.Context, tx repository.TxInterface, pvcID string) error
- func (self *SystemRepository) DeleteRegistry(ctx context.Context, id uuid.UUID) error
- func (self *SystemRepository) GetAllRegistries(ctx context.Context) ([]*ent.Registry, error)
- func (self *SystemRepository) GetDefaultRegistry(ctx context.Context) (*ent.Registry, error)
- func (self *SystemRepository) GetImagePullSecrets(ctx context.Context) ([]string, error)
- func (self *SystemRepository) GetPVCMetadata(ctx context.Context, tx repository.TxInterface, pvcIDs []string) (map[string]*ent.PVCMetadata, error)
- func (self *SystemRepository) GetRegistry(ctx context.Context, id uuid.UUID) (*ent.Registry, error)
- func (self *SystemRepository) GetSystemSettings(ctx context.Context, tx repository.TxInterface) (*ent.SystemSetting, error)
- func (self *SystemRepository) SetDefaultRegistry(ctx context.Context, id uuid.UUID) (*ent.Registry, error)
- func (self *SystemRepository) UpdateSystemSettings(ctx context.Context, input *SystemSettingUpdateInput) (settings *ent.SystemSetting, err error)
- func (self *SystemRepository) UpsertPVCMetadata(ctx context.Context, tx repository.TxInterface, pvcID string, name *string, ...) error
- type SystemRepositoryInterface
- type SystemSettingUpdateInput
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 (*SystemRepository) GetAllRegistries ¶
func (*SystemRepository) GetDefaultRegistry ¶
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 (*SystemRepository) GetSystemSettings ¶
func (self *SystemRepository) GetSystemSettings(ctx context.Context, tx repository.TxInterface) (*ent.SystemSetting, error)
func (*SystemRepository) SetDefaultRegistry ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.