Documentation
¶
Index ¶
- Variables
- type CommandRunner
- type EnvGetter
- type FileOpener
- type Options
- type ProcessFinder
- type State
- type ZeroDownTime
- func (z *ZeroDownTime) Close(ctx context.Context) error
- func (z *ZeroDownTime) GetPID() (int, error)
- func (z *ZeroDownTime) IsUpgraded() bool
- func (z *ZeroDownTime) KillProcess(ctx context.Context, pid int, removePIDFile bool) error
- func (z *ZeroDownTime) Listener(ctx context.Context, network string, address string, cfg *net.ListenConfig) (net.Listener, error)
- func (z *ZeroDownTime) RemoveUpgradeSock() error
- func (z *ZeroDownTime) Upgrade() error
- func (z *ZeroDownTime) WaitForUpgrade(ctx context.Context) error
- func (z *ZeroDownTime) WritePID() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKillTimeout = errors.New("process did not terminate within the timeout period")
)
Functions ¶
This section is empty.
Types ¶
type CommandRunner ¶ added in v0.3.0
type ProcessFinder ¶ added in v0.3.0
type ZeroDownTime ¶
type ZeroDownTime struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts Options) *ZeroDownTime
func (*ZeroDownTime) GetPID ¶ added in v0.2.0
func (z *ZeroDownTime) GetPID() (int, error)
func (*ZeroDownTime) IsUpgraded ¶
func (z *ZeroDownTime) IsUpgraded() bool
func (*ZeroDownTime) KillProcess ¶ added in v0.2.0
func (*ZeroDownTime) Listener ¶
func (z *ZeroDownTime) Listener(ctx context.Context, network string, address string, cfg *net.ListenConfig) (net.Listener, error)
func (*ZeroDownTime) RemoveUpgradeSock ¶ added in v0.2.0
func (z *ZeroDownTime) RemoveUpgradeSock() error
func (*ZeroDownTime) Upgrade ¶
func (z *ZeroDownTime) Upgrade() error
func (*ZeroDownTime) WaitForUpgrade ¶
func (z *ZeroDownTime) WaitForUpgrade(ctx context.Context) error
func (*ZeroDownTime) WritePID ¶ added in v0.2.0
func (z *ZeroDownTime) WritePID() error
Click to show internal directories.
Click to hide internal directories.