Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 442 Bytes
package openstack
import "fmt"
type Image struct {
name string
id string
client imageServiceClient
}
func NewImage(name string, id string, client imageServiceClient) Image {
return Image{
name: fmt.Sprintf("%s %s", name, id),
id: id,
client: client,
}
}
func (i Image) Delete() error {
return i.client.Delete(i.id)
}
func (i Image) Name() string {
return i.name
}
func (Image) Type() string {
return "Image"
}
You can’t perform that action at this time.