Documentation
¶
Index ¶
- type Services
- func (s *Services) CacheJob(ctx context.Context, job *jobs.Job) error
- func (s *Services) Close() error
- func (s *Services) DeleteAWSCredential(ctx context.Context, key string) error
- func (s *Services) DeleteCICDConnection(ctx context.Context, project, key string) error
- func (s *Services) DeleteCICDCredential(ctx context.Context, project, key string) error
- func (s *Services) DeleteCICDJob(ctx context.Context, project, key string) error
- func (s *Services) DeleteCICDProject(ctx context.Context, project string) error
- func (s *Services) DeleteCICDRepository(ctx context.Context, project, key string) error
- func (s *Services) DeleteCachedJob(ctx context.Context, id, project, environment string) error
- func (s *Services) DeleteDataServiceCredential(ctx context.Context, project, environment, service string) error
- func (s *Services) DeleteEnvironment(ctx context.Context, name string) error
- func (s *Services) DeleteGitLabServer(ctx context.Context, key string) error
- func (s *Services) DeleteHelmComponent(ctx context.Context, key string) error
- func (s *Services) DeleteJob(ctx context.Context, id string) error
- func (s *Services) DeletePermission(ctx context.Context, project, username string) error
- func (s *Services) DeleteProject(ctx context.Context, key string) error
- func (s *Services) DeleteProjectEnvironment(ctx context.Context, project, environment string) error
- func (s *Services) DeleteStaticCDN(ctx context.Context, project, environment, bucket string) error
- func (s *Services) DeleteStatus(ctx context.Context, environment string) error
- func (s *Services) DeleteTLSCertificate(ctx context.Context, project, environment, key string) error
- func (s *Services) DeleteUser(ctx context.Context, username string) error
- func (s *Services) DetachProjectGitLabDelivery(ctx context.Context, project string) error
- func (s *Services) EnsureAdmin(ctx context.Context, user access.User) error
- func (s *Services) EnsureProject(ctx context.Context, project access.Project) error
- func (s *Services) GetAWSCredential(ctx context.Context, key string) (awscredentials.StoredCredential, error)
- func (s *Services) GetCICDBuild(ctx context.Context, project, id string) (cicd.Build, error)
- func (s *Services) GetCICDConnection(ctx context.Context, project, key string) (cicd.StoredConnection, error)
- func (s *Services) GetCICDCredential(ctx context.Context, project, key string) (cicd.StoredCredential, error)
- func (s *Services) GetCICDJob(ctx context.Context, project, key string) (cicd.Job, error)
- func (s *Services) GetCICDJobBuildUsage(ctx context.Context, project, key string) (cicd.JobBuildUsage, error)
- func (s *Services) GetCICDRepository(ctx context.Context, project, key string) (cicd.Repository, error)
- func (s *Services) GetDataServiceCredential(ctx context.Context, project, environment, service string) (dataservicecredentials.StoredCredential, error)
- func (s *Services) GetEnvironment(ctx context.Context, name string) ([]byte, error)
- func (s *Services) GetGitLabServer(ctx context.Context, key string) (gitlab.StoredServer, error)
- func (s *Services) GetHelmComponent(ctx context.Context, key string) (componentcatalog.Component, error)
- func (s *Services) GetPermission(ctx context.Context, project, username string) (access.Permission, error)
- func (s *Services) GetProject(ctx context.Context, key string) (access.Project, error)
- func (s *Services) GetProjectEnvironment(ctx context.Context, project, environment string) (access.ProjectEnvironment, error)
- func (s *Services) GetProjectGitLabDelivery(ctx context.Context, project string) (gitlab.ProjectDelivery, error)
- func (s *Services) GetSelectedAWSCredential(ctx context.Context, project string) (awscredentials.StoredCredential, error)
- func (s *Services) GetStaticCDN(ctx context.Context, project, environment, bucket string) (staticcdn.Resource, error)
- func (s *Services) GetStatus(ctx context.Context, environment string) ([]byte, bool, error)
- func (s *Services) GetStatuses(ctx context.Context, environments []string) (map[string][]byte, error)
- func (s *Services) GetTLSCertificate(ctx context.Context, project, environment, key string) (tlscertificates.StoredMaterial, error)
- func (s *Services) GetTerraformStateBackend(ctx context.Context) (statebackend.StoredConfig, error)
- func (s *Services) GetUser(ctx context.Context, username string) (access.User, error)
- func (s *Services) GitLabServerBindingCount(ctx context.Context, key string) (int, error)
- func (s *Services) GitLabServerBindingRootGroups(ctx context.Context, key string) ([]string, error)
- func (s *Services) GitLabServerSourceRepositories(ctx context.Context, key string) ([]string, error)
- func (s *Services) HasActiveCICDBuilds(ctx context.Context, project string) (bool, error)
- func (s *Services) Health(ctx context.Context) (map[string]string, error)
- func (s *Services) ListAWSCredentials(ctx context.Context) ([]awscredentials.StoredCredential, error)
- func (s *Services) ListAuditEvents(ctx context.Context, query auditlog.Query) (auditlog.Page, error)
- func (s *Services) ListCICDBuilds(ctx context.Context, project, environment string, limit int) ([]cicd.Build, error)
- func (s *Services) ListCICDConnections(ctx context.Context, project string) ([]cicd.StoredConnection, error)
- func (s *Services) ListCICDCredentials(ctx context.Context, project string) ([]cicd.StoredCredential, error)
- func (s *Services) ListCICDJobs(ctx context.Context, project string) ([]cicd.Job, error)
- func (s *Services) ListCICDRepositories(ctx context.Context, project string) ([]cicd.Repository, error)
- func (s *Services) ListDataServiceCredentials(ctx context.Context, project, environment string) ([]dataservicecredentials.StoredCredential, error)
- func (s *Services) ListGitLabServers(ctx context.Context) ([]gitlab.StoredServer, error)
- func (s *Services) ListHelmComponents(ctx context.Context) ([]componentcatalog.Component, error)
- func (s *Services) ListProjectEnvironments(ctx context.Context, project string) ([]access.ProjectEnvironment, error)
- func (s *Services) ListProjects(ctx context.Context, username string, isAdmin bool) ([]access.Project, error)
- func (s *Services) ListProjectsWithDetails(ctx context.Context, username string, _ bool) ([]access.Project, error)
- func (s *Services) ListStaticCDNs(ctx context.Context, project, environment string) ([]staticcdn.Resource, error)
- func (s *Services) ListTLSCertificates(ctx context.Context, project, environment string) ([]tlscertificates.StoredMaterial, error)
- func (s *Services) ListUsers(ctx context.Context) ([]access.User, error)
- func (s *Services) LoadEnvironments(ctx context.Context) (map[string][]byte, error)
- func (s *Services) LoadJobs(ctx context.Context) ([]jobs.Job, error)
- func (s *Services) LoadResourceSnapshot(ctx context.Context, project, environment string) ([]byte, error)
- func (s *Services) RecordAudit(ctx context.Context, method, path string, status int, username, remote string, ...) error
- func (s *Services) SaveAWSCredential(ctx context.Context, record awscredentials.StoredCredential) error
- func (s *Services) SaveCICDBuild(ctx context.Context, item cicd.Build) error
- func (s *Services) SaveCICDConnection(ctx context.Context, item cicd.StoredConnection) error
- func (s *Services) SaveCICDCredential(ctx context.Context, item cicd.StoredCredential) error
- func (s *Services) SaveCICDJob(ctx context.Context, item cicd.Job) error
- func (s *Services) SaveCICDRepository(ctx context.Context, item cicd.Repository) error
- func (s *Services) SaveDataServiceCredential(ctx context.Context, record dataservicecredentials.StoredCredential) error
- func (s *Services) SaveEnvironment(ctx context.Context, name string, payload []byte) error
- func (s *Services) SaveGitLabServer(ctx context.Context, item gitlab.StoredServer) error
- func (s *Services) SaveHelmComponent(ctx context.Context, component componentcatalog.Component) error
- func (s *Services) SaveJob(ctx context.Context, job *jobs.Job) error
- func (s *Services) SavePermission(ctx context.Context, permission access.Permission) error
- func (s *Services) SaveProject(ctx context.Context, project access.Project) error
- func (s *Services) SaveProjectEnvironment(ctx context.Context, item access.ProjectEnvironment) error
- func (s *Services) SaveProjectGitLabDelivery(ctx context.Context, item gitlab.ProjectDelivery) error
- func (s *Services) SaveResourceSnapshot(ctx context.Context, project, environment string, payload []byte) error
- func (s *Services) SaveStaticCDN(ctx context.Context, item staticcdn.Resource) error
- func (s *Services) SaveTLSCertificate(ctx context.Context, record tlscertificates.StoredMaterial) error
- func (s *Services) SaveTerraformStateBackend(ctx context.Context, record statebackend.StoredConfig) error
- func (s *Services) SaveUser(ctx context.Context, user access.User) error
- func (s *Services) SelectProjectAWSCredential(ctx context.Context, project, key string) error
- func (s *Services) SetStatus(ctx context.Context, environment string, payload []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
func (*Services) DeleteAWSCredential ¶
func (*Services) DeleteCICDConnection ¶
func (*Services) DeleteCICDCredential ¶
func (*Services) DeleteCICDJob ¶
func (*Services) DeleteCICDProject ¶
func (*Services) DeleteCICDRepository ¶
func (*Services) DeleteCachedJob ¶
func (*Services) DeleteDataServiceCredential ¶
func (*Services) DeleteEnvironment ¶
func (*Services) DeleteGitLabServer ¶
func (*Services) DeleteHelmComponent ¶
func (*Services) DeletePermission ¶
func (*Services) DeleteProject ¶
func (*Services) DeleteProjectEnvironment ¶
func (*Services) DeleteStaticCDN ¶
func (*Services) DeleteStatus ¶
func (*Services) DeleteTLSCertificate ¶
func (*Services) DeleteUser ¶
func (*Services) DetachProjectGitLabDelivery ¶
func (*Services) EnsureAdmin ¶
func (*Services) EnsureProject ¶
func (*Services) GetAWSCredential ¶
func (s *Services) GetAWSCredential(ctx context.Context, key string) (awscredentials.StoredCredential, error)
func (*Services) GetCICDBuild ¶
func (*Services) GetCICDConnection ¶
func (*Services) GetCICDCredential ¶
func (*Services) GetCICDJob ¶
func (*Services) GetCICDJobBuildUsage ¶
func (*Services) GetCICDRepository ¶
func (*Services) GetDataServiceCredential ¶
func (s *Services) GetDataServiceCredential(ctx context.Context, project, environment, service string) (dataservicecredentials.StoredCredential, error)
func (*Services) GetEnvironment ¶
func (*Services) GetGitLabServer ¶
func (*Services) GetHelmComponent ¶
func (*Services) GetPermission ¶
func (*Services) GetProject ¶
func (*Services) GetProjectEnvironment ¶
func (*Services) GetProjectGitLabDelivery ¶
func (*Services) GetSelectedAWSCredential ¶
func (s *Services) GetSelectedAWSCredential(ctx context.Context, project string) (awscredentials.StoredCredential, error)
func (*Services) GetStaticCDN ¶
func (*Services) GetStatuses ¶
func (*Services) GetTLSCertificate ¶
func (s *Services) GetTLSCertificate(ctx context.Context, project, environment, key string) (tlscertificates.StoredMaterial, error)
func (*Services) GetTerraformStateBackend ¶
func (s *Services) GetTerraformStateBackend(ctx context.Context) (statebackend.StoredConfig, error)
func (*Services) GitLabServerBindingCount ¶
func (*Services) GitLabServerBindingRootGroups ¶
func (*Services) GitLabServerSourceRepositories ¶
func (*Services) HasActiveCICDBuilds ¶
func (*Services) ListAWSCredentials ¶
func (s *Services) ListAWSCredentials(ctx context.Context) ([]awscredentials.StoredCredential, error)
func (*Services) ListAuditEvents ¶
func (*Services) ListCICDBuilds ¶
func (*Services) ListCICDConnections ¶
func (*Services) ListCICDCredentials ¶
func (*Services) ListCICDJobs ¶
func (*Services) ListCICDRepositories ¶
func (*Services) ListDataServiceCredentials ¶
func (s *Services) ListDataServiceCredentials(ctx context.Context, project, environment string) ([]dataservicecredentials.StoredCredential, error)
func (*Services) ListGitLabServers ¶
func (*Services) ListHelmComponents ¶
func (*Services) ListProjectEnvironments ¶
func (*Services) ListProjects ¶
func (*Services) ListProjectsWithDetails ¶
func (s *Services) ListProjectsWithDetails(ctx context.Context, username string, _ bool) ([]access.Project, error)
ListProjectsWithDetails avoids the project-list N+1 query pattern. Project, current-user permission and up to four environment rows are folded from one ordered result set without changing the access-control boundary.
func (*Services) ListStaticCDNs ¶
func (*Services) ListTLSCertificates ¶
func (s *Services) ListTLSCertificates(ctx context.Context, project, environment string) ([]tlscertificates.StoredMaterial, error)
func (*Services) LoadEnvironments ¶
func (*Services) LoadResourceSnapshot ¶
func (*Services) RecordAudit ¶
func (*Services) SaveAWSCredential ¶
func (s *Services) SaveAWSCredential(ctx context.Context, record awscredentials.StoredCredential) error
func (*Services) SaveCICDBuild ¶
func (*Services) SaveCICDConnection ¶
func (*Services) SaveCICDCredential ¶
func (*Services) SaveCICDJob ¶
func (*Services) SaveCICDRepository ¶
func (*Services) SaveDataServiceCredential ¶
func (s *Services) SaveDataServiceCredential(ctx context.Context, record dataservicecredentials.StoredCredential) error
func (*Services) SaveEnvironment ¶
func (*Services) SaveGitLabServer ¶
func (*Services) SaveHelmComponent ¶
func (*Services) SavePermission ¶
func (*Services) SaveProject ¶
func (*Services) SaveProjectEnvironment ¶
func (*Services) SaveProjectGitLabDelivery ¶
func (*Services) SaveResourceSnapshot ¶
func (*Services) SaveStaticCDN ¶
func (*Services) SaveTLSCertificate ¶
func (s *Services) SaveTLSCertificate(ctx context.Context, record tlscertificates.StoredMaterial) error
func (*Services) SaveTerraformStateBackend ¶
func (s *Services) SaveTerraformStateBackend(ctx context.Context, record statebackend.StoredConfig) error
func (*Services) SelectProjectAWSCredential ¶
Click to show internal directories.
Click to hide internal directories.