Skip to content

Commit

Permalink
test initialize with empty struct!
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpuljak committed Feb 21, 2024
1 parent 41fb98f commit bdcd234
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 2 additions & 2 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bdcd234

Please sign in to comment.