service

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DividerString = "++++++++++++++++++++++++++++++++++++++++++++++++++++++++"

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupService

type CleanupService struct {
	// contains filtered or unexported fields
}

func NewCleanupService

func NewCleanupService(keycloak apis.KeycloakService, driver Driver, pipeline apis.PipelineService, logger util.FileLogger, kafkaAdmin *apis.KafkaAdmin, ctx context.Context) *CleanupService

func (*CleanupService) DeleteOrphanedAnalyticsWorkload

func (cs *CleanupService) DeleteOrphanedAnalyticsWorkload(name string) error

func (*CleanupService) DeleteOrphanedAnalyticsWorkloads

func (cs *CleanupService) DeleteOrphanedAnalyticsWorkloads(userId string, authToken string) (workloads []lib.Workload, err error)

func (*CleanupService) DeleteOrphanedKafkaTopic

func (cs *CleanupService) DeleteOrphanedKafkaTopic(topic string) error

func (*CleanupService) DeleteOrphanedKafkaTopics

func (cs *CleanupService) DeleteOrphanedKafkaTopics() (err error)

func (*CleanupService) DeleteOrphanedKubeService

func (cs *CleanupService) DeleteOrphanedKubeService(collection string, id string) error

func (*CleanupService) DeleteOrphanedKubeServices

func (cs *CleanupService) DeleteOrphanedKubeServices(collection string) (deletedKubeServices []lib.KubeService, err error)

func (*CleanupService) DeleteOrphanedPipelineService

func (cs *CleanupService) DeleteOrphanedPipelineService(id string, accessToken string) error

func (*CleanupService) DeleteOrphanedPipelineServices

func (cs *CleanupService) DeleteOrphanedPipelineServices(userId string, authToken string) (pipes []pipeModels.Pipeline, err error)

func (*CleanupService) GetDeleteOrphanedKafkaTopicsStatus

func (cs *CleanupService) GetDeleteOrphanedKafkaTopicsStatus() lib.DeleteStatus

func (*CleanupService) GetOrphanedAnalyticsWorkloads

func (cs *CleanupService) GetOrphanedAnalyticsWorkloads(userId string, authToken string) (orphanedAnalyticsWorkloads []lib.Workload, err error)

func (*CleanupService) GetOrphanedKafkaTopics

func (cs *CleanupService) GetOrphanedKafkaTopics() (orphanedKafkaTopics []string, err error)

func (*CleanupService) GetOrphanedKubeServices

func (cs *CleanupService) GetOrphanedKubeServices(collection string) (orphanedServices []lib.KubeService, err error)

func (*CleanupService) GetOrphanedPipelineServices

func (cs *CleanupService) GetOrphanedPipelineServices(userId string, authToken string) (orphanedPipelineWorkloads []pipeModels.Pipeline, err error)

func (*CleanupService) StartCleanupService

func (cs *CleanupService) StartCleanupService(recreatePipes bool) (err error)

func (*CleanupService) StopDeleteOrphanedKafkaTopics

func (cs *CleanupService) StopDeleteOrphanedKafkaTopics() (err error)

type Driver

type Driver interface {
	GetServices(collection string) (services []lib.KubeService, err error)
	GetWorkloads(collection string) (workloads []lib.Workload, err error)
	GetWorkloadEnvs(collection string) (envs []map[string]string, err error)
	DeleteWorkload(id string, collection string) error
	DeleteService(id string, collection string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL