mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
feat: Add uc service start/stop commands (#195)
* feat: Add `uc service start/stop` commands * Add nolint:dupl for service start/stop commands Co-authored-by: Pasha Sviderski <me@psviderski.name> * Add --signal and --timeout options to uc service stop * Check whether service stop --timeout flag was used to set options properly --------- Co-authored-by: Pasha Sviderski <me@psviderski.name>
This commit is contained in:
1 parent
4b4b721d49
commit
a9a720f3c3
5 files changed
+192
No files matched your search
@@ -48,6 +48,8 @@ type ServiceClient interface {
|
||||
RunService(ctx context.Context, spec ServiceSpec) (RunServiceResponse, error)
|
||||
InspectService(ctx context.Context, id string) (Service, error)
|
||||
RemoveService(ctx context.Context, id string) error
|
||||
StopService(ctx context.Context, id string, opts container.StopOptions) error
|
||||
StartService(ctx context.Context, id string) error
|
||||
}
|
||||
|
||||
type VolumeClient interface {
|
||||
|
||||
Reference in new issue
Block a user