service

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeploymentRuntimeFilterRules = map[string]map[string]selector.FieldSelector{
		"projects_ref.in": {
			selector.EqualOperator: selector.NewStringSelector("Spec.ProjectsRef.In", selector.In),
		},
		"manifest_source.code_repo": {
			selector.EqualOperator: selector.NewStringSelector("Spec.ManifestSource.CodeRepo", selector.In),
		},
		"destination": {
			selector.EqualOperator: selector.NewStringSelector("Spec.Destination", selector.In),
		},
	}
)
View Source
var (
	// Data rules for filtering list cluster api.
	ProductFilterRules = map[string]map[string]selector.FieldSelector{
		"product_name": {
			selector.EqualOperator: selector.NewStringSelector("Name", selector.In),
		},
	}
)
View Source
var (
	// Data rules for filtering list cluster api.
	ProjectFilterRules = map[string]map[string]selector.FieldSelector{
		"project_name": {
			selector.EqualOperator: selector.NewStringSelector("Name", selector.In),
		},
	}
)
View Source
var (
	ProjectPipelineRuntimeFilterRules = map[string]map[string]selector.FieldSelector{
		"project_name": {
			selector.EqualOperator: selector.NewStringSelector("Name", selector.In),
		},
		"pipeline_triggers.pipeline": {
			selector.EqualOperator: selector.NewStringSelector("Spec.PipelineTriggers.Pipeline", selector.In),
		},
		"destination": {
			selector.EqualOperator: selector.NewStringSelector("Spec.Destination", selector.In),
		},
		"pipeline_source": {
			selector.EqualOperator: selector.NewStringSelector("Spec.PipelineSource", selector.In),
		},
		"project": {
			selector.EqualOperator: selector.NewStringSelector("Spec.Project", selector.In),
		},
	}
)

ProviderSet is service providers.

Functions

func NewReplay added in v0.4.2

func NewReplay(projectPipelineRuntime *resourcev1alpha1.ProjectPipelineRuntime) (*projectpipelineruntimev1.GetReply, error)

Types

type ClusterService

type ClusterService struct {
	clusterv1.UnimplementedClusterServer
	// contains filtered or unexported fields
}

func NewClusterService

func NewClusterService(cluster *biz.ClusterUsecase, nautesConfigs *nautesconfigs.Config) (*ClusterService, error)

func (*ClusterService) DeleteCluster

func (*ClusterService) GetCluster

func (*ClusterService) ListClusters

func (*ClusterService) SaveCluster

type CodeRepoBindingService

type CodeRepoBindingService struct {
	coderepobindingv1.UnimplementedCodeRepoBindingServer
	// contains filtered or unexported fields
}

func NewCodeRepoBindingService

func NewCodeRepoBindingService(codeRepoBindingUsecase *biz.CodeRepoBindingUsecase, codeRepo biz.CodeRepo) *CodeRepoBindingService

func (*CodeRepoBindingService) ConvertProductAndRepoName

func (s *CodeRepoBindingService) ConvertProductAndRepoName(ctx context.Context, resource *resourcev1alpha1.CodeRepoBinding) error

func (*CodeRepoBindingService) CovertCodeRepoBindingValueToReply

func (s *CodeRepoBindingService) CovertCodeRepoBindingValueToReply(codeRepoBinding *resourcev1alpha1.CodeRepoBinding) *coderepobindingv1.GetReply

func (*CodeRepoBindingService) DeleteCodeRepoBinding

func (*CodeRepoBindingService) GetCodeRepoBinding

func (*CodeRepoBindingService) ListCodeRepoBindings

func (*CodeRepoBindingService) SaveCodeRepoBinding

type CodeRepoService

type CodeRepoService struct {
	coderepov1.UnimplementedCodeRepoServer
	// contains filtered or unexported fields
}

func NewCodeRepoService

func NewCodeRepoService(codeRepo *biz.CodeRepoUsecase, configs *nautesconfigs.Config) *CodeRepoService

func (*CodeRepoService) DeleteCodeRepo

func (*CodeRepoService) GetCodeRepo

func (*CodeRepoService) ListCodeRepos

func (*CodeRepoService) SaveCodeRepo

type DeploymentruntimeService

type DeploymentruntimeService struct {
	deploymentruntimev1.UnimplementedDeploymentruntimeServer
	// contains filtered or unexported fields
}

func NewDeploymentruntimeService

func NewDeploymentruntimeService(deploymentRuntime *biz.DeploymentRuntimeUsecase, codeRepo biz.CodeRepo) *DeploymentruntimeService

func (*DeploymentruntimeService) CovertDeploymentRuntimeValueToReply

func (s *DeploymentruntimeService) CovertDeploymentRuntimeValueToReply(runtime *resourcev1alpha1.DeploymentRuntime) *deploymentruntimev1.GetReply

func (*DeploymentruntimeService) DeleteDeploymentRuntime

func (*DeploymentruntimeService) GetDeploymentRuntime

func (*DeploymentruntimeService) ListDeploymentRuntimes

func (*DeploymentruntimeService) SaveDeploymentRuntime

type EnvironmentService

type EnvironmentService struct {
	environmentv1.UnimplementedEnvironmentServer
	// contains filtered or unexported fields
}

func NewEnvironmentService

func NewEnvironmentService(environment *biz.EnvironmentUsecase) *EnvironmentService

func (*EnvironmentService) DeleteEnvironment

func (*EnvironmentService) GetEnvironment

func (*EnvironmentService) ListEnvironments

func (*EnvironmentService) NewGetReply added in v0.4.2

func (*EnvironmentService) SaveEnvironment

type ProductService

type ProductService struct {
	productv1.UnimplementedProductServer
	// contains filtered or unexported fields
}

func NewProductService

func NewProductService(product *biz.ProductUsecase, configs *nautesconfigs.Config) *ProductService

func (*ProductService) DeleteProduct

func (*ProductService) GetProduct

func (*ProductService) ListProducts

func (*ProductService) SaveProduct

type ProjectPipelineRuntimeService

type ProjectPipelineRuntimeService struct {
	projectpipelineruntimev1.UnimplementedProjectPipelineRuntimeServer
	// contains filtered or unexported fields
}

func NewProjectPipelineRuntimeService

func NewProjectPipelineRuntimeService(projectPipelineRuntime *biz.ProjectPipelineRuntimeUsecase, codeRepo biz.CodeRepo) *ProjectPipelineRuntimeService

func (*ProjectPipelineRuntimeService) DeleteProjectPipelineRuntime

func (*ProjectPipelineRuntimeService) GetProjectPipelineRuntime

func (*ProjectPipelineRuntimeService) ListProjectPipelineRuntimes

func (*ProjectPipelineRuntimeService) NewProjectPipelineRuntimeData added in v0.4.2

func (*ProjectPipelineRuntimeService) SaveProjectPipelineRuntime

type ProjectService

type ProjectService struct {
	projectv1.UnimplementedProjectServer
	// contains filtered or unexported fields
}

func NewProjectService

func NewProjectService(project *biz.ProjectUsecase) *ProjectService

func (*ProjectService) CovertCodeRepoValueToReply

func (s *ProjectService) CovertCodeRepoValueToReply(project *resourcev1alpha1.Project) *projectv1.GetReply

func (*ProjectService) DeleteProject

func (*ProjectService) GetProject

func (*ProjectService) ListProjects

func (*ProjectService) SaveProject

Jump to

Keyboard shortcuts

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