summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/util.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-08-02 08:58:59 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-06 14:49:11 +0000
commitbd9d3a8fa5843dca49a4903d66f603f678ed0fa5 (patch)
treed5122665394c94133530e0cbc3ee783fb0441839 /pkg/varlinkapi/util.go
parentee89bc46eb4d27176977174d08893188b13228b7 (diff)
downloadpodman-bd9d3a8fa5843dca49a4903d66f603f678ed0fa5.tar.gz
podman-bd9d3a8fa5843dca49a4903d66f603f678ed0fa5.tar.bz2
podman-bd9d3a8fa5843dca49a4903d66f603f678ed0fa5.zip
Rename varlink socket and interface
io.projectatomic.podman -> io.podman Signed-off-by: baude <bbaude@redhat.com> Closes: #1204 Approved by: mheon
Diffstat (limited to 'pkg/varlinkapi/util.go')
-rw-r--r--pkg/varlinkapi/util.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/varlinkapi/util.go b/pkg/varlinkapi/util.go
index ad5c8c19d..667c09562 100644
--- a/pkg/varlinkapi/util.go
+++ b/pkg/varlinkapi/util.go
@@ -15,15 +15,15 @@ func getContext() context.Context {
return context.TODO()
}
-func makeListContainer(containerID string, batchInfo batchcontainer.BatchContainerStruct) ioprojectatomicpodman.ListContainerData {
+func makeListContainer(containerID string, batchInfo batchcontainer.BatchContainerStruct) iopodman.ListContainerData {
var (
- mounts []ioprojectatomicpodman.ContainerMount
- ports []ioprojectatomicpodman.ContainerPortMappings
+ mounts []iopodman.ContainerMount
+ ports []iopodman.ContainerPortMappings
)
ns := batchcontainer.GetNamespaces(batchInfo.Pid)
for _, mount := range batchInfo.ConConfig.Spec.Mounts {
- m := ioprojectatomicpodman.ContainerMount{
+ m := iopodman.ContainerMount{
Destination: mount.Destination,
Type: mount.Type,
Source: mount.Source,
@@ -33,7 +33,7 @@ func makeListContainer(containerID string, batchInfo batchcontainer.BatchContain
}
for _, pm := range batchInfo.ConConfig.PortMappings {
- p := ioprojectatomicpodman.ContainerPortMappings{
+ p := iopodman.ContainerPortMappings{
Host_port: strconv.Itoa(int(pm.HostPort)),
Host_ip: pm.HostIP,
Protocol: pm.Protocol,
@@ -45,7 +45,7 @@ func makeListContainer(containerID string, batchInfo batchcontainer.BatchContain
// If we find this needs to be done for other container endpoints, we should
// convert this to a separate function or a generic map from struct function.
- namespace := ioprojectatomicpodman.ContainerNameSpace{
+ namespace := iopodman.ContainerNameSpace{
User: ns.User,
Uts: ns.UTS,
Pidns: ns.PIDNS,
@@ -56,7 +56,7 @@ func makeListContainer(containerID string, batchInfo batchcontainer.BatchContain
Ipc: ns.IPC,
}
- lc := ioprojectatomicpodman.ListContainerData{
+ lc := iopodman.ListContainerData{
Id: containerID,
Image: batchInfo.ConConfig.RootfsImageName,
Imageid: batchInfo.ConConfig.RootfsImageID,