demo, tui look and feel (#56, #67)

This commit is contained in:
Michael Quigley 2022-09-21 22:24:15 -04:00
parent 1528025863
commit 2bcad71037
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -186,14 +186,14 @@ func (self *httpBackendCommand) run(_ *cobra.Command, args []string) {
} }
func (self *httpBackendCommand) destroy(id string, cfg *backend.Config, zrok *rest_client_zrok.Zrok, auth runtime.ClientAuthInfoWriter) { func (self *httpBackendCommand) destroy(id string, cfg *backend.Config, zrok *rest_client_zrok.Zrok, auth runtime.ClientAuthInfoWriter) {
logrus.Infof("shutting down '%v'", cfg.Service) logrus.Debugf("shutting down '%v'", cfg.Service)
req := tunnel.NewUntunnelParams() req := tunnel.NewUntunnelParams()
req.Body = &rest_model_zrok.UntunnelRequest{ req.Body = &rest_model_zrok.UntunnelRequest{
ZitiIdentityID: id, ZitiIdentityID: id,
Service: cfg.Service, Service: cfg.Service,
} }
if _, err := zrok.Tunnel.Untunnel(req, auth); err == nil { if _, err := zrok.Tunnel.Untunnel(req, auth); err == nil {
logrus.Infof("shutdown complete") logrus.Debugf("shutdown complete")
} else { } else {
logrus.Errorf("error shutting down: %v", err) logrus.Errorf("error shutting down: %v", err)
} }