fileclient

package
v0.19.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fileclient implements the client for azure file.

Index

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 New

func New(config *azclients.ClientConfig) *Client

New creates a azure file client

func (*Client) CreateFileShare

func (c *Client) CreateFileShare(resourceGroupName, accountName, name string, sizeGiB int) error

CreateFileShare creates a file share

func (*Client) DeleteFileShare

func (c *Client) DeleteFileShare(resourceGroupName, accountName, name string) error

DeleteFileShare deletes a file share

func (*Client) ResizeFileShare

func (c *Client) ResizeFileShare(resourceGroupName, accountName, name string, sizeGiB int) error

ResizeFileShare resizes a file share

type Interface

type Interface interface {
	CreateFileShare(resourceGroupName, accountName, name string, sizeGiB int) error
	DeleteFileShare(resourceGroupName, accountName, name string) error
	ResizeFileShare(resourceGroupName, accountName, name string, sizeGiB int) error
}

Interface is the client interface for creating file shares, interface for test injection. mockgen -source=$GOPATH/src/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/clients/fileclient/interface.go -package=mockfileclient Interface > $GOPATH/src/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/clients/fileclient/mockfileclient/interface.go

Directories

Path Synopsis
Package mockfileclient implements the mock client for azure file.
Package mockfileclient implements the mock client for azure file.

Jump to

Keyboard shortcuts

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