mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00

* Added support for system service * Enabled linting on the varlinkapi source, needed to support V2 service command * Added support for PODMAN_SOCKET Skip linting deprecated code Rather than introduce bugs by correcting deprecated code, linting the code is being skipped. Code that is being ported into V2 is being checked. Signed-off-by: Jhon Honce <jhonce@redhat.com>
23 lines
645 B
Go
23 lines
645 B
Go
package tunnel
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
|
|
"github.com/containers/libpod/libpod/define"
|
|
"github.com/containers/libpod/pkg/bindings/system"
|
|
"github.com/containers/libpod/pkg/domain/entities"
|
|
)
|
|
|
|
func (ic *ContainerEngine) Info(ctx context.Context) (*define.Info, error) {
|
|
return system.Info(ic.ClientCxt)
|
|
}
|
|
|
|
func (ic *ContainerEngine) RestService(_ context.Context, _ entities.ServiceOptions) error {
|
|
panic(errors.New("rest service is not supported when tunneling"))
|
|
}
|
|
|
|
func (ic *ContainerEngine) VarlinkService(_ context.Context, _ entities.ServiceOptions) error {
|
|
panic(errors.New("varlink service is not supported when tunneling"))
|
|
}
|