summaryrefslogtreecommitdiff
path: root/libpod/boltdb_state_unsupported.go
blob: f6faaa37826140a649b82a4f4ed255cfa222580f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// +build !linux

package libpod

import (
	"github.com/boltdb/bolt"
	"github.com/sirupsen/logrus"
)

// parseNetNSBoltData sets ctr.state.NetNS, if any, from netNSBytes.
// Returns true if the data is valid.
func parseNetNSBoltData(ctr *Container, netNSBytes []byte) bool {
	if netNSBytes != nil {
		logrus.Errorf("error loading %s: network namespaces are not supported on this platform", ctr.ID())
		return false
	}
	return true
}

func (s *BoltState) getContainerFromDB(id []byte, ctr *Container, ctrsBkt *bolt.Bucket) error {
	return ErrNotImplemented
}