package action

import (
	boshcomp "github.com/cloudfoundry/bosh-agent/agent/compiler"
	boshcrypto "github.com/cloudfoundry/bosh-utils/crypto"
)

type CompilePackageWithSignedURLRequest struct {
	SignedURL string `json:"signed_url"`

	MultiDigest boshcrypto.MultipleDigest `json:"multi_digest"`
	Name        string                    `json:"name"`
	Version     string                    `json:"version"`
	Deps        boshcomp.Dependencies     `json:"deps"`
}

type CompilePackageWithSignedURLResponse struct {
	SHA1Digest string `json:"sha1_digest"`
}

type CompilePackageWithSignedURL struct{}

func (a CompilePackageWithSignedURL) Run(request CompilePackageWithSignedURLRequest) (CompilePackageWithSignedURLResponse, error) {
	return CompilePackageWithSignedURLResponse{}, nil
}

package action

import (
	boshcomp "github.com/cloudfoundry/bosh-agent/agent/compiler"
	boshcrypto "github.com/cloudfoundry/bosh-utils/crypto"
)

type CompilePackageWithSignedURLRequest struct {
	PackageGetSignedURL string `json:"package_get_signed_url"`
	UploadSignedUrl     string `json:"upload_signed_url"`

	MultiDigest boshcrypto.MultipleDigest `json:"multi_digest"`
	Name        string                    `json:"name"`
	Version     string                    `json:"version"`
	Deps        boshcomp.Dependencies     `json:"deps"`
}

type CompilePackageWithSignedURLResponse struct {
	SHA1Digest string `json:"sha1_digest"`
}

type CompilePackageWithSignedURL struct{}

func (a CompilePackageWithSignedURL) Run(request CompilePackageWithSignedURLRequest) (CompilePackageWithSignedURLResponse, error) {
	return CompilePackageWithSignedURLResponse{}, nil
}

Fix missing signedUrl for uploading compiled pkg
Fix missing signedUrl for uploading compiled pkg

* We expect 2 signed urls from the director, one for
downloading the source uncompiled package, and one
for uploading the compiled package.

[#167582819]

Co-authored-by: Chris Tarazi <52172d1cc353fd06218578cc1e854d12546b9ed2@pivotal.io>
