Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v3
modulepackage
3.3.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Cache for Redis Module for Go

The armredis module provides operations for working with Azure Cache for Redis.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Cache for Redis module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v3

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Cache for Redis. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Cache for Redis module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armredis.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armredis.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewAccessPolicyAssignmentClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

More sample code

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Cache for Redis label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewAccessPolicyAssignmentClient creates a new instance of AccessPolicyAssignmentClient with the specified values.
NewAccessPolicyClient creates a new instance of AccessPolicyClient with the specified values.
NewAsyncOperationStatusClient creates a new instance of AsyncOperationStatusClient with the specified values.
NewClient creates a new instance of Client with the specified values.
NewClientFactory creates a new instance of ClientFactory with the specified values.
NewFirewallRulesClient creates a new instance of FirewallRulesClient with the specified values.
NewLinkedServerClient creates a new instance of LinkedServerClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewPatchSchedulesClient creates a new instance of PatchSchedulesClient with the specified values.
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
PossibleAccessPolicyAssignmentProvisioningStateValues returns the possible values for the AccessPolicyAssignmentProvisioningState const type.
PossibleAccessPolicyProvisioningStateValues returns the possible values for the AccessPolicyProvisioningState const type.
PossibleAccessPolicyTypeValues returns the possible values for the AccessPolicyType const type.
PossibleDayOfWeekValues returns the possible values for the DayOfWeek const type.
PossibleDefaultNameValues returns the possible values for the DefaultName const type.
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
PossibleRebootTypeValues returns the possible values for the RebootType const type.
PossibleRedisKeyTypeValues returns the possible values for the RedisKeyType const type.
PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type.
PossibleSKUFamilyValues returns the possible values for the SKUFamily const type.
PossibleSKUNameValues returns the possible values for the SKUName const type.
PossibleTLSVersionValues returns the possible values for the TLSVersion const type.
PossibleUpdateChannelValues returns the possible values for the UpdateChannel const type.
PossibleZonalAllocationPolicyValues returns the possible values for the ZonalAllocationPolicy const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AccessKeys - Redis cache access keys.
AccessPolicyAssignmentClient contains the methods for the AccessPolicyAssignment group.
AccessPolicyAssignmentClientBeginCreateUpdateOptions contains the optional parameters for the AccessPolicyAssignmentClient.BeginCreateUpdate method.
AccessPolicyAssignmentClientBeginDeleteOptions contains the optional parameters for the AccessPolicyAssignmentClient.BeginDelete method.
AccessPolicyAssignmentClientCreateUpdateResponse contains the response from method AccessPolicyAssignmentClient.BeginCreateUpdate.
AccessPolicyAssignmentClientDeleteResponse contains the response from method AccessPolicyAssignmentClient.BeginDelete.
AccessPolicyAssignmentClientGetOptions contains the optional parameters for the AccessPolicyAssignmentClient.Get method.
AccessPolicyAssignmentClientGetResponse contains the response from method AccessPolicyAssignmentClient.Get.
AccessPolicyAssignmentClientListOptions contains the optional parameters for the AccessPolicyAssignmentClient.NewListPager method.
AccessPolicyAssignmentClientListResponse contains the response from method AccessPolicyAssignmentClient.NewListPager.
AccessPolicyClient contains the methods for the AccessPolicy group.
AccessPolicyClientBeginCreateUpdateOptions contains the optional parameters for the AccessPolicyClient.BeginCreateUpdate method.
AccessPolicyClientBeginDeleteOptions contains the optional parameters for the AccessPolicyClient.BeginDelete method.
AccessPolicyClientCreateUpdateResponse contains the response from method AccessPolicyClient.BeginCreateUpdate.
AccessPolicyClientDeleteResponse contains the response from method AccessPolicyClient.BeginDelete.
AccessPolicyClientGetOptions contains the optional parameters for the AccessPolicyClient.Get method.
AccessPolicyClientGetResponse contains the response from method AccessPolicyClient.Get.
AccessPolicyClientListOptions contains the optional parameters for the AccessPolicyClient.NewListPager method.
AccessPolicyClientListResponse contains the response from method AccessPolicyClient.NewListPager.
AsyncOperationStatusClient contains the methods for the AsyncOperationStatus group.
AsyncOperationStatusClientGetOptions contains the optional parameters for the AsyncOperationStatusClient.Get method.
AsyncOperationStatusClientGetResponse contains the response from method AsyncOperationStatusClient.Get.
CacheAccessPolicy - Response to get/put access policy.
CacheAccessPolicyAssignment - Response to an operation on access policy assignment.
CacheAccessPolicyAssignmentList - List of access policies assignments (with properties) of a Redis cache.
CacheAccessPolicyAssignmentProperties - Properties for an access policy assignment.
CacheAccessPolicyList - List of access policies (with properties) of a Redis cache.
CacheAccessPolicyProperties - All properties of an access policy.
CheckNameAvailabilityParameters - Parameters body to pass for resource name availability check.
Client contains the methods for the Redis group.
ClientBeginCreateOptions contains the optional parameters for the Client.BeginCreate method.
ClientBeginDeleteOptions contains the optional parameters for the Client.BeginDelete method.
ClientBeginExportDataOptions contains the optional parameters for the Client.BeginExportData method.
ClientBeginFlushCacheOptions contains the optional parameters for the Client.BeginFlushCache method.
ClientBeginImportDataOptions contains the optional parameters for the Client.BeginImportData method.
ClientBeginUpdateOptions contains the optional parameters for the Client.BeginUpdate method.
ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method.
ClientCheckNameAvailabilityResponse contains the response from method Client.CheckNameAvailability.
ClientCreateResponse contains the response from method Client.BeginCreate.
ClientDeleteResponse contains the response from method Client.BeginDelete.
ClientExportDataResponse contains the response from method Client.BeginExportData.
ClientFactory is a client factory used to create any client in this module.
ClientFlushCacheResponse contains the response from method Client.BeginFlushCache.
ClientForceRebootOptions contains the optional parameters for the Client.ForceReboot method.
ClientForceRebootResponse contains the response from method Client.ForceReboot.
ClientGetOptions contains the optional parameters for the Client.Get method.
ClientGetResponse contains the response from method Client.Get.
ClientImportDataResponse contains the response from method Client.BeginImportData.
ClientListByResourceGroupOptions contains the optional parameters for the Client.NewListByResourceGroupPager method.
ClientListByResourceGroupResponse contains the response from method Client.NewListByResourceGroupPager.
ClientListBySubscriptionOptions contains the optional parameters for the Client.NewListBySubscriptionPager method.
ClientListBySubscriptionResponse contains the response from method Client.NewListBySubscriptionPager.
ClientListKeysOptions contains the optional parameters for the Client.ListKeys method.
ClientListKeysResponse contains the response from method Client.ListKeys.
ClientListUpgradeNotificationsOptions contains the optional parameters for the Client.NewListUpgradeNotificationsPager method.
ClientListUpgradeNotificationsResponse contains the response from method Client.NewListUpgradeNotificationsPager.
ClientRegenerateKeyOptions contains the optional parameters for the Client.RegenerateKey method.
ClientRegenerateKeyResponse contains the response from method Client.RegenerateKey.
ClientUpdateResponse contains the response from method Client.BeginUpdate.
CommonPropertiesRedisConfiguration - All Redis Settings.
CreateParameters - Parameters supplied to the Create Redis operation.
CreateProperties - Properties supplied to Create Redis operation.
ErrorAdditionalInfo - The resource management error additional info.
ErrorDetail - The error detail.
ExportRDBParameters - Parameters for Redis export operation.
FirewallRule - A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect.
FirewallRuleListResult - The response of list firewall rules Redis operation.
FirewallRuleProperties - Specifies a range of IP addresses permitted to connect to the cache.
FirewallRulesClient contains the methods for the FirewallRules group.
FirewallRulesClientCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.CreateOrUpdate method.
FirewallRulesClientCreateOrUpdateResponse contains the response from method FirewallRulesClient.CreateOrUpdate.
FirewallRulesClientDeleteOptions contains the optional parameters for the FirewallRulesClient.Delete method.
FirewallRulesClientDeleteResponse contains the response from method FirewallRulesClient.Delete.
FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
FirewallRulesClientGetResponse contains the response from method FirewallRulesClient.Get.
FirewallRulesClientListOptions contains the optional parameters for the FirewallRulesClient.NewListPager method.
FirewallRulesClientListResponse contains the response from method FirewallRulesClient.NewListPager.
ForceRebootResponse - Response to force reboot for Redis cache.
ImportRDBParameters - Parameters for Redis import operation.
InstanceDetails - Details of single instance of redis.
LinkedServer - Linked server Id.
LinkedServerClient contains the methods for the LinkedServer group.
LinkedServerClientBeginCreateOptions contains the optional parameters for the LinkedServerClient.BeginCreate method.
LinkedServerClientBeginDeleteOptions contains the optional parameters for the LinkedServerClient.BeginDelete method.
LinkedServerClientCreateResponse contains the response from method LinkedServerClient.BeginCreate.
LinkedServerClientDeleteResponse contains the response from method LinkedServerClient.BeginDelete.
LinkedServerClientGetOptions contains the optional parameters for the LinkedServerClient.Get method.
LinkedServerClientGetResponse contains the response from method LinkedServerClient.Get.
LinkedServerClientListOptions contains the optional parameters for the LinkedServerClient.NewListPager method.
LinkedServerClientListResponse contains the response from method LinkedServerClient.NewListPager.
LinkedServerCreateParameters - Parameter required for creating a linked server to redis cache.
LinkedServerCreateProperties - Create properties for a linked server.
LinkedServerProperties - Properties of a linked server to be returned in get/put response.
LinkedServerWithProperties - Response to put/get linked server (with properties) for Redis cache.
LinkedServerWithPropertiesList - List of linked servers (with properties) of a Redis cache.
ListResult - The response of list Redis operation.
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities).
NotificationListResponse - The response of listUpgradeNotifications.
Operation - REST API operation.
OperationDisplay - The object that describes the operation.
OperationListResult - Result of the request to list REST API operations.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
OperationStatus - Asynchronous operation status.
OperationStatusResult - The current status of an async operation.
PatchSchedule - Response to put/get patch schedules for Redis cache.
PatchScheduleListResult - The response of list patch schedules Redis operation.
PatchSchedulesClient contains the methods for the PatchSchedules group.
PatchSchedulesClientCreateOrUpdateOptions contains the optional parameters for the PatchSchedulesClient.CreateOrUpdate method.
PatchSchedulesClientCreateOrUpdateResponse contains the response from method PatchSchedulesClient.CreateOrUpdate.
PatchSchedulesClientDeleteOptions contains the optional parameters for the PatchSchedulesClient.Delete method.
PatchSchedulesClientDeleteResponse contains the response from method PatchSchedulesClient.Delete.
PatchSchedulesClientGetOptions contains the optional parameters for the PatchSchedulesClient.Get method.
PatchSchedulesClientGetResponse contains the response from method PatchSchedulesClient.Get.
PatchSchedulesClientListByRedisResourceOptions contains the optional parameters for the PatchSchedulesClient.NewListByRedisResourcePager method.
PatchSchedulesClientListByRedisResourceResponse contains the response from method PatchSchedulesClient.NewListByRedisResourcePager.
PrivateEndpoint - The Private Endpoint resource.
PrivateEndpointConnection - The Private Endpoint Connection resource.
PrivateEndpointConnectionListResult - List of private endpoint connection associated with the specified storage account.
PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group.
PrivateEndpointConnectionsClientBeginPutOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginPut method.
PrivateEndpointConnectionsClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Delete method.
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete.
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager method.
PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.NewListPager.
PrivateEndpointConnectionsClientPutResponse contains the response from method PrivateEndpointConnectionsClient.BeginPut.
PrivateLinkResource - A private link resource.
PrivateLinkResourceListResult - A list of private link resources.
PrivateLinkResourceProperties - Properties of a private link resource.
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group.
PrivateLinkResourcesClientListByRedisCacheOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByRedisCachePager method.
PrivateLinkResourcesClientListByRedisCacheResponse contains the response from method PrivateLinkResourcesClient.NewListByRedisCachePager.
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
Properties of the redis cache.
RebootParameters - Specifies which Redis node(s) to reboot.
RegenerateKeyParameters - Specifies which Redis access keys to reset.
ResourceInfo - A single Redis item in List or Get Operation.
ScheduleEntries - List of patch schedules for a Redis cache.
ScheduleEntry - Patch schedule entry for a Premium Redis Cache.
SKU parameters supplied to the create Redis operation.
UpdateParameters - Parameters supplied to the Update Redis operation.
UpdateProperties - Patchable properties of the redis cache.
UpgradeNotification - Properties of upgrade notification.
UserAssignedIdentity - User assigned identity properties.

# Type aliases

AccessPolicyAssignmentProvisioningState - Provisioning state of an access policy assignment set.
AccessPolicyProvisioningState - Provisioning state of access policy.
AccessPolicyType - Built-In or Custom access policy.
DayOfWeek - Day of the week when a cache can be patched.
No description provided by the author
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
PrivateEndpointConnectionProvisioningState - The current provisioning state.
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
ProvisioningState - Redis instance provisioning status.
PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache.
RebootType - Which Redis node(s) to reboot.
RedisKeyType - The Redis access key to regenerate.
ReplicationRole - Role of the linked server.
SKUFamily - The SKU family to use.
SKUName - The type of Redis cache to deploy.
TLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
UpdateChannel - Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive.
ZonalAllocationPolicy - Optional: Specifies how availability zones are allocated to the Redis cache.