Documentation ¶
Index ¶
- type TmpDocker
- func (TmpDocker) CaddyModule() caddy.ModuleInfo
- func (tmpd TmpDocker) GetRunning(ctx context.Context, serviceID string) (count int, err error)
- func (tmpd TmpDocker) GetTmpService(ctx context.Context) (*TmpService, error)
- func (tmpd *TmpDocker) Provision(ctx caddy.Context) error
- func (tmpd TmpDocker) ScaleDockerService(ctx context.Context) error
- func (tmpd *TmpDocker) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) (err error)
- func (tmpd *TmpDocker) StartChecker(ctx context.Context)
- func (tmpd TmpDocker) StopDockerService(ctx context.Context) error
- func (tmpd *TmpDocker) Validate() (err error)
- type TmpService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TmpDocker ¶
type TmpDocker struct { ServiceName string `json:"service_name,omitempty"` KeepAlive caddy.Duration `json:"keep_alive,omitempty"` ScaleTimeout caddy.Duration `json:"scale_timeout,omitempty"` DockerHost string `json:"docker_host,omitempty"` // contains filtered or unexported fields }
TmpDocker is a middleware which can rewrite HTTP requests.
func (TmpDocker) CaddyModule ¶
func (TmpDocker) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (TmpDocker) GetRunning ¶
GetRunning node length
func (TmpDocker) GetTmpService ¶
func (tmpd TmpDocker) GetTmpService(ctx context.Context) (*TmpService, error)
GetTmpService v
func (TmpDocker) ScaleDockerService ¶
ScaleDockerService use docker
func (*TmpDocker) StartChecker ¶ added in v1.3.1
func (TmpDocker) StopDockerService ¶
StopDockerService use docker
type TmpService ¶
type TmpService struct { ID string Replicas uint64 ServiceSpec swarm.ServiceSpec Version swarm.Version }
TmpService v
Click to show internal directories.
Click to hide internal directories.