images

package
v0.0.0-...-474c82f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResult

type GetResult struct {
	gophercloud.Result
}

GetResult represents the result of a get operation.

func Get

func Get(client *gophercloud.ServiceClient) GetResult

Get will retrieve the volume type with the provided ID. To extract the volume type from the result, call the Extract method on the GetResult.

func (GetResult) Extract

func (r GetResult) Extract() ([]Image, error)

Extract will get the Volume object out of the commonResult object.

type Image

type Image struct {
	Checksum        string            `json:"checksum" mapstructure:"checksum"`
	ContainerFormat string            `json:"container_format" mapstructure:"container_format"`
	CreatedAt       string            `json:"created_at" mapstructure:"created_at"`
	Deleted         bool              `json:"deleted" mapstructure:"deleted"`
	DeletedAt       string            `json:"deleted_at" mapstructure:"deleted_at"`
	DiskFormat      string            `json:"disk_format" mapstructure:"disk_format"`
	ID              string            `json:"id" mapstructure:"id"`
	IsPublic        bool              `json:"is_public" mapstructure:"is_public"`
	MinDisk         int               `json:"min_disk" mapstructure:"min_disk"`
	MinRam          int               `json:"min_ram" mapstructure:"min_ram"`
	Name            string            `json:"name" mapstructure:"name"`
	Owner           string            `json:"owner" mapstructure:"owner"`
	Properties      map[string]string `json:"properties" mapstructure:"properties"`
	Size            int               `json:"size" mapstructure:"size"`
	Status          string            `json:"status" mapstructure:"status"`
	UpdatedAt       string            `json:"updated_at" mapstructure:"updated_at"`
	VirtualSize     string            `json:"virtual_size" mapstructure:"virtual_size"`
}

Image represents an Glance image

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL