aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/system.go
blob: 7c7a55c05f7593a67953ffec7e9d65536733552a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"))
}