2013-06-17 07:01:42 -04:00
|
|
|
package digitalocean
|
|
|
|
|
|
|
|
import (
|
2013-06-18 19:01:14 -04:00
|
|
|
"errors"
|
2013-06-17 07:01:42 -04:00
|
|
|
"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)
|
|
|
|
}
|
2013-06-18 19:01:14 -04:00
|
|
|
|
|
|
|
func (a *Artifact) Destroy() error {
|
|
|
|
return errors.New("not implemented yet")
|
|
|
|
}
|