github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/plugin/plugin_pipeline/cmd/pipline.go (about)

     1  package cmd
     2  
     3  /*
     4  
     5  import (
     6  	"github.com/robfig/cron"
     7  	"github.com/shipyard/shipyard/controller/plugin/client"
     8  )
     9  
    10  type Pipeline struct {
    11  	Cron       *cron.Cron
    12  	Client     client.Client
    13  	Plugin     client.Plugin
    14  	Strategies []client.Strategy
    15  }
    16  
    17  // Start plugin
    18  func (this *Pipeline) Start() error {
    19  }
    20  
    21  //Stop plugin
    22  func (this *Pipeline) Stop() error {
    23  }
    24  
    25  func (this *Pipeline) EnablePlugin() error {
    26  }
    27  
    28  func (this *Pipeline) DisablePlugin() error {
    29  }
    30  
    31  func (this *Pipeline) EnableStrategy(strategyName string) error {
    32  }
    33  
    34  func (this *Pipeline) DisableStrategy(strategyName string) error {
    35  }
    36  
    37  func (this *Pipeline) UpdateDocument(strategyName string) error {
    38  }
    39  */