Documentation ¶
Index ¶
- type CreateRepositoryAuth
- type ErrorType
- type GetAppScope
- type GetAppScopeType
- type GetRepoScope
- type Service
- func (s *Service) CancelBuild(ctx context.Context, buildID string) error
- func (s *Service) CreateApplication(ctx context.Context, app *domain.Application) (*domain.Application, error)
- func (s *Service) CreateRepository(ctx context.Context, name, url string, auth optional.Of[CreateRepositoryAuth]) (*domain.Repository, error)
- func (s *Service) CreateUserKey(ctx context.Context, publicKey string, name string) (*domain.UserKey, error)
- func (s *Service) DeleteApplication(ctx context.Context, id string) error
- func (s *Service) DeleteEnvironmentVariable(ctx context.Context, applicationID string, key string) error
- func (s *Service) DeleteRepository(ctx context.Context, id string) error
- func (s *Service) DeleteUserKey(ctx context.Context, keyID string) error
- func (s *Service) GenerateKeyPair(ctx context.Context) (keyID string, publicKey string, err error)
- func (s *Service) GetAllBuilds(ctx context.Context, page, limit int) ([]*domain.Build, error)
- func (s *Service) GetApplication(ctx context.Context, id string) (*TopAppInfo, error)
- func (s *Service) GetApplicationMetrics(ctx context.Context, name string, id string, before time.Time, ...) ([]*domain.AppMetric, error)
- func (s *Service) GetApplications(ctx context.Context, scope GetAppScope) ([]*TopAppInfo, error)
- func (s *Service) GetArtifact(ctx context.Context, artifactID string) (filename string, r io.ReadCloser, err error)
- func (s *Service) GetAvailableMetrics(_ context.Context) []string
- func (s *Service) GetBuild(ctx context.Context, buildID string) (*domain.Build, error)
- func (s *Service) GetBuildLog(ctx context.Context, buildID string) ([]byte, error)
- func (s *Service) GetBuildLogStream(ctx context.Context, buildID string) (<-chan *pb.BuildLog, error)
- func (s *Service) GetBuilds(ctx context.Context, applicationID string) ([]*domain.Build, error)
- func (s *Service) GetEnvironmentVariables(ctx context.Context, applicationID string) ([]*domain.Environment, error)
- func (s *Service) GetMe(ctx context.Context) *domain.User
- func (s *Service) GetOutput(ctx context.Context, id string, before time.Time, limit int) ([]*domain.ContainerLog, error)
- func (s *Service) GetOutputStream(ctx context.Context, id string, begin time.Time, ...) error
- func (s *Service) GetRepositories(ctx context.Context, scope GetRepoScope) ([]*domain.Repository, error)
- func (s *Service) GetRepository(ctx context.Context, id string) (*domain.Repository, error)
- func (s *Service) GetRepositoryRefs(ctx context.Context, id string) (map[string]string, error)
- func (s *Service) GetSystemInfo(ctx context.Context) (*domain.SystemInfo, error)
- func (s *Service) GetUserKeys(ctx context.Context) ([]*domain.UserKey, error)
- func (s *Service) GetUsers(ctx context.Context) ([]*domain.User, error)
- func (s *Service) RefreshRepository(ctx context.Context, id string) error
- func (s *Service) RetryCommitBuild(ctx context.Context, applicationID string, commit string) error
- func (s *Service) SetEnvironmentVariable(ctx context.Context, applicationID string, key string, value string) error
- func (s *Service) StartApplication(ctx context.Context, id string) error
- func (s *Service) StopApplication(ctx context.Context, id string) error
- func (s *Service) UpdateApplication(ctx context.Context, id string, args *domain.UpdateApplicationArgs) error
- func (s *Service) UpdateRepository(ctx context.Context, id string, args *UpdateRepositoryArgs) error
- type TopAppInfo
- type UpdateRepositoryArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRepositoryAuth ¶
type CreateRepositoryAuth struct { Method domain.RepositoryAuthMethod Username string Password string KeyID string }
type GetAppScope ¶ added in v0.20.0
type GetAppScope struct { Scope GetAppScopeType RepositoryID optional.Of[string] }
type GetAppScopeType ¶ added in v0.20.0
type GetAppScopeType int
const ( GetAppScopeMine GetAppScopeType = iota GetAppScopeAll GetAppScopeRepository )
type GetRepoScope ¶
type GetRepoScope int
const ( GetRepoScopeMine GetRepoScope = iota GetRepoScopePublic GetRepoScopeAll )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( artifactRepo domain.ArtifactRepository, appRepo domain.ApplicationRepository, buildRepo domain.BuildRepository, envRepo domain.EnvironmentRepository, gitRepo domain.GitRepositoryRepository, userRepo domain.UserRepository, storage domain.Storage, mariaDBManager domain.MariaDBManager, mongoDBManager domain.MongoDBManager, metricsService domain.MetricsService, containerLogger domain.ContainerLogger, controller domain.ControllerServiceClient, image builder.ImageConfig, fallbackKey *ssh.PublicKeys, ) (*Service, error)
func (*Service) CancelBuild ¶
func (*Service) CreateApplication ¶
func (s *Service) CreateApplication(ctx context.Context, app *domain.Application) (*domain.Application, error)
func (*Service) CreateRepository ¶
func (s *Service) CreateRepository(ctx context.Context, name, url string, auth optional.Of[CreateRepositoryAuth]) (*domain.Repository, error)
func (*Service) CreateUserKey ¶
func (*Service) DeleteApplication ¶
func (*Service) DeleteEnvironmentVariable ¶ added in v0.7.3
func (*Service) DeleteRepository ¶
func (*Service) DeleteUserKey ¶
func (*Service) GenerateKeyPair ¶
func (*Service) GetAllBuilds ¶ added in v0.13.0
func (*Service) GetApplication ¶
func (*Service) GetApplicationMetrics ¶ added in v0.15.0
func (*Service) GetApplications ¶
func (s *Service) GetApplications(ctx context.Context, scope GetAppScope) ([]*TopAppInfo, error)
func (*Service) GetArtifact ¶
func (*Service) GetAvailableMetrics ¶ added in v0.15.0
func (*Service) GetBuildLog ¶
func (*Service) GetBuildLogStream ¶
func (*Service) GetEnvironmentVariables ¶
func (*Service) GetOutputStream ¶
func (*Service) GetRepositories ¶
func (s *Service) GetRepositories(ctx context.Context, scope GetRepoScope) ([]*domain.Repository, error)
func (*Service) GetRepository ¶
func (*Service) GetRepositoryRefs ¶ added in v0.13.0
func (*Service) GetSystemInfo ¶ added in v0.10.1
func (*Service) GetUserKeys ¶
func (*Service) RefreshRepository ¶
func (*Service) RetryCommitBuild ¶
func (*Service) SetEnvironmentVariable ¶
func (*Service) StartApplication ¶
func (*Service) StopApplication ¶
func (*Service) UpdateApplication ¶
func (*Service) UpdateRepository ¶
type TopAppInfo ¶ added in v0.17.0
type TopAppInfo struct { App *domain.Application LatestBuild *domain.Build }
Click to show internal directories.
Click to hide internal directories.