shareinstances

package
v0.0.0-...-cd80d89 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 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 {
	// contains filtered or unexported fields
}

GetResult contains the response body and error from a Get request.

func Get

func Get(client *gophercloud.ServiceClient, id string) (r GetResult)

func GetServerDetail

func GetServerDetail(client *gophercloud.ServiceClient, id string) (r GetResult)

type ListOpts

type ListOpts struct {
	// The UUID of the project where the share network was created
	ProjectID string `q:"project_id"`
	// The export Location id
	ExportLocationID string `q:"export_location_id"`
	// The export Location path
	ExportLocationPath string `q:"export_location_path"`
}

ListOpts holds options for listing ShareInstances. It is passed to the shareInstances.List function.

func (ListOpts) ToShareInstancesListQuery

func (opts ListOpts) ToShareInstancesListQuery() (string, error)

ToShareInstancesListQuery formats a ListOpts into a query string.

type ListResult

type ListResult struct {
	// contains filtered or unexported fields
}

ListResult contains the response body and error from a Get request.

func List

func List(client *gophercloud.ServiceClient, opts *ListOpts) (r ListResult)

List returns ShareInstances optionally limited by the conditions provided in ListOpts.

type ShareInstances

type ShareInstances struct {
	// The Share Network ID
	ID string `json:"id"`

	Status string `json:"status"`

	ShareID string `json:"share_id"`

	AccessRulesStatus string `json:"access_rules_status"`

	Progress string `json:"progress"`

	AvailabilityZone bool `json:"availability_zone"`

	ReplicaState string `json:"replica_state"`

	ExportLocation string `json:"export_location"`

	ExportLocations []string `json:"export_locations"`

	CastRulesToReadOnly bool `json:"cast_rules_to_readonly"`

	ShareNetworkID string `json:"share_network_id"`

	ShareServerID string `json:"share_server_id"`

	Host string `json:"host"`

	ShareTypeID string `json:"share_type_id"`

	// The date and time stamp when the Share Network was created
	CreatedAt time.Time `json:"created_at"`
	// The date and time stamp when the Share Network was updated
	UpdatedAt time.Time `json:"updated_at"`
}

ShareInstances contains all the information associated with an OpenStack

type ShareInstancesPage

type ShareInstancesPage struct {
	pagination.MarkerPageBase
}

ShareInstancesPage is a pagination.pager that is returned from a call to the List function.

Jump to

Keyboard shortcuts

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