github.com/profzone/eden-framework@v1.0.10/internal/project/drone/clone.go (about) 1 package drone 2 3 type PipelineClone struct { 4 Depth int `yaml:"depth" json:"depth"` 5 Disable bool `yaml:"disable" json:"disable"` 6 } 7 8 func NewPipelineClone() *PipelineClone { 9 return new(PipelineClone) 10 } 11 12 func (c *PipelineClone) WithDepth(d int) *PipelineClone { 13 c.Depth = d 14 return c 15 } 16 17 func (c *PipelineClone) SetDisable() *PipelineClone { 18 c.Disable = true 19 return c 20 } 21 22 func (c *PipelineClone) SetEnable() *PipelineClone { 23 c.Disable = false 24 return c 25 }