28 lines
422 B
Go
28 lines
422 B
Go
package digitalocean
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type Artifact struct {
|
|
// The name of the snapshot
|
|
snapshotName string
|
|
}
|
|
|
|
func (*Artifact) BuilderId() string {
|
|
return BuilderId
|
|
}
|
|
|
|
func (*Artifact) Files() []string {
|
|
// No files with DigitalOcean
|
|
return nil
|
|
}
|
|
|
|
func (a *Artifact) Id() string {
|
|
return a.snapshotName
|
|
}
|
|
|
|
func (a *Artifact) String() string {
|
|
return fmt.Sprintf("A snapshot was created: %v", a.snapshotName)
|
|
}
|