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 contains the response body and error from a Get request.
func (GetResult) Extract ¶
func (r GetResult) Extract() (*ShareAccess, error)
Extract will get the ShareAccess object from the GetResult.
type ListResult ¶
type ListResult struct {
gophercloud.Result
}
ListResult contains the response body and error from a List request.
func List ¶
func List(ctx context.Context, client *gophercloud.ServiceClient, shareID string) (r ListResult)
List gets all access rules of a share.
func (ListResult) Extract ¶
func (r ListResult) Extract() ([]ShareAccess, error)
type ShareAccess ¶
type ShareAccess struct {
ShareID string `json:"share_id"`
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
AccessType string `json:"access_type"`
AccessTo string `json:"access_to"`
AccessKey string `json:"access_key"`
State string `json:"state"`
AccessLevel string `json:"access_level"`
ID string `json:"id"`
Metadata map[string]any `json:"metadata"`
}
ShareAccess contains information associated with an OpenStack share access rule.
func (*ShareAccess) UnmarshalJSON ¶
func (r *ShareAccess) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.