github.com/bshelton229/agent@v3.5.4+incompatible/agent/uploader.go (about) 1 package agent 2 3 import ( 4 "github.com/buildkite/agent/api" 5 ) 6 7 type Uploader interface { 8 // Called before anything happens. 9 Setup(string, bool) error 10 11 // The Artifact.URL property is populated with what ever is returned 12 // from this method prior to uploading. 13 URL(*api.Artifact) string 14 15 // The actual uploading of the file 16 Upload(*api.Artifact) error 17 }