From bdcd2345eecdb356b69922cc39fb2e45ff20ebd7 Mon Sep 17 00:00:00 2001 From: Toma Puljak Date: Wed, 21 Feb 2024 08:11:12 +0000 Subject: [PATCH] test initialize with empty struct! --- go.mod | 2 +- go.sum | 4 ++-- plugin/plugin.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index c5b818d..73983c6 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module provisioner_plugin go 1.21.6 require ( - github.com/daytonaio/daytona v0.0.1-alpha.16 + github.com/daytonaio/daytona v0.0.1-alpha.17 github.com/docker/docker v24.0.7+incompatible github.com/hashicorp/go-hclog v1.5.0 github.com/hashicorp/go-plugin v1.6.0 diff --git a/go.sum b/go.sum index bfd5d52..d25c2b8 100644 --- a/go.sum +++ b/go.sum @@ -8,8 +8,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/daytonaio/daytona v0.0.1-alpha.16 h1:ARTjHD1A5TZPS+XczjJMxuHsLRnq9oeGEoU7nDvi/Es= -github.com/daytonaio/daytona v0.0.1-alpha.16/go.mod h1:M8xXK5gqr2KOBEc0cLrVcnIkeRAyrjOWlOJDnfyr4P4= +github.com/daytonaio/daytona v0.0.1-alpha.17 h1:fGHkSzPvm6nYCcoBNkEDPb2UINgOKj8gUpGyLpcljqA= +github.com/daytonaio/daytona v0.0.1-alpha.17/go.mod h1:M8xXK5gqr2KOBEc0cLrVcnIkeRAyrjOWlOJDnfyr4P4= github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= diff --git a/plugin/plugin.go b/plugin/plugin.go index 4270703..b8ccedd 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -26,13 +26,13 @@ type workspaceMetadata struct { NetworkId string } -func (p *DockerProvisioner) Initialize(req provisioner.InitializeProvisionerRequest) (interface{}, error) { +func (p *DockerProvisioner) Initialize(req provisioner.InitializeProvisionerRequest) (provisioner.Empty, error) { p.BasePath = &req.BasePath p.ServerDownloadUrl = &req.ServerDownloadUrl p.ServerVersion = &req.ServerVersion p.ServerUrl = &req.ServerUrl p.ServerApiUrl = &req.ServerApiUrl - return new(interface{}), nil + return provisioner.Empty{}, nil } func (p DockerProvisioner) GetInfo() (provisioner.ProvisionerInfo, error) {