routeclient

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package routeclient implements the client for Route.

Index

Constants

View Source
const (
	// APIVersion is the API version for network.
	APIVersion = "2020-08-01"
	// AzureStackCloudAPIVersion is the API version for Azure Stack
	AzureStackCloudAPIVersion = "2018-11-01"
	// AzureStackCloudName is the cloud name of Azure Stack
	AzureStackCloudName = "AZURESTACKCLOUD"
)

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 Route client Interface.

func New

func New(config *azclients.ClientConfig) *Client

New creates a new Route client with ratelimiting.

func (*Client) CreateOrUpdate

func (c *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, routeParameters network.Route, etag string) *retry.Error

CreateOrUpdate creates or updates a Route.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) *retry.Error

Delete deletes a Route by name.

type Interface

type Interface interface {
	// CreateOrUpdate creates or updates a Route.
	CreateOrUpdate(ctx context.Context, resourceGroupName string, routeTableName string, routeName string, routeParameters network.Route, etag string) *retry.Error

	// Delete deletes a Route by name.
	Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) *retry.Error
}

Interface is the client interface for Route. Don't forget to run the following command to generate the mock client: mockgen -source=$GOPATH/src/sigs.k8s.io/cloud-provider-azure/pkg/azureclients/routeclient/interface.go -package=mockrouteclient Interface > $GOPATH/src/sigs.k8s.io/cloud-provider-azure/pkg/azureclients/routeclient/mockrouteclient/interface.go

Directories

Path Synopsis
Package mockrouteclient implements the mock client for Route.
Package mockrouteclient implements the mock client for Route.

Jump to

Keyboard shortcuts

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