Documentation ¶
Overview ¶
Package diskclient implements the client for Disks.
Index ¶
- Constants
- type Client
- func (c *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, ...) *retry.Error
- func (c *Client) Delete(ctx context.Context, resourceGroupName string, diskName string) *retry.Error
- func (c *Client) Get(ctx context.Context, resourceGroupName string, diskName string) (compute.Disk, *retry.Error)
- type Interface
Constants ¶
View Source
const (
// APIVersion is the API version for compute.
APIVersion = "2019-07-01"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // ARM throttling configures. RetryAfterReader time.Time RetryAfterWriter time.Time // contains filtered or unexported fields }
Client implements Disk client Interface.
func New ¶
func New(config *azclients.ClientConfig) *Client
New creates a new Disk client with ratelimiting.
func (*Client) CreateOrUpdate ¶
func (c *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, diskParameter compute.Disk) *retry.Error
CreateOrUpdate creates or updates a Disk.
type Interface ¶
type Interface interface { // Get gets a Disk. Get(ctx context.Context, resourceGroupName string, diskName string) (result compute.Disk, rerr *retry.Error) // CreateOrUpdate creates or updates a Disk. CreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, diskParameter compute.Disk) *retry.Error // Delete deletes a Disk by name. Delete(ctx context.Context, resourceGroupName string, diskName string) *retry.Error }
Interface is the client interface for Disks. Don't forget to run the following command to generate the mock client: mockgen -source=$GOPATH/src/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/clients/diskclient/interface.go -package=mockdiskclient Interface > $GOPATH/src/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/clients/diskclient/mockdiskclient/interface.go
Directories ¶
Path | Synopsis |
---|---|
Package mockdiskclient implements the mock client for Disks.
|
Package mockdiskclient implements the mock client for Disks. |
Click to show internal directories.
Click to hide internal directories.