converter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// APIVersion ...
	APIVersion = "v3"
	// Endpoint ...
	Endpoint = "http://127.0.0.1:8777/v3"
)

Functions

func AddExtraReq

func AddExtraReq(cinderReq *AddExtraReqSpec) *model.CustomPropertiesSpec

AddExtraReq ...

func CinderExtraToOpenSDSExtra

func CinderExtraToOpenSDSExtra(typeExtra *ExtraSpec) *model.CustomPropertiesSpec

CinderExtraToOpenSDSExtra ...

func CreateAttachmentReq

func CreateAttachmentReq(cinderReq *CreateAttachmentReqSpec, client *client.Client) (*model.VolumeAttachmentSpec, error)

CreateAttachmentReq ...

func CreateSnapshotReq

func CreateSnapshotReq(cinderReq *CreateSnapshotReqSpec) (*model.VolumeSnapshotSpec, error)

CreateSnapshotReq ...

func CreateTypeReq

func CreateTypeReq(cinderReq *CreateTypeReqSpec) (*model.ProfileSpec, error)

CreateTypeReq ...

func CreateVolumeReq

func CreateVolumeReq(cinderReq *CreateVolumeReqSpec) (*model.VolumeSpec, error)

CreateVolumeReq ...

func InitializeConnectionReq

func InitializeConnectionReq(initializeConnectionReq *InitializeConnectionReqSpec, volumeID string, client *client.Client) (*model.VolumeAttachmentSpec, error)

InitializeConnectionReq ...

func UpdateAttachmentReq

func UpdateAttachmentReq(cinderReq *UpdateAttachmentReqSpec) *model.VolumeAttachmentSpec

UpdateAttachmentReq ...

func UpdateExtraReq

func UpdateExtraReq(reqkey string, cinderReq *UpdateExtraReqSpec) (*model.CustomPropertiesSpec, error)

UpdateExtraReq ...

func UpdateSnapshotReq

func UpdateSnapshotReq(cinderSnapshot *UpdateSnapshotReqSpec) *model.VolumeSnapshotSpec

UpdateSnapshotReq ...

func UpdateTypeReq

func UpdateTypeReq(cinderReq *UpdateTypeReqSpec) (*model.ProfileSpec, error)

UpdateTypeReq ...

func UpdateVolumeReq

func UpdateVolumeReq(cinderReq *UpdateVolumeReqSpec) (*model.VolumeSpec, error)

UpdateVolumeReq ...

Types

type AddExtraReqSpec

type AddExtraReqSpec struct {
	Extras ExtraSpec `json:"extra_specs"`
}

AddExtraReqSpec ...

type AddExtraRespSpec

type AddExtraRespSpec struct {
	Extras ExtraSpec `json:"extra_specs"`
}

AddExtraRespSpec ...

func AddExtraResp

func AddExtraResp(profileExtras *model.CustomPropertiesSpec) *AddExtraRespSpec

AddExtraResp ...

type ConnectionInfo

type ConnectionInfo struct {
	DriverVolumeType string                 `json:"driver_volume_type,omitempty"`
	ConnectionData   map[string]interface{} `json:"data,omitempty"`
}

ConnectionInfo ...

type Connector

type Connector struct {
	Initiator  string `json:"initiator,omitempty"`
	IP         string `json:"ip,omitempty"`
	Platform   string `json:"platform,omitempty"`
	Host       string `json:"host,omitempty"`
	OsType     string `json:"os_type,omitempty"`
	Multipath  bool   `json:"multipath,omitempty"`
	Mountpoint string `json:"mountpoint,omitempty"`
	Mode       string `json:"mode,omitempty"`
}

Connector ...

type CreateAttachmentReqSpec

type CreateAttachmentReqSpec struct {
	Attachment CreateReqAttachment `json:"attachment"`
}

CreateAttachmentReqSpec ...

type CreateAttachmentRespSpec

type CreateAttachmentRespSpec struct {
	Attachment CreateRespAttachment `json:"attachment"`
}

CreateAttachmentRespSpec ...

func CreateAttachmentResp

func CreateAttachmentResp(attachment *model.VolumeAttachmentSpec) *CreateAttachmentRespSpec

CreateAttachmentResp ...

type CreateReqAttachment

type CreateReqAttachment struct {
	InstanceUuID string    `json:"instance_uuid"`
	Connector    Connector `json:"connector,omitempty"`
	VolumeUuID   string    `json:"volume_uuid"`
}

CreateReqAttachment ...

type CreateReqSnapshot

type CreateReqSnapshot struct {
	VolumeID    string            `json:"volume_id"`
	Name        string            `json:"name"`
	Description string            `json:"description,omitempty"`
	Force       bool              `json:"force,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty"`
}

CreateReqSnapshot ...

type CreateReqVolume

type CreateReqVolume struct {
	Size               int64             `json:"size"`
	AvailabilityZone   string            `json:"availability_zone,omitempty"`
	SourceVolID        string            `json:"source_volid,omitempty"`
	Description        string            `json:"description,omitempty"`
	Multiattach        bool              `json:"multiattach,omitempty"`
	SnapshotID         string            `json:"snapshot_id,omitempty"`
	BackupID           string            `json:"backup_id,omitempty"`
	Name               string            `json:"name"`
	ImageRef           string            `json:"imageRef,omitempty"`
	VolumeType         string            `json:"volume_type,omitempty"`
	Metadata           map[string]string `json:"metadata,omitempty"`
	ConsistencygroupID string            `json:"consistencygroup_id,omitempty"`
}

CreateReqVolume ...

type CreateReqVolumeType

type CreateReqVolumeType struct {
	Name           string    `json:"name"`
	AccessIsPublic bool      `json:"os-volume-type-access:is_public,omitempty"`
	Description    string    `json:"description,omitempty"`
	Extras         ExtraSpec `json:"extra_specs,omitempty"`
}

CreateReqVolumeType ...

type CreateRespAttachment

type CreateRespAttachment struct {
	Status         string `json:"status"`
	DetachedAt     string `json:"detached_at,omitempty"`
	ConnectionInfo `json:"connection_info"`
	AttachedAt     string `json:"attached_at,omitempty"`
	AttachMode     string `json:"attach_mode,omitempty"`
	Instance       string `json:"instance,omitempty"`
	VolumeID       string `json:"volume_id"`
	ID             string `json:"id"`
}

CreateRespAttachment ...

type CreateRespSnapshot

type CreateRespSnapshot struct {
	Status      string            `json:"status"`
	Description string            `json:"description"`
	CreatedAt   string            `json:"created_at"`
	Name        string            `json:"name"`
	UserID      string            `json:"user_id"`
	VolumeID    string            `json:"volume_id"`
	Metadata    map[string]string `json:"metadata,omitempty"`
	ID          string            `json:"id"`
	Size        int64             `json:"size"`
	UpdatedAt   string            `json:"updated_at"`
}

CreateRespSnapshot ...

type CreateRespVolume

type CreateRespVolume struct {
	MigrationStatus    string            `json:"migration_status,omitempty"`
	Attachments        []RespAttachment  `json:"attachments"`
	Links              []Link            `json:"links,omitempty"`
	AvailabilityZone   string            `json:"availability_zone,omitempty"`
	Encrypted          bool              `json:"encrypted,omitempty"`
	UpdatedAt          string            `json:"updated_at,omitempty"`
	ReplicationStatus  string            `json:"replication_status,omitempty"`
	SnapshotID         string            `json:"snapshot_id,omitempty"`
	ID                 string            `json:"id,omitempty"`
	Size               int64             `json:"size,omitempty"`
	UserID             string            `json:"user_id,omitempty"`
	Metadata           map[string]string `json:"metadata"`
	Status             string            `json:"status,omitempty"`
	Description        string            `json:"description,omitempty"`
	Multiattach        bool              `json:"multiattach,omitempty"`
	SourceVolID        string            `json:"source_volid,omitempty"`
	ConsistencygroupID string            `json:"consistencygroup_id,omitempty"`
	Name               string            `json:"name,omitempty"`
	Bootable           bool              `json:"bootable,omitempty"`
	CreatedAt          string            `json:"created_at,omitempty"`
	VolumeType         string            `json:"volume_type,omitempty"`
}

CreateRespVolume ...

type CreateRespVolumeType

type CreateRespVolumeType struct {
	IsPublic       bool      `json:"is_public,omitempty"`
	Extras         ExtraSpec `json:"extra_specs,omitempty"`
	Description    string    `json:"description,omitempty"`
	Name           string    `json:"name,omitempty"`
	ID             string    `json:"id,omitempty"`
	AccessIsPublic bool      `json:"os-volume-type-access:is_public,omitempty"`
}

CreateRespVolumeType ...

type CreateSnapshotReqSpec

type CreateSnapshotReqSpec struct {
	Snapshot CreateReqSnapshot `json:"snapshot"`
}

CreateSnapshotReqSpec ...

type CreateSnapshotRespSpec

type CreateSnapshotRespSpec struct {
	Snapshot CreateRespSnapshot `json:"snapshot,omitempty"`
}

CreateSnapshotRespSpec ...

func CreateSnapshotResp

func CreateSnapshotResp(snapshot *model.VolumeSnapshotSpec) *CreateSnapshotRespSpec

CreateSnapshotResp ...

type CreateTypeReqSpec

type CreateTypeReqSpec struct {
	VolumeType CreateReqVolumeType `json:"volume_type,omitempty"`
}

CreateTypeReqSpec ...

type CreateTypeRespSpec

type CreateTypeRespSpec struct {
	VolumeType CreateRespVolumeType `json:"volume_type,omitempty"`
}

CreateTypeRespSpec ...

func CreateTypeResp

func CreateTypeResp(profile *model.ProfileSpec) *CreateTypeRespSpec

CreateTypeResp ...

type CreateVolumeReqSpec

type CreateVolumeReqSpec struct {
	Volume         CreateReqVolume `json:"volume"`
	SchedulerHints SchedulerHints  `json:"OS-SCH-HNT:scheduler_hints,omitempty"`
}

CreateVolumeReqSpec ...

type CreateVolumeRespSpec

type CreateVolumeRespSpec struct {
	Volume CreateRespVolume `json:"volume,omitempty"`
}

CreateVolumeRespSpec ...

func CreateVolumeResp

func CreateVolumeResp(volume *model.VolumeSpec) *CreateVolumeRespSpec

CreateVolumeResp ...

type ExtraSpec

type ExtraSpec map[string]interface{}

ExtraSpec ...

func OpenSDSExtraToCinderExtra

func OpenSDSExtraToCinderExtra(profileExtras *model.CustomPropertiesSpec) *ExtraSpec

OpenSDSExtraToCinderExtra ...

type InitializeConnection

type InitializeConnection struct {
	Connector InitializeConnector `json:"connector"`
}

InitializeConnection ...

type InitializeConnectionInfo

type InitializeConnectionInfo struct {
	DriverVolumeType string                 `json:"driver_volume_type"`
	Data             map[string]interface{} `json:"data"`
}

InitializeConnectionInfo ...

type InitializeConnectionReqSpec

type InitializeConnectionReqSpec struct {
	InitializeConnection InitializeConnection `json:"os-initialize_connection"`
}

InitializeConnectionReqSpec ...

type InitializeConnectionRespSpec

type InitializeConnectionRespSpec struct {
	ConnectionInfo InitializeConnectionInfo `json:"connection_info"`
}

InitializeConnectionRespSpec ...

func InitializeConnectionResp

func InitializeConnectionResp(attachment *model.VolumeAttachmentSpec) *InitializeConnectionRespSpec

InitializeConnectionResp ...

type InitializeConnector

type InitializeConnector struct {
	Platform      string `json:"platform"`
	Host          string `json:"host"`
	DoLocalAttach bool   `json:"do_local_attach"`
	IP            string `json:"ip"`
	OsType        string `json:"os_type"`
	Multipath     bool   `json:"multipath"`
	Initiator     string `json:"initiator"`
}

InitializeConnector ...

type Link struct {
	Href string `json:"href,omitempty"`
	Rel  string `json:"rel,omitempty"`
}

Link ...

type ListAllAPIVersions

type ListAllAPIVersions struct {
	Status     string            `json:"status"`
	Updated    string            `json:"updated"`
	Links      []VersionLink     `json:"links"`
	MinVersion string            `json:"min_version,"`
	Version    string            `json:"version"`
	MediaTypes map[string]string `json:"media-types"`
	ID         string            `json:"id"`
}

ListAllAPIVersions ...

type ListAllAPIVersionsRespSpec

type ListAllAPIVersionsRespSpec struct {
	Versions []ListAllAPIVersions `json:"versions"`
}

ListAllAPIVersionsRespSpec ...

func ListAllAPIVersionsResp

func ListAllAPIVersionsResp(versions []*model.VersionSpec) *ListAllAPIVersionsRespSpec

ListAllAPIVersionsResp ...

type ListAttachmentsDetailsRespSpec

type ListAttachmentsDetailsRespSpec struct {
	Attachments []ListRespAttachmentDetails `json:"attachments"`
}

ListAttachmentsDetailsRespSpec ...

func ListAttachmentsDetailsResp

func ListAttachmentsDetailsResp(attachments []*model.VolumeAttachmentSpec) *ListAttachmentsDetailsRespSpec

ListAttachmentsDetailsResp ...

type ListAttachmentsRespSpec

type ListAttachmentsRespSpec struct {
	Attachments []ListRespAttachment `json:"attachments"`
}

ListAttachmentsRespSpec ...

func ListAttachmentsResp

func ListAttachmentsResp(attachments []*model.VolumeAttachmentSpec) *ListAttachmentsRespSpec

ListAttachmentsResp ...

type ListRespAttachment

type ListRespAttachment struct {
	Status   string `json:"status"`
	Instance string `json:"instance,omitempty"`
	VolumeID string `json:"volume_id"`
	ID       string `json:"id"`
}

ListRespAttachment ...

type ListRespAttachmentDetails

type ListRespAttachmentDetails struct {
	Status         string         `json:"status"`
	DetachedAt     string         `json:"detached_at,omitempty"`
	ConnectionInfo ConnectionInfo `json:"connection_info"`
	AttachedAt     string         `json:"attached_at,omitempty"`
	AttachMode     string         `json:"attach_mode,omitempty"`
	Instance       string         `json:"instance,omitempty"`
	VolumeID       string         `json:"volume_id"`
	ID             string         `json:"id"`
}

ListRespAttachmentDetails ...

type ListRespSnapshot

type ListRespSnapshot struct {
	Status      string            `json:"status"`
	Description string            `json:"description"`
	CreatedAt   string            `json:"created_at"`
	Name        string            `json:"name"`
	UserID      string            `json:"user_id"`
	VolumeID    string            `json:"volume_id"`
	Metadata    map[string]string `json:"metadata,omitempty"`
	ID          string            `json:"id"`
	Size        int64             `json:"size"`
}

ListRespSnapshot ...

type ListRespSnapshotDetails

type ListRespSnapshotDetails struct {
	Status      string            `json:"status"`
	Progress    int64             `json:"os-extended-snapshot-attributes:progress,omitempty"`
	Description string            `json:"description"`
	CreatedAt   string            `json:"created_at"`
	Name        string            `json:"name"`
	UserID      string            `json:"user_id"`
	VolumeID    string            `json:"volume_id"`
	ProjectID   string            `json:"os-extended-snapshot-attributes:project_id,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty"`
	ID          string            `json:"id"`
	Size        int64             `json:"size"`
}

ListRespSnapshotDetails ...

type ListRespVolume

type ListRespVolume struct {
	ID    string `json:"id"`
	Links []Link `json:"links,omitempty"`
	Name  string `json:"name"`
}

ListRespVolume ...

type ListRespVolumeDetails

type ListRespVolumeDetails struct {
	MigrationStatus     string            `json:"migration_status,omitempty"`
	Attachments         []RespAttachment  `json:"attachments"`
	Links               []Link            `json:"links,omitempty"`
	AvailabilityZone    string            `json:"availability_zone,omitempty"`
	Host                string            `json:"os-vol-host-attr:host,omitempty"`
	Encrypted           bool              `json:"encrypted,omitempty"`
	UpdatedAt           string            `json:"updated_at"`
	ReplicationStatus   string            `json:"replication_status,omitempty"`
	SnapshotID          string            `json:"snapshot_id,omitempty"`
	ID                  string            `json:"id"`
	Size                int64             `json:"size"`
	UserID              string            `json:"user_id"`
	TenantID            string            `json:"os-vol-tenant-attr:tenant_id,omitempty"`
	Migstat             string            `json:"os-vol-mig-status-attr:migstat,omitempty"`
	Metadata            map[string]string `json:"metadata"`
	Status              string            `json:"status"`
	VolumeImageMetadata map[string]string `json:"volume_image_metadata,omitempty"`
	Description         string            `json:"description"`
	Multiattach         bool              `json:"multiattach,omitempty"`
	SourceVolID         string            `json:"source_volid,omitempty"`
	ConsistencygroupID  string            `json:"consistencygroup_id,omitempty"`
	NameID              string            `json:"os-vol-mig-status-attr:name_id,omitempty"`
	Name                string            `json:"name"`
	Bootable            bool              `json:"bootable,omitempty"`
	CreatedAt           string            `json:"created_at"`
	VolumeType          string            `json:"volume_type,omitempty"`
}

ListRespVolumeDetails ...

type ListRespVolumeType

type ListRespVolumeType struct {
	Extras         ExtraSpec `json:"extra_specs"`
	Name           string    `json:"name"`
	AccessIsPublic bool      `json:"os-volume-type-access:is_public"`
	IsPublic       bool      `json:"is_public"`
	ID             string    `json:"id"`
	Description    string    `json:"description"`
}

ListRespVolumeType ...

type ListSnapshotsDetailsRespSpec

type ListSnapshotsDetailsRespSpec struct {
	Snapshots []ListRespSnapshotDetails `json:"snapshots"`
	Count     int64                     `json:"count,omitempty"`
}

ListSnapshotsDetailsRespSpec ...

func ListSnapshotsDetailsResp

func ListSnapshotsDetailsResp(snapshots []*model.VolumeSnapshotSpec) *ListSnapshotsDetailsRespSpec

ListSnapshotsDetailsResp ...

type ListSnapshotsRespSpec

type ListSnapshotsRespSpec struct {
	Snapshots []ListRespSnapshot `json:"snapshots"`
	Count     int64              `json:"count,omitempty"`
}

ListSnapshotsRespSpec ...

func ListSnapshotsResp

func ListSnapshotsResp(snapshots []*model.VolumeSnapshotSpec) *ListSnapshotsRespSpec

ListSnapshotsResp ...

type ListTypesRespSpec

type ListTypesRespSpec struct {
	VolumeTypes []ListRespVolumeType `json:"volume_types"`
}

ListTypesRespSpec ...

func ListTypesResp

func ListTypesResp(profiles []*model.ProfileSpec) *ListTypesRespSpec

ListTypesResp ...

type ListVolumesDetailsRespSpec

type ListVolumesDetailsRespSpec struct {
	Volumes []ListRespVolumeDetails `json:"volumes"`
	Count   int64                   `json:"count,omitempty"`
}

ListVolumesDetailsRespSpec ...

func ListVolumesDetailsResp

func ListVolumesDetailsResp(volumes []*model.VolumeSpec) *ListVolumesDetailsRespSpec

ListVolumesDetailsResp ...

type ListVolumesRespSpec

type ListVolumesRespSpec struct {
	Volumes []ListRespVolume `json:"volumes"`
	Count   int64            `json:"count,omitempty"`
}

ListVolumesRespSpec ...

func ListVolumesResp

func ListVolumesResp(volumes []*model.VolumeSpec) *ListVolumesRespSpec

ListVolumesResp ...

type RespAttachment

type RespAttachment struct {
	ID string `json:"id,omitempty"`
}

RespAttachment ...

type SchedulerHints

type SchedulerHints struct {
	SameHost []string `json:"same_host,omitempty"`
}

SchedulerHints ...

type ShowAllExtraRespSpec

type ShowAllExtraRespSpec struct {
	Extras ExtraSpec `json:"extra_specs"`
}

ShowAllExtraRespSpec ...

func ShowAllExtraResp

func ShowAllExtraResp(profileExtras *model.CustomPropertiesSpec) *ShowAllExtraRespSpec

ShowAllExtraResp ...

type ShowAttachmentRespSpec

type ShowAttachmentRespSpec struct {
	VolumeAttachment ShowRespAttachment `json:"attachment,omitempty"`
}

ShowAttachmentRespSpec ...

func ShowAttachmentResp

func ShowAttachmentResp(attachment *model.VolumeAttachmentSpec) *ShowAttachmentRespSpec

ShowAttachmentResp ...

type ShowExtraRespSpec

type ShowExtraRespSpec map[string]interface{}

ShowExtraRespSpec ...

func ShowExtraResp

func ShowExtraResp(reqkey string, profileExtras *model.CustomPropertiesSpec) *ShowExtraRespSpec

ShowExtraResp ...

type ShowRespAttachment

type ShowRespAttachment struct {
	Status         string `json:"status"`
	DetachedAt     string `json:"detached_at,omitempty"`
	ConnectionInfo `json:"connection_info"`
	AttachedAt     string `json:"attached_at,omitempty"`
	AttachMode     string `json:"attach_mode,omitempty"`
	Instance       string `json:"instance,omitempty"`
	VolumeID       string `json:"volume_id"`
	ID             string `json:"id"`
}

ShowRespAttachment ...

type ShowRespSnapshotDetails

type ShowRespSnapshotDetails struct {
	Status      string `json:"status"`
	Description string `json:"description"`
	CreatedAt   string `json:"created_at"`
	Name        string `json:"name"`
	UserID      string `json:"user_id"`
	VolumeID    string `json:"volume_id"`
	Size        int64  `json:"size"`
	ID          string `json:"id"`
}

ShowRespSnapshotDetails ...

type ShowRespVolume

type ShowRespVolume struct {
	MigrationStatus     string            `json:"migration_status,omitempty"`
	Attachments         []RespAttachment  `json:"attachments"`
	Links               []Link            `json:"links,omitempty"`
	AvailabilityZone    string            `json:"availability_zone,omitempty"`
	Host                string            `json:"os-vol-host-attr:host,omitempty"`
	Encrypted           bool              `json:"encrypted,omitempty"`
	UpdatedAt           string            `json:"updated_at"`
	ReplicationStatus   string            `json:"replication_status,omitempty"`
	SnapshotID          string            `json:"snapshot_id"`
	ID                  string            `json:"id"`
	Size                int64             `json:"size"`
	UserID              string            `json:"user_id"`
	TenantID            string            `json:"os-vol-tenant-attr:tenant_id,omitempty"`
	Migstat             string            `json:"os-vol-mig-status-attr:migstat,omitempty"`
	Metadata            map[string]string `json:"metadata"`
	Status              string            `json:"status"`
	VolumeImageMetadata map[string]string `json:"volume_image_metadata"`
	Description         string            `json:"description"`
	Multiattach         bool              `json:"multiattach,omitempty"`
	SourceVolID         string            `json:"source_volid,omitempty"`
	ConsistencygroupID  string            `json:"consistencygroup_id,omitempty"`
	NameID              string            `json:"os-vol-mig-status-attr:name_id,omitempty"`
	Name                string            `json:"name"`
	Bootable            bool              `json:"bootable"`
	CreatedAt           string            `json:"created_at"`
	VolumeType          string            `json:"volume_type,omitempty"`
	ServiceUuID         string            `json:"service_uuid,omitempty"`
	SharedTargets       bool              `json:"shared_targets,omitempty"`
}

ShowRespVolume ...

type ShowRespVolumeType

type ShowRespVolumeType struct {
	IsPublic    bool      `json:"is_public"`
	Extras      ExtraSpec `json:"extra_specs"`
	Description string    `json:"description"`
	Name        string    `json:"name"`
	ID          string    `json:"id"`
}

ShowRespVolumeType ...

type ShowSnapshotDetailsRespSpec

type ShowSnapshotDetailsRespSpec struct {
	Snapshot ShowRespSnapshotDetails `json:"snapshot"`
}

ShowSnapshotDetailsRespSpec ...

func ShowSnapshotDetailsResp

func ShowSnapshotDetailsResp(snapshot *model.VolumeSnapshotSpec) *ShowSnapshotDetailsRespSpec

ShowSnapshotDetailsResp ...

type ShowTypeRespSpec

type ShowTypeRespSpec struct {
	VolumeType ShowRespVolumeType `json:"volume_type"`
}

ShowTypeRespSpec ...

func ShowTypeResp

func ShowTypeResp(profile *model.ProfileSpec) *ShowTypeRespSpec

ShowTypeResp ...

type ShowVolumeRespSpec

type ShowVolumeRespSpec struct {
	Volume ShowRespVolume `json:"volume"`
}

ShowVolumeRespSpec ...

func ShowVolumeResp

func ShowVolumeResp(volume *model.VolumeSpec) *ShowVolumeRespSpec

ShowVolumeResp ...

type UpdateAttachmentReqSpec

type UpdateAttachmentReqSpec struct {
	Attachment UpdateReqAttachment `json:"attachment"`
}

UpdateAttachmentReqSpec ...

type UpdateAttachmentRespSpec

type UpdateAttachmentRespSpec struct {
	Attachment UpdateRespAttachment `json:"attachment"`
}

UpdateAttachmentRespSpec ...

func UpdateAttachmentResp

func UpdateAttachmentResp(attachment *model.VolumeAttachmentSpec) *UpdateAttachmentRespSpec

UpdateAttachmentResp ...

type UpdateExtraReqSpec

type UpdateExtraReqSpec map[string]interface{}

UpdateExtraReqSpec ...

type UpdateExtraRespSpec

type UpdateExtraRespSpec map[string]interface{}

UpdateExtraRespSpec ...

func UpdateExtraResp

func UpdateExtraResp(reqkey string, profileExtras *model.CustomPropertiesSpec) *UpdateExtraRespSpec

UpdateExtraResp ...

type UpdateReqAttachment

type UpdateReqAttachment struct {
	Connector Connector `json:"connector"`
}

UpdateReqAttachment ...

type UpdateReqSnapshot

type UpdateReqSnapshot struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name"`
}

UpdateReqSnapshot ...

type UpdateReqVolume

type UpdateReqVolume struct {
	Description string            `json:"description,omitempty"`
	Name        string            `json:"name,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty"`
}

UpdateReqVolume ...

type UpdateReqVolumeType

type UpdateReqVolumeType struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	IsPublic    bool   `json:"is_public,omitempty"`
}

UpdateReqVolumeType ...

type UpdateRespAttachment

type UpdateRespAttachment struct {
	Status         string `json:"status"`
	DetachedAt     string `json:"detached_at,omitempty"`
	ConnectionInfo `json:"connection_info"`
	AttachedAt     string `json:"attached_at,omitempty"`
	AttachMode     string `json:"attach_mode,omitempty"`
	Instance       string `json:"instance,omitempty"`
	VolumeID       string `json:"volume_id"`
	ID             string `json:"id"`
}

UpdateRespAttachment ...

type UpdateRespSnapshot

type UpdateRespSnapshot struct {
	Status      string `json:"status"`
	Description string `json:"description"`
	CreatedAt   string `json:"created_at"`
	Name        string `json:"name"`
	ID          string `json:"id"`
	Size        int64  `json:"size"`
	VolumeID    string `json:"volume_id"`
	UserID      string `json:"user_id"`
}

UpdateRespSnapshot ...

type UpdateRespVolume

type UpdateRespVolume struct {
	MigrationStatus    string            `json:"migration_status,omitempty"`
	Attachments        []RespAttachment  `json:"attachments"`
	Links              []Link            `json:"links,omitempty"`
	AvailabilityZone   string            `json:"availability_zone,omitempty"`
	Encrypted          bool              `json:"encrypted,omitempty"`
	UpdatedAt          string            `json:"updated_at"`
	ReplicationStatus  string            `json:"replication_status,omitempty"`
	SnapshotID         string            `json:"snapshot_id,omitempty"`
	ID                 string            `json:"id"`
	Size               int64             `json:"size"`
	UserID             string            `json:"user_id"`
	Metadata           map[string]string `json:"metadata"`
	Status             string            `json:"status"`
	Description        string            `json:"description"`
	Multiattach        bool              `json:"multiattach,omitempty"`
	SourceVolID        string            `json:"source_volid,omitempty"`
	ConsistencygroupID string            `json:"consistencygroup_id,omitempty"`
	Name               string            `json:"name"`
	Bootable           bool              `json:"bootable,omitempty"`
	CreatedAt          string            `json:"created_at"`
	VolumeType         string            `json:"volume_type,omitempty"`
}

UpdateRespVolume ...

type UpdateRespVolumeType

type UpdateRespVolumeType struct {
	IsPublic    bool      `json:"is_public"`
	Extras      ExtraSpec `json:"extra_specs"`
	Description string    `json:"description"`
	Name        string    `json:"name"`
	ID          string    `json:"id"`
}

UpdateRespVolumeType ...

type UpdateSnapshotReqSpec

type UpdateSnapshotReqSpec struct {
	Snapshot UpdateReqSnapshot `json:"snapshot"`
}

UpdateSnapshotReqSpec ...

type UpdateSnapshotRespSpec

type UpdateSnapshotRespSpec struct {
	Snapshot UpdateRespSnapshot `json:"snapshot"`
}

UpdateSnapshotRespSpec ...

func UpdateSnapshotResp

func UpdateSnapshotResp(snapshot *model.VolumeSnapshotSpec) *UpdateSnapshotRespSpec

UpdateSnapshotResp ...

type UpdateTypeReqSpec

type UpdateTypeReqSpec struct {
	VolumeType UpdateReqVolumeType `json:"volume_type"`
}

UpdateTypeReqSpec ...

type UpdateTypeRespSpec

type UpdateTypeRespSpec struct {
	VolumeType UpdateRespVolumeType `json:"volume_type"`
}

UpdateTypeRespSpec ...

func UpdateTypeResp

func UpdateTypeResp(profile *model.ProfileSpec) *UpdateTypeRespSpec

UpdateTypeResp ...

type UpdateVolumeReqSpec

type UpdateVolumeReqSpec struct {
	Volume UpdateReqVolume `json:"volume"`
}

UpdateVolumeReqSpec ...

type UpdateVolumeRespSpec

type UpdateVolumeRespSpec struct {
	Volume UpdateRespVolume `json:"volume"`
}

UpdateVolumeRespSpec ...

func UpdateVolumeResp

func UpdateVolumeResp(volume *model.VolumeSpec) *UpdateVolumeRespSpec

UpdateVolumeResp ...

type VersionLink struct {
	Href string `json:"href"`
	Type string `json:"type"`
	Rel  string `json:"rel"`
}

VersionLink ...

Jump to

Keyboard shortcuts

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