Documentation ¶
Index ¶
- Constants
- func GetLanguagePaths(p *Pipeline) []string
- func GetReSources(p *Pipeline) map[string]Resource
- func GetStages(p *Pipeline) map[string]*Stage
- type Metadata
- type MetadataField
- type Params
- type Pipeline
- type PipelineMetadata
- type PipelineYml
- type Resource
- type ResourceType
- type Source
- type Stage
- type TaskConfig
- type Version
Constants ¶
View Source
const ( GittarFilePath = apistructs.DefaultPipelineYmlName GittarUserName = "" GittarPassWord = "" )
View Source
const ( RES_TYPE_BUILDPACK = "buildpack" RES_TYPE_BP_IMAGE = "bp-image" RES_TYPE_SONAR = "sonar" RES_TYPE_UT = "ut" RES_TYPE_GIT = "git" )
Variables ¶
This section is empty.
Functions ¶
func GetLanguagePaths ¶
func GetReSources ¶
Types ¶
type Metadata ¶
type Metadata []MetadataField
type MetadataField ¶
type Pipeline ¶
type Pipeline struct { Version string `json:"version"` Stages []*Stage `json:"stages,omitempty"` Envs map[string]string `json:"envs,omitempty"` Resources []Resource `json:"resources,omitempty"` ResourceTypes []ResourceType `json:"resource_types,omitempty"` }
func ParsePipeline ¶
type PipelineMetadata ¶
type PipelineMetadata struct {
// contains filtered or unexported fields
}
PipelineMetadata contains extra info needs by parse process.
type PipelineYml ¶
type PipelineYml struct {
// contains filtered or unexported fields
}
func New ¶
func New(b []byte) *PipelineYml
func (*PipelineYml) CreatePipeline ¶
func (y *PipelineYml) CreatePipeline(gittarURL, gittarBranch, commitId string) (*Pipeline, error)
func (*PipelineYml) Unmarshal ¶
func (y *PipelineYml) Unmarshal() error
Unmarshal unmarshal byteData to obj with evaluate, need metadata templateVars.
func (*PipelineYml) YAML ¶
func (y *PipelineYml) YAML() (string, error)
type ResourceType ¶
type Stage ¶
type Stage struct { Name string `json:"name,omitempty"` TaskConfigs []TaskConfig `json:"tasks,omitempty" ymal:"tasks" yml:"tasks" ymal.org:"tasks"` }
type TaskConfig ¶
type TaskConfig map[string]interface{}
Click to show internal directories.
Click to hide internal directories.