Versions in this module Expand all Collapse all v1 v1.0.0 Sep 30, 2024 Changes in this version + const CHANGED + const COMPONENT + const CONFIG + const CoreHandlerStatusCreated + const CoreHandlerStatusInit + const CoreHandlerStatusRunning + const DELETED + const GROUP + const NEW + const STRATEGY + type ApiService struct + func NewApiService(apiKey string, apiUrl string, caCertPath string) *ApiService + func (a *ApiService) FetchSnapshot(domainId string, environment string) (string, error) + func (a *ApiService) FetchSnapshotVersion(domainId string, environment string) (string, error) + func (a *ApiService) PushChanges(domainId string, diff model.DiffResult) (PushChangeResponse, error) + func (c *ApiService) NewDataFromJson(jsonData []byte) model.Data + type ComparatorService struct + func NewComparatorService() *ComparatorService + func (c *ComparatorService) CheckSnapshotDiff(left model.Snapshot, right model.Snapshot, diffType DiffType) model.DiffResult + func (c *ComparatorService) MergeResults(diffResults []model.DiffResult) model.DiffResult + func (c *ComparatorService) NewSnapshotFromJson(jsonData []byte) model.Snapshot + func (c *ComparatorService) RemoveDeleted(diffResult model.DiffResult) model.DiffResult + type CoreHandler struct + Status int + func NewCoreHandler(accountRepository repository.AccountRepository, apiService IAPIService, ...) *CoreHandler + func (c *CoreHandler) InitCoreHandlerGoroutine() (int, error) + func (c *CoreHandler) StartAccountHandler(accountId string, gitService IGitService) + type DiffResult string + type DiffType string + type GitService struct + func NewGitService(repoURL string, encryptedToken string, branchName string) *GitService + func (g *GitService) GetRepositoryData(environment string) (*model.RepositoryData, error) + func (g *GitService) PushChanges(environment string, content string) (string, error) + func (g *GitService) UpdateRepositorySettings(repository string, encryptedToken string, branch string) + type GraphQLRequest struct + Query string + type IAPIService interface + FetchSnapshot func(domainId string, environment string) (string, error) + FetchSnapshotVersion func(domainId string, environment string) (string, error) + NewDataFromJson func(jsonData []byte) model.Data + PushChanges func(domainId string, diff model.DiffResult) (PushChangeResponse, error) + type IComparatorService interface + CheckSnapshotDiff func(left model.Snapshot, right model.Snapshot, diffType DiffType) model.DiffResult + MergeResults func(diffResults []model.DiffResult) model.DiffResult + NewSnapshotFromJson func(jsonData []byte) model.Snapshot + RemoveDeleted func(diffResult model.DiffResult) model.DiffResult + type IGitService interface + GetRepositoryData func(environment string) (*model.RepositoryData, error) + PushChanges func(environment string, content string) (string, error) + UpdateRepositorySettings func(repository string, encryptedToken string, branch string) + type PushChangeResponse struct + Error string + Message string + Version int