38 lines
623 B
Go
Raw Normal View History

2016-06-29 04:35:41 +02:00
package profitbricks
import (
"fmt"
)
type Artifact struct {
snapshotData string
// StateData should store data such as GeneratedData
// to be shared with post-processors
StateData map[string]interface{}
2016-06-29 04:35:41 +02:00
}
func (*Artifact) BuilderId() string {
return BuilderId
}
func (a *Artifact) Files() []string {
return []string{}
}
func (*Artifact) Id() string {
return "Null"
}
func (a *Artifact) String() string {
return fmt.Sprintf("A snapshot was created: '%v'", a.snapshotData)
}
func (a *Artifact) State(name string) interface{} {
return a.StateData[name]
2016-06-29 04:35:41 +02:00
}
func (a *Artifact) Destroy() error {
return nil
}