Documentation ¶
Index ¶
- Constants
- Variables
- type ClusterService
- func (s *ClusterService) DeleteCluster(ctx context.Context, req *clusterv1.DeleteRequest) (*clusterv1.DeleteReply, error)
- func (s *ClusterService) GetCluster(ctx context.Context, req *clusterv1.GetRequest) (*clusterv1.GetReply, error)
- func (s *ClusterService) ListClusters(ctx context.Context, req *clusterv1.ListsRequest) (*clusterv1.ListsReply, error)
- func (s *ClusterService) SaveCluster(ctx context.Context, req *clusterv1.SaveRequest) (*clusterv1.SaveReply, error)
- func (s *ClusterService) Validate(req *clusterv1.SaveRequest) error
- type CodeRepoBindingService
- func (s *CodeRepoBindingService) CovertCodeRepoBindingValueToReply(codeRepoBinding *resourcev1alpha1.CodeRepoBinding) *coderepobindingv1.GetReply
- func (s *CodeRepoBindingService) DeleteCodeRepoBinding(ctx context.Context, req *coderepobindingv1.DeleteRequest) (*coderepobindingv1.DeleteReply, error)
- func (s *CodeRepoBindingService) GetCodeRepoBinding(ctx context.Context, req *coderepobindingv1.GetRequest) (*coderepobindingv1.GetReply, error)
- func (s *CodeRepoBindingService) ListCodeRepoBindings(ctx context.Context, req *coderepobindingv1.ListsRequest) (*coderepobindingv1.ListsReply, error)
- func (s *CodeRepoBindingService) SaveCodeRepoBinding(ctx context.Context, req *coderepobindingv1.SaveRequest) (*coderepobindingv1.SaveReply, error)
- type CodeRepoService
- func (s *CodeRepoService) CovertCodeRepoValueToReply(ctx context.Context, productName string, node *nodestree.Node) (*coderepov1.GetReply, error)
- func (s *CodeRepoService) DeleteCodeRepo(ctx context.Context, req *coderepov1.DeleteRequest) (*coderepov1.DeleteReply, error)
- func (s *CodeRepoService) GetCodeRepo(ctx context.Context, req *coderepov1.GetRequest) (*coderepov1.GetReply, error)
- func (s *CodeRepoService) ListCodeRepos(ctx context.Context, req *coderepov1.ListsRequest) (*coderepov1.ListsReply, error)
- func (s *CodeRepoService) SaveCodeRepo(ctx context.Context, req *coderepov1.SaveRequest) (*coderepov1.SaveReply, error)
- type DeploymentruntimeService
- func (s *DeploymentruntimeService) CovertDeploymentRuntimeValueToReply(runtime *resourcev1alpha1.DeploymentRuntime) *deploymentruntimev1.GetReply
- func (s *DeploymentruntimeService) DeleteDeploymentRuntime(ctx context.Context, req *deploymentruntimev1.DeleteRequest) (*deploymentruntimev1.DeleteReply, error)
- func (s *DeploymentruntimeService) GetDeploymentRuntime(ctx context.Context, req *deploymentruntimev1.GetRequest) (*deploymentruntimev1.GetReply, error)
- func (s *DeploymentruntimeService) ListDeploymentRuntimes(ctx context.Context, req *deploymentruntimev1.ListsRequest) (*deploymentruntimev1.ListsReply, error)
- func (s *DeploymentruntimeService) SaveDeploymentRuntime(ctx context.Context, req *deploymentruntimev1.SaveRequest) (*deploymentruntimev1.SaveReply, error)
- type EnvironmentService
- func (s *EnvironmentService) CovertCodeRepoValueToReply(env *resourcev1alpha1.Environment) *environmentv1.GetReply
- func (s *EnvironmentService) DeleteEnvironment(ctx context.Context, req *environmentv1.DeleteRequest) (*environmentv1.DeleteReply, error)
- func (s *EnvironmentService) GetEnvironment(ctx context.Context, req *environmentv1.GetRequest) (*environmentv1.GetReply, error)
- func (s *EnvironmentService) ListEnvironments(ctx context.Context, req *environmentv1.ListsRequest) (*environmentv1.ListsReply, error)
- func (s *EnvironmentService) SaveEnvironment(ctx context.Context, req *environmentv1.SaveRequest) (*environmentv1.SaveReply, error)
- type ProductService
- func (s *ProductService) CovertCodeRepoValueToReply(group *biz.Group) *productv1.GetProductReply
- func (s *ProductService) DeleteProduct(ctx context.Context, req *productv1.DeleteProductRequest) (*productv1.DeleteProductReply, error)
- func (s *ProductService) GetProduct(ctx context.Context, req *productv1.GetProductRequest) (*productv1.GetProductReply, error)
- func (s *ProductService) ListProducts(ctx context.Context, req *productv1.ListProductsRequest) (*productv1.ListProductsReply, error)
- func (s *ProductService) SaveProduct(ctx context.Context, req *productv1.SaveProductRequest) (*productv1.SaveProductReply, error)
- type ProjectPipelineRuntimeService
- func (p *ProjectPipelineRuntimeService) ConvertCodeRepoToRepoName(ctx context.Context, ...) error
- func (s *ProjectPipelineRuntimeService) DeleteProjectPipelineRuntime(ctx context.Context, req *projectpipelineruntimev1.DeleteRequest) (*projectpipelineruntimev1.DeleteReply, error)
- func (s *ProjectPipelineRuntimeService) GetProjectPipelineRuntime(ctx context.Context, req *projectpipelineruntimev1.GetRequest) (*projectpipelineruntimev1.GetReply, error)
- func (s *ProjectPipelineRuntimeService) ListProjectPipelineRuntimes(ctx context.Context, req *projectpipelineruntimev1.ListsRequest) (*projectpipelineruntimev1.ListsReply, error)
- func (s *ProjectPipelineRuntimeService) SaveProjectPipelineRuntime(ctx context.Context, req *projectpipelineruntimev1.SaveRequest) (*projectpipelineruntimev1.SaveReply, error)
- func (s *ProjectPipelineRuntimeService) Validate(spec resourcev1alpha1.ProjectPipelineRuntimeSpec) error
- type ProjectService
- func (s *ProjectService) CovertCodeRepoValueToReply(project *resourcev1alpha1.Project) *projectv1.GetReply
- func (s *ProjectService) DeleteProject(ctx context.Context, req *projectv1.DeleteRequest) (*projectv1.DeleteReply, error)
- func (s *ProjectService) GetProject(ctx context.Context, req *projectv1.GetRequest) (*projectv1.GetReply, error)
- func (s *ProjectService) ListProjects(ctx context.Context, req *projectv1.ListsRequest) (*projectv1.ListsReply, error)
- func (s *ProjectService) SaveProject(ctx context.Context, req *projectv1.SaveRequest) (*projectv1.SaveReply, error)
Constants ¶
View Source
const ( FieldPipelineTriggersPipeline = "pipeline_triggers.pipeline" FeldManifestSourceCodeRepo = "manifest_source.code_repo" FieldDestination = "destination" FieldPipelineSource = "pipeline_source" FieldProject = "project" FieldProjectsRef = "projects_ref.in" FieldCodeRepo = "coderepo" FieldProduct = "product" FiledProjectsInProject = "projects.in" FieldPilelineRuntime = "pipeline_runtime" FieldDeploymentRuntime = "deployment_runtime" FieldCluster = "cluster" FieldEnvType = "env_type" FieldClusterType = "cluster_type" FieldUsage = "usage" FieldWorkType = "worker_type" )
Filter field for list api.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewProjectPipelineRuntimeService, NewDeploymentruntimeService, NewCodeRepoService, NewProductService, NewProjectService, NewEnvironmentService, NewClusterService, NewCodeRepoBindingService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type ClusterService ¶
type ClusterService struct { clusterv1.UnimplementedClusterServer // contains filtered or unexported fields }
func NewClusterService ¶
func NewClusterService(cluster *biz.ClusterUsecase, configs *nautesconfigs.Config) *ClusterService
func (*ClusterService) DeleteCluster ¶
func (s *ClusterService) DeleteCluster(ctx context.Context, req *clusterv1.DeleteRequest) (*clusterv1.DeleteReply, error)
func (*ClusterService) GetCluster ¶ added in v0.3.1
func (s *ClusterService) GetCluster(ctx context.Context, req *clusterv1.GetRequest) (*clusterv1.GetReply, error)
func (*ClusterService) ListClusters ¶ added in v0.3.1
func (s *ClusterService) ListClusters(ctx context.Context, req *clusterv1.ListsRequest) (*clusterv1.ListsReply, error)
func (*ClusterService) SaveCluster ¶
func (s *ClusterService) SaveCluster(ctx context.Context, req *clusterv1.SaveRequest) (*clusterv1.SaveReply, error)
func (*ClusterService) Validate ¶ added in v0.3.0
func (s *ClusterService) Validate(req *clusterv1.SaveRequest) error
type CodeRepoBindingService ¶ added in v0.3.0
type CodeRepoBindingService struct { coderepobindingv1.UnimplementedCodeRepoBindingServer // contains filtered or unexported fields }
func NewCodeRepoBindingService ¶ added in v0.3.0
func NewCodeRepoBindingService(codeRepoBindingUsecase *biz.CodeRepoBindingUsecase, resourcesUsecase *biz.ResourcesUsecase) *CodeRepoBindingService
func (*CodeRepoBindingService) CovertCodeRepoBindingValueToReply ¶ added in v0.3.0
func (s *CodeRepoBindingService) CovertCodeRepoBindingValueToReply(codeRepoBinding *resourcev1alpha1.CodeRepoBinding) *coderepobindingv1.GetReply
func (*CodeRepoBindingService) DeleteCodeRepoBinding ¶ added in v0.3.0
func (s *CodeRepoBindingService) DeleteCodeRepoBinding(ctx context.Context, req *coderepobindingv1.DeleteRequest) (*coderepobindingv1.DeleteReply, error)
func (*CodeRepoBindingService) GetCodeRepoBinding ¶ added in v0.3.0
func (s *CodeRepoBindingService) GetCodeRepoBinding(ctx context.Context, req *coderepobindingv1.GetRequest) (*coderepobindingv1.GetReply, error)
func (*CodeRepoBindingService) ListCodeRepoBindings ¶ added in v0.3.0
func (s *CodeRepoBindingService) ListCodeRepoBindings(ctx context.Context, req *coderepobindingv1.ListsRequest) (*coderepobindingv1.ListsReply, error)
func (*CodeRepoBindingService) SaveCodeRepoBinding ¶ added in v0.3.0
func (s *CodeRepoBindingService) SaveCodeRepoBinding(ctx context.Context, req *coderepobindingv1.SaveRequest) (*coderepobindingv1.SaveReply, error)
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) CovertCodeRepoValueToReply ¶
func (s *CodeRepoService) CovertCodeRepoValueToReply(ctx context.Context, productName string, node *nodestree.Node) (*coderepov1.GetReply, error)
func (*CodeRepoService) DeleteCodeRepo ¶
func (s *CodeRepoService) DeleteCodeRepo(ctx context.Context, req *coderepov1.DeleteRequest) (*coderepov1.DeleteReply, error)
func (*CodeRepoService) GetCodeRepo ¶
func (s *CodeRepoService) GetCodeRepo(ctx context.Context, req *coderepov1.GetRequest) (*coderepov1.GetReply, error)
func (*CodeRepoService) ListCodeRepos ¶
func (s *CodeRepoService) ListCodeRepos(ctx context.Context, req *coderepov1.ListsRequest) (*coderepov1.ListsReply, error)
func (*CodeRepoService) SaveCodeRepo ¶
func (s *CodeRepoService) SaveCodeRepo(ctx context.Context, req *coderepov1.SaveRequest) (*coderepov1.SaveReply, error)
type DeploymentruntimeService ¶
type DeploymentruntimeService struct { deploymentruntimev1.UnimplementedDeploymentruntimeServer // contains filtered or unexported fields }
func NewDeploymentruntimeService ¶
func NewDeploymentruntimeService(deploymentRuntime *biz.DeploymentRuntimeUsecase) *DeploymentruntimeService
func (*DeploymentruntimeService) CovertDeploymentRuntimeValueToReply ¶ added in v0.3.1
func (s *DeploymentruntimeService) CovertDeploymentRuntimeValueToReply(runtime *resourcev1alpha1.DeploymentRuntime) *deploymentruntimev1.GetReply
func (*DeploymentruntimeService) DeleteDeploymentRuntime ¶
func (s *DeploymentruntimeService) DeleteDeploymentRuntime(ctx context.Context, req *deploymentruntimev1.DeleteRequest) (*deploymentruntimev1.DeleteReply, error)
func (*DeploymentruntimeService) GetDeploymentRuntime ¶
func (s *DeploymentruntimeService) GetDeploymentRuntime(ctx context.Context, req *deploymentruntimev1.GetRequest) (*deploymentruntimev1.GetReply, error)
func (*DeploymentruntimeService) ListDeploymentRuntimes ¶
func (s *DeploymentruntimeService) ListDeploymentRuntimes(ctx context.Context, req *deploymentruntimev1.ListsRequest) (*deploymentruntimev1.ListsReply, error)
func (*DeploymentruntimeService) SaveDeploymentRuntime ¶
func (s *DeploymentruntimeService) SaveDeploymentRuntime(ctx context.Context, req *deploymentruntimev1.SaveRequest) (*deploymentruntimev1.SaveReply, error)
type EnvironmentService ¶
type EnvironmentService struct { environmentv1.UnimplementedEnvironmentServer // contains filtered or unexported fields }
func NewEnvironmentService ¶
func NewEnvironmentService(environment *biz.EnvironmentUsecase) *EnvironmentService
func (*EnvironmentService) CovertCodeRepoValueToReply ¶
func (s *EnvironmentService) CovertCodeRepoValueToReply(env *resourcev1alpha1.Environment) *environmentv1.GetReply
func (*EnvironmentService) DeleteEnvironment ¶
func (s *EnvironmentService) DeleteEnvironment(ctx context.Context, req *environmentv1.DeleteRequest) (*environmentv1.DeleteReply, error)
func (*EnvironmentService) GetEnvironment ¶
func (s *EnvironmentService) GetEnvironment(ctx context.Context, req *environmentv1.GetRequest) (*environmentv1.GetReply, error)
func (*EnvironmentService) ListEnvironments ¶
func (s *EnvironmentService) ListEnvironments(ctx context.Context, req *environmentv1.ListsRequest) (*environmentv1.ListsReply, error)
func (*EnvironmentService) SaveEnvironment ¶
func (s *EnvironmentService) SaveEnvironment(ctx context.Context, req *environmentv1.SaveRequest) (*environmentv1.SaveReply, error)
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) CovertCodeRepoValueToReply ¶
func (s *ProductService) CovertCodeRepoValueToReply(group *biz.Group) *productv1.GetProductReply
func (*ProductService) DeleteProduct ¶
func (s *ProductService) DeleteProduct(ctx context.Context, req *productv1.DeleteProductRequest) (*productv1.DeleteProductReply, error)
func (*ProductService) GetProduct ¶
func (s *ProductService) GetProduct(ctx context.Context, req *productv1.GetProductRequest) (*productv1.GetProductReply, error)
func (*ProductService) ListProducts ¶
func (s *ProductService) ListProducts(ctx context.Context, req *productv1.ListProductsRequest) (*productv1.ListProductsReply, error)
func (*ProductService) SaveProduct ¶
func (s *ProductService) SaveProduct(ctx context.Context, req *productv1.SaveProductRequest) (*productv1.SaveProductReply, error)
type ProjectPipelineRuntimeService ¶
type ProjectPipelineRuntimeService struct { projectpipelineruntimev1.UnimplementedProjectPipelineRuntimeServer // contains filtered or unexported fields }
func NewProjectPipelineRuntimeService ¶
func NewProjectPipelineRuntimeService(projectPipelineRuntime *biz.ProjectPipelineRuntimeUsecase, resourcesUsecase *biz.ResourcesUsecase) *ProjectPipelineRuntimeService
func (*ProjectPipelineRuntimeService) ConvertCodeRepoToRepoName ¶ added in v0.3.1
func (p *ProjectPipelineRuntimeService) ConvertCodeRepoToRepoName(ctx context.Context, projectPipelineRuntime *resourcev1alpha1.ProjectPipelineRuntime) error
func (*ProjectPipelineRuntimeService) DeleteProjectPipelineRuntime ¶
func (s *ProjectPipelineRuntimeService) DeleteProjectPipelineRuntime(ctx context.Context, req *projectpipelineruntimev1.DeleteRequest) (*projectpipelineruntimev1.DeleteReply, error)
func (*ProjectPipelineRuntimeService) GetProjectPipelineRuntime ¶
func (s *ProjectPipelineRuntimeService) GetProjectPipelineRuntime(ctx context.Context, req *projectpipelineruntimev1.GetRequest) (*projectpipelineruntimev1.GetReply, error)
func (*ProjectPipelineRuntimeService) ListProjectPipelineRuntimes ¶
func (s *ProjectPipelineRuntimeService) ListProjectPipelineRuntimes(ctx context.Context, req *projectpipelineruntimev1.ListsRequest) (*projectpipelineruntimev1.ListsReply, error)
func (*ProjectPipelineRuntimeService) SaveProjectPipelineRuntime ¶
func (s *ProjectPipelineRuntimeService) SaveProjectPipelineRuntime(ctx context.Context, req *projectpipelineruntimev1.SaveRequest) (*projectpipelineruntimev1.SaveReply, error)
func (*ProjectPipelineRuntimeService) Validate ¶ added in v0.3.1
func (s *ProjectPipelineRuntimeService) Validate(spec resourcev1alpha1.ProjectPipelineRuntimeSpec) error
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 (s *ProjectService) DeleteProject(ctx context.Context, req *projectv1.DeleteRequest) (*projectv1.DeleteReply, error)
func (*ProjectService) GetProject ¶
func (s *ProjectService) GetProject(ctx context.Context, req *projectv1.GetRequest) (*projectv1.GetReply, error)
func (*ProjectService) ListProjects ¶
func (s *ProjectService) ListProjects(ctx context.Context, req *projectv1.ListsRequest) (*projectv1.ListsReply, error)
func (*ProjectService) SaveProject ¶
func (s *ProjectService) SaveProject(ctx context.Context, req *projectv1.SaveRequest) (*projectv1.SaveReply, error)
Click to show internal directories.
Click to hide internal directories.