Documentation ¶
Index ¶
- type ApiKeyEntity
- type ApiKeyRepository
- type ContainerRegistryEntity
- type ContainerRegistryRepository
- type CrudRepository
- type EnvVarEntity
- type EnvVars
- type ManagedServiceEntity
- type ManagedServiceRepository
- type ProjectEntity
- type ProjectRepository
- type QueryExecDB
- type SecretEntity
- type SecretRepository
- type ServiceEntity
- type ServiceRepository
- type Storage
- func (s *Storage) ApiKeyRepository() ApiKeyRepository
- func (s *Storage) ContainerRegistryRepository() ContainerRegistryRepository
- func (s *Storage) ExecTx(ctx context.Context, f func(*Storage) error) error
- func (s *Storage) ManagedServiceRepository() ManagedServiceRepository
- func (s *Storage) ProjectRepository() ProjectRepository
- func (s *Storage) SecretRepository() SecretRepository
- func (s *Storage) ServiceRepository() ServiceRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyEntity ¶
type ApiKeyRepository ¶
type ApiKeyRepository interface { CrudRepository[ApiKeyEntity, string] GetByUsername(username string) ([]ApiKeyEntity, error) }
type ContainerRegistryEntity ¶
type CrudRepository ¶
type EnvVarEntity ¶
type EnvVars ¶
type EnvVars []EnvVarEntity
type ManagedServiceEntity ¶
type ManagedServiceRepository ¶
type ManagedServiceRepository interface { CrudRepository[ManagedServiceEntity, int] FindAll(limit int, offset int) ([]ManagedServiceEntity, error) FindByProjectId(projectId string) ([]ManagedServiceEntity, error) ExistsByNameAndProjectId(name string, projectId string) (bool, error) }
type ProjectEntity ¶
type ProjectRepository ¶
type ProjectRepository interface { CrudRepository[ProjectEntity, string] FindAll(limit int, offset int) ([]ProjectEntity, error) FindUserProjects(username string) ([]ProjectEntity, error) GetParticipants(id string) ([]string, error) IsParticipant(id string, username string) (bool, error) AddParticipant(id string, username string) error RemoveParticipant(id string, username string) error FindByInviteCode(code string) (*ProjectEntity, error) }
type QueryExecDB ¶
type QueryExecDB interface { sqlx.Execer sqlx.Queryer sqlx.ExecerContext sqlx.QueryerContext Select(dest interface{}, query string, args ...interface{}) error Get(dest interface{}, query string, args ...interface{}) error NamedExec(query string, args interface{}) (sql.Result, error) NamedQuery(query string, args interface{}) (*sqlx.Rows, error) }
type SecretEntity ¶
type SecretRepository ¶
type SecretRepository interface { FindByProjectId(id string) ([]SecretEntity, error) CreateNew(secret SecretEntity) error ExistsByProjectIdAndName(id string, name string) (bool, error) FindByProjectIdAndName(id string, name string) (*SecretEntity, error) DeleteByProjectIdAndName(id string, name string) error }
type ServiceEntity ¶
type ServiceEntity struct { Id int `db:"id"` ProjectId string `db:"project_id"` Name string `db:"name"` Image string `db:"image"` Port int `db:"port"` PublicApiPrefix sql.NullString `db:"public_api_prefix"` StripApiPrefix bool `db:"strip_api_prefix"` EnvVars EnvVars `db:"env_vars"` Replicas int `db:"replicas"` }
type ServiceRepository ¶
type ServiceRepository interface { CrudRepository[ServiceEntity, int] FindAll(limit int, offset int) ([]ServiceEntity, error) FindByProjectId(projectId string) ([]ServiceEntity, error) ExistsByNameAndProjectId(name string, projectId string) (bool, error) }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) ApiKeyRepository ¶
func (s *Storage) ApiKeyRepository() ApiKeyRepository
func (*Storage) ContainerRegistryRepository ¶
func (s *Storage) ContainerRegistryRepository() ContainerRegistryRepository
func (*Storage) ManagedServiceRepository ¶
func (s *Storage) ManagedServiceRepository() ManagedServiceRepository
func (*Storage) ProjectRepository ¶
func (s *Storage) ProjectRepository() ProjectRepository
func (*Storage) SecretRepository ¶
func (s *Storage) SecretRepository() SecretRepository
func (*Storage) ServiceRepository ¶
func (s *Storage) ServiceRepository() ServiceRepository
Click to show internal directories.
Click to hide internal directories.