Documentation
¶
Index ¶
- func GetLog(r *http.Request) logrus.FieldLogger
- func LogEntrySetField(r *http.Request, key string, value interface{})
- func LogEntrySetFields(r *http.Request, fields map[string]interface{})
- func NewLogger(logger *logrus.Logger) func(next http.Handler) http.Handler
- func NewVaultAwsCredProvider(addr, token string) credentials.Provider
- func NewVaultError(statusCode int, r io.Reader) error
- type CoalesceChan
- type Controller
- func (c *Controller) CreatePipeline(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DeletePipeline(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Error(w http.ResponseWriter, err error, code int)
- func (c *Controller) OnLeadershipChange(isLeader bool)
- func (c *Controller) OnSchedulerEvent(s mesos.Scheduler, event msg.Event)
- func (c *Controller) Ping() Pong
- func (c *Controller) Pipeline(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Pipelines(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Routes() http.Handler
- func (c *Controller) Run() error
- func (c *Controller) Serve()
- func (c *Controller) SetVersion(v string)
- func (c *Controller) Shutdown()
- func (c *Controller) StatusPing(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UpdatePipeline(w http.ResponseWriter, r *http.Request)
- type ControllerConfig
- type Pong
- type VaultError
- type VaultSecurityError
- type VaultServerError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogEntrySetField ¶
func LogEntrySetFields ¶
func NewVaultAwsCredProvider ¶
func NewVaultAwsCredProvider(addr, token string) credentials.Provider
Types ¶
type CoalesceChan ¶
func NewCoalesceChan ¶
func NewCoalesceChan(delay time.Duration) *CoalesceChan
func (*CoalesceChan) Close ¶
func (c *CoalesceChan) Close()
func (*CoalesceChan) Wake ¶
func (c *CoalesceChan) Wake()
type Controller ¶
type Controller struct {
Zk *zk.Conn
Scheduler mesos.Scheduler
Membership membership.MemberPool
Storage storage.Storage
Addr string
Listen string
MesosEvents chan msg.Event
LeaderChange chan bool
AutoScaler autoscaling.AutoScaler
AutoscaleDefaultRole string
ScaledGroups map[string]string
Config struct {
Zk struct {
Path string
}
}
Vault struct {
Addr string
Token string
}
// contains filtered or unexported fields
}
func NewController ¶
func NewController(config ControllerConfig) (*Controller, error)
func (*Controller) CreatePipeline ¶
func (c *Controller) CreatePipeline(w http.ResponseWriter, r *http.Request)
func (*Controller) DeletePipeline ¶
func (c *Controller) DeletePipeline(w http.ResponseWriter, r *http.Request)
func (*Controller) Error ¶
func (c *Controller) Error(w http.ResponseWriter, err error, code int)
func (*Controller) OnLeadershipChange ¶
func (c *Controller) OnLeadershipChange(isLeader bool)
func (*Controller) OnSchedulerEvent ¶
func (c *Controller) OnSchedulerEvent(s mesos.Scheduler, event msg.Event)
func (*Controller) Ping ¶ added in v0.0.7
func (c *Controller) Ping() Pong
func (*Controller) Pipeline ¶
func (c *Controller) Pipeline(w http.ResponseWriter, r *http.Request)
func (*Controller) Pipelines ¶
func (c *Controller) Pipelines(w http.ResponseWriter, r *http.Request)
func (*Controller) Routes ¶
func (c *Controller) Routes() http.Handler
func (*Controller) Run ¶
func (c *Controller) Run() error
func (*Controller) Serve ¶
func (c *Controller) Serve()
func (*Controller) SetVersion ¶ added in v0.0.7
func (c *Controller) SetVersion(v string)
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown()
func (*Controller) StatusPing ¶ added in v0.0.7
func (c *Controller) StatusPing(w http.ResponseWriter, r *http.Request)
func (*Controller) UpdatePipeline ¶
func (c *Controller) UpdatePipeline(w http.ResponseWriter, r *http.Request)
type ControllerConfig ¶
type ControllerConfig struct {
Hostname string
Port int
Zk struct {
Uri string
Hosts []string
Path string
}
Scheduler mesos.SchedulerConfig
Autoscaling struct {
Provider string
DefaultRole string
}
Vault struct {
Addr string
GatekeeperAddr string
Token string
}
Aws struct {
AccessKey string
SecretKey string
AsgMap []string
Regions []string
}
}
type VaultError ¶
func (VaultError) Error ¶
func (e VaultError) Error() string
type VaultSecurityError ¶
type VaultSecurityError error
type VaultServerError ¶
type VaultServerError error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.