Documentation ¶
Overview ¶
Package fileclient implements the client for azure file.
Index ¶
- type Client
- func (c *Client) CreateFileShare(resourceGroupName, accountName string, shareOptions *ShareOptions) error
- func (c *Client) DeleteFileShare(resourceGroupName, accountName, name string) error
- func (c *Client) GetFileShare(resourceGroupName, accountName, name string) (storage.FileShare, error)
- func (c *Client) GetServiceProperties(resourceGroupName, accountName string) (storage.FileServiceProperties, error)
- func (c *Client) ResizeFileShare(resourceGroupName, accountName, name string, sizeGiB int) error
- func (c *Client) SetServiceProperties(resourceGroupName, accountName string, ...) (storage.FileServiceProperties, error)
- func (c *Client) WithSubscriptionID(subscriptionID string) Interface
- type Interface
- type ShareOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the azure file client interface
func (*Client) CreateFileShare ¶
func (c *Client) CreateFileShare(resourceGroupName, accountName string, shareOptions *ShareOptions) error
CreateFileShare creates a file share
func (*Client) DeleteFileShare ¶
DeleteFileShare deletes a file share
func (*Client) GetFileShare ¶
func (c *Client) GetFileShare(resourceGroupName, accountName, name string) (storage.FileShare, error)
GetFileShare gets a file share
func (*Client) GetServiceProperties ¶ added in v0.7.3
func (c *Client) GetServiceProperties(resourceGroupName, accountName string) (storage.FileServiceProperties, error)
GetServiceProperties get service properties
func (*Client) ResizeFileShare ¶
ResizeFileShare resizes a file share
func (*Client) SetServiceProperties ¶ added in v0.7.3
func (c *Client) SetServiceProperties(resourceGroupName, accountName string, parameters storage.FileServiceProperties) (storage.FileServiceProperties, error)
SetServiceProperties set service properties
func (*Client) WithSubscriptionID ¶ added in v1.25.0
type Interface ¶
type Interface interface { GetServiceProperties(resourceGroupName, accountName string) (storage.FileServiceProperties, error) SetServiceProperties(resourceGroupName, accountName string, parameters storage.FileServiceProperties) (storage.FileServiceProperties, error) WithSubscriptionID(subscriptionID string) Interface }
Interface is the client interface for creating file shares, interface for test injection. Don't forget to run "hack/update-mock-clients.sh" command to generate the mock client.
Directories ¶
Path | Synopsis |
---|---|
Package mockfileclient implements the mock client for azure file.
|
Package mockfileclient implements the mock client for azure file. |
Click to show internal directories.
Click to hide internal directories.