Versions in this module Expand all Collapse all v2 v2.2.1 Sep 25, 2024 Changes in this version + func ExtractReplicasInto(r pagination.Page, v any) error + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func ListDetail(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type CreateOpts struct + AvailabilityZone string + SchedulerHints map[string]string + ShareID string + ShareNetworkID string + func (opts CreateOpts) ToReplicaCreateMap() (map[string]any, error) + type CreateOptsBuilder interface + ToReplicaCreateMap func() (map[string]any, error) + type CreateResult struct + func Create(ctx context.Context, client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Replica, error) + type DeleteResult struct + func Delete(ctx context.Context, client *gophercloud.ServiceClient, id string) (r DeleteResult) + type ExportLocation struct + AvailabilityZone string + CreatedAt time.Time + ID string + IsAdminOnly bool + Path string + Preferred bool + ShareInstanceID string + State string + UpdatedAt time.Time + func (r *ExportLocation) UnmarshalJSON(b []byte) error + type ForceDeleteResult struct + func ForceDelete(ctx context.Context, client *gophercloud.ServiceClient, id string) (r ForceDeleteResult) + type GetExportLocationResult struct + func GetExportLocation(ctx context.Context, client *gophercloud.ServiceClient, replicaID string, ...) (r GetExportLocationResult) + func (r GetExportLocationResult) Extract() (*ExportLocation, error) + type GetResult struct + func Get(ctx context.Context, client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Replica, error) + type ListExportLocationsResult struct + func ListExportLocations(ctx context.Context, client *gophercloud.ServiceClient, id string) (r ListExportLocationsResult) + func (r ListExportLocationsResult) Extract() ([]ExportLocation, error) + type ListOpts struct + Limit int + Marker string + Offset int + ShareID string + func (opts ListOpts) ToReplicaListQuery() (string, error) + type ListOptsBuilder interface + ToReplicaListQuery func() (string, error) + type PromoteOpts struct + QuiesceWaitTime int + func (opts PromoteOpts) ToReplicaPromoteMap() (map[string]any, error) + type PromoteOptsBuilder interface + ToReplicaPromoteMap func() (map[string]any, error) + type PromoteResult struct + func Promote(ctx context.Context, client *gophercloud.ServiceClient, id string, ...) (r PromoteResult) + type Replica struct + AvailabilityZone string + CastRulesToReadonly bool + CreatedAt time.Time + Host string + ID string + ShareID string + ShareNetworkID string + ShareServerID string + State string + Status string + UpdatedAt time.Time + func ExtractReplicas(r pagination.Page) ([]Replica, error) + func (r *Replica) UnmarshalJSON(b []byte) error + type ReplicaPage struct + func (r ReplicaPage) IsEmpty() (bool, error) + func (r ReplicaPage) LastMarker() (string, error) + func (r ReplicaPage) NextPageURL() (string, error) + type ResetStateOpts struct + State string + func (opts ResetStateOpts) ToReplicaResetStateMap() (map[string]any, error) + type ResetStateOptsBuilder interface + ToReplicaResetStateMap func() (map[string]any, error) + type ResetStateResult struct + func ResetState(ctx context.Context, client *gophercloud.ServiceClient, id string, ...) (r ResetStateResult) + type ResetStatusOpts struct + Status string + func (opts ResetStatusOpts) ToReplicaResetStatusMap() (map[string]any, error) + type ResetStatusOptsBuilder interface + ToReplicaResetStatusMap func() (map[string]any, error) + type ResetStatusResult struct + func ResetStatus(ctx context.Context, client *gophercloud.ServiceClient, id string, ...) (r ResetStatusResult) + type ResyncResult struct + func Resync(ctx context.Context, client *gophercloud.ServiceClient, id string) (r ResyncResult)