shareaccessrules

package
v1.1.39 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 {
	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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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