service

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterFactory

type ClusterFactory struct {
	// 集群资源操作客户端
	KubeClient *cluster.KubeClient
}

ClusterFactory 集群相关service

type Config

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

func NewConfig

func NewConfig(models *model.Models) *Config

type Factory

type Factory struct {
	// 集群相关Service
	Cluster *ClusterFactory
	// 项目相关Service,如工作空间、应用
	Project *ProjectFactory
	// 流水线相关Service
	Pipeline *PipelineFactory
}

func NewServiceFactory

func NewServiceFactory(config *Config) *Factory

type PipelineFactory

type PipelineFactory struct {
	// 流水线空间
	WorkspaceService *pipeline.WorkspaceService
	// 流水线
	PipelineService *pipeline.PipelineService
	// 流水线构建
	PipelineRunService *pipeline_run.PipelineRunService
	// spacelet
	SpaceletService *spacelet.SpaceletService
}

PipelineFactory 流水线相关service

type ProjectFactory

type ProjectFactory struct {
	// 工作空间
	ProjectService *project.ProjectService
	// 应用
	AppService *project.AppService
	// 应用商店
	AppStoreService *project.AppStoreService
}

ProjectFactory 工作空间相关service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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