appsvc

package
v1.0.0-RC Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSvc

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

func New

func New(bdl *bundle.Bundle) *AppSvc

func (*AppSvc) GetWorkspaceApp

func (s *AppSvc) GetWorkspaceApp(appID uint64, branch string) (*WorkspaceApp, error)

type WorkspaceApp

type WorkspaceApp struct {
	ID            uint64                   `json:"ID"`
	Name          string                   `json:"name"`
	OrgID         uint64                   `json:"orgId"`
	OrgName       string                   `json:"orgName"`
	ProjectID     uint64                   `json:"projectID"`
	ProjectName   string                   `json:"projectName"`
	GitRepo       string                   `json:"gitRepo"`
	GitRepoAbbrev string                   `json:"gitRepoAbbrev"`
	Branch        string                   `json:"branch"`
	Workspace     apistructs.DiceWorkspace `json:"workspace"`
	ClusterName   string                   `json:"clusterName"`
}

WorkspaceApp 包括所有 pipeline 创建需要的应用信息

func (*WorkspaceApp) GenerateLabels

func (app *WorkspaceApp) GenerateLabels() map[string]string

func (*WorkspaceApp) GenerateV1UniquePipelineYmlName

func (app *WorkspaceApp) GenerateV1UniquePipelineYmlName(originPipelineYmlPath string) string

Jump to

Keyboard shortcuts

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