shareaccessrules

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

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 Get

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

Get retrieves details about a share access rule.

func (GetResult) Extract

func (r GetResult) Extract() (*ShareAccess, error)

Extract will get the ShareAccess object from the GetResult.

type ListResult added in v1.3.0

type ListResult struct {
	gophercloud.Result
}

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

func List added in v1.3.0

func List(client *gophercloud.ServiceClient, shareID string) (r ListResult)

List gets all access rules of a share.

func (ListResult) Extract added in v1.3.0

func (r ListResult) Extract() ([]ShareAccess, error)

type ShareAccess

type ShareAccess struct {
	// The UUID of the share to which you are granted or denied access.
	ShareID string `json:"share_id"`
	// The date and time stamp when the resource was created within the service’s database.
	CreatedAt time.Time `json:"-"`
	// The date and time stamp when the resource was last updated within the service’s database.
	UpdatedAt time.Time `json:"-"`
	// The access rule type.
	AccessType string `json:"access_type"`
	// The value that defines the access. The back end grants or denies the access to it.
	AccessTo string `json:"access_to"`
	// The access credential of the entity granted share access.
	AccessKey string `json:"access_key"`
	// The state of the access rule.
	State string `json:"state"`
	// The access level to the share.
	AccessLevel string `json:"access_level"`
	// The access rule ID.
	ID string `json:"id"`
	// Access rule metadata.
	Metadata map[string]interface{} `json:"metadata"`
}

ShareAccess contains information associated with an OpenStack share access rule.

func (*ShareAccess) UnmarshalJSON

func (r *ShareAccess) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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