Documentation ¶
Index ¶
- func PossibleValuesForAccessKeyType() []string
- func PossibleValuesForAofFrequency() []string
- func PossibleValuesForClusteringPolicy() []string
- func PossibleValuesForEvictionPolicy() []string
- func PossibleValuesForLinkState() []string
- func PossibleValuesForProtocol() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRdbFrequency() []string
- func PossibleValuesForResourceState() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRedisEnterpriseID(input interface{}, key string) (warnings []string, errors []error)
- type AccessKeyType
- type AccessKeys
- type AofFrequency
- type ClusteringPolicy
- type CreateOperationResponse
- type Database
- type DatabaseId
- type DatabaseOperationPredicate
- type DatabaseProperties
- type DatabasePropertiesGeoReplication
- type DatabaseUpdate
- type DatabasesClient
- func (c DatabasesClient) Create(ctx context.Context, id DatabaseId, input Database) (result CreateOperationResponse, err error)
- func (c DatabasesClient) CreateThenPoll(ctx context.Context, id DatabaseId, input Database) error
- func (c DatabasesClient) Delete(ctx context.Context, id DatabaseId) (result DeleteOperationResponse, err error)
- func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id DatabaseId) error
- func (c DatabasesClient) Export(ctx context.Context, id DatabaseId, input ExportClusterParameters) (result ExportOperationResponse, err error)
- func (c DatabasesClient) ExportThenPoll(ctx context.Context, id DatabaseId, input ExportClusterParameters) error
- func (c DatabasesClient) Flush(ctx context.Context, id DatabaseId, input FlushParameters) (result FlushOperationResponse, err error)
- func (c DatabasesClient) FlushThenPoll(ctx context.Context, id DatabaseId, input FlushParameters) error
- func (c DatabasesClient) ForceUnlink(ctx context.Context, id DatabaseId, input ForceUnlinkParameters) (result ForceUnlinkOperationResponse, err error)
- func (c DatabasesClient) ForceUnlinkThenPoll(ctx context.Context, id DatabaseId, input ForceUnlinkParameters) error
- func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
- func (c DatabasesClient) Import(ctx context.Context, id DatabaseId, input ImportClusterParameters) (result ImportOperationResponse, err error)
- func (c DatabasesClient) ImportThenPoll(ctx context.Context, id DatabaseId, input ImportClusterParameters) error
- func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId) (result ListByClusterOperationResponse, err error)
- func (c DatabasesClient) ListByClusterComplete(ctx context.Context, id RedisEnterpriseId) (ListByClusterCompleteResult, error)
- func (c DatabasesClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id RedisEnterpriseId, ...) (result ListByClusterCompleteResult, err error)
- func (c DatabasesClient) ListKeys(ctx context.Context, id DatabaseId) (result ListKeysOperationResponse, err error)
- func (c DatabasesClient) RegenerateKey(ctx context.Context, id DatabaseId, input RegenerateKeyParameters) (result RegenerateKeyOperationResponse, err error)
- func (c DatabasesClient) RegenerateKeyThenPoll(ctx context.Context, id DatabaseId, input RegenerateKeyParameters) error
- func (c DatabasesClient) Update(ctx context.Context, id DatabaseId, input DatabaseUpdate) (result UpdateOperationResponse, err error)
- func (c DatabasesClient) UpdateThenPoll(ctx context.Context, id DatabaseId, input DatabaseUpdate) error
- type DeleteOperationResponse
- type EvictionPolicy
- type ExportClusterParameters
- type ExportOperationResponse
- type FlushOperationResponse
- type FlushParameters
- type ForceUnlinkOperationResponse
- type ForceUnlinkParameters
- type GetOperationResponse
- type ImportClusterParameters
- type ImportOperationResponse
- type LinkState
- type LinkedDatabase
- type ListByClusterCompleteResult
- type ListByClusterCustomPager
- type ListByClusterOperationResponse
- type ListKeysOperationResponse
- type Module
- type Persistence
- type Protocol
- type ProvisioningState
- type RdbFrequency
- type RedisEnterpriseId
- type RegenerateKeyOperationResponse
- type RegenerateKeyParameters
- type ResourceState
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAccessKeyType ¶
func PossibleValuesForAccessKeyType() []string
func PossibleValuesForAofFrequency ¶
func PossibleValuesForAofFrequency() []string
func PossibleValuesForClusteringPolicy ¶
func PossibleValuesForClusteringPolicy() []string
func PossibleValuesForEvictionPolicy ¶
func PossibleValuesForEvictionPolicy() []string
func PossibleValuesForLinkState ¶
func PossibleValuesForLinkState() []string
func PossibleValuesForProtocol ¶
func PossibleValuesForProtocol() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForRdbFrequency ¶
func PossibleValuesForRdbFrequency() []string
func PossibleValuesForResourceState ¶
func PossibleValuesForResourceState() []string
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
func ValidateRedisEnterpriseID ¶
ValidateRedisEnterpriseID checks that 'input' can be parsed as a Redis Enterprise ID
Types ¶
type AccessKeyType ¶
type AccessKeyType string
const ( AccessKeyTypePrimary AccessKeyType = "Primary" AccessKeyTypeSecondary AccessKeyType = "Secondary" )
func (*AccessKeyType) UnmarshalJSON ¶
func (s *AccessKeyType) UnmarshalJSON(bytes []byte) error
type AccessKeys ¶
type AofFrequency ¶
type AofFrequency string
const ( AofFrequencyAlways AofFrequency = "always" AofFrequencyOnes AofFrequency = "1s" )
func (*AofFrequency) UnmarshalJSON ¶
func (s *AofFrequency) UnmarshalJSON(bytes []byte) error
type ClusteringPolicy ¶
type ClusteringPolicy string
const ( ClusteringPolicyEnterpriseCluster ClusteringPolicy = "EnterpriseCluster" ClusteringPolicyOSSCluster ClusteringPolicy = "OSSCluster" )
func (*ClusteringPolicy) UnmarshalJSON ¶
func (s *ClusteringPolicy) UnmarshalJSON(bytes []byte) error
type CreateOperationResponse ¶
type Database ¶
type Database struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DatabaseProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type DatabaseId ¶
type DatabaseId struct { SubscriptionId string ResourceGroupName string RedisEnterpriseName string DatabaseName string }
DatabaseId is a struct representing the Resource ID for a Database
func NewDatabaseID ¶
func NewDatabaseID(subscriptionId string, resourceGroupName string, redisEnterpriseName string, databaseName string) DatabaseId
NewDatabaseID returns a new DatabaseId struct
func ParseDatabaseID ¶
func ParseDatabaseID(input string) (*DatabaseId, error)
ParseDatabaseID parses 'input' into a DatabaseId
func ParseDatabaseIDInsensitively ¶
func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)
ParseDatabaseIDInsensitively parses 'input' case-insensitively into a DatabaseId note: this method should only be used for API response data and not user input
func (*DatabaseId) FromParseResult ¶
func (id *DatabaseId) FromParseResult(input resourceids.ParseResult) error
func (DatabaseId) Segments ¶
func (id DatabaseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database ID
func (DatabaseId) String ¶
func (id DatabaseId) String() string
String returns a human-readable description of this Database ID
type DatabaseOperationPredicate ¶
func (DatabaseOperationPredicate) Matches ¶
func (p DatabaseOperationPredicate) Matches(input Database) bool
type DatabaseProperties ¶
type DatabaseProperties struct { ClientProtocol *Protocol `json:"clientProtocol,omitempty"` ClusteringPolicy *ClusteringPolicy `json:"clusteringPolicy,omitempty"` EvictionPolicy *EvictionPolicy `json:"evictionPolicy,omitempty"` GeoReplication *DatabasePropertiesGeoReplication `json:"geoReplication,omitempty"` Modules *[]Module `json:"modules,omitempty"` Persistence *Persistence `json:"persistence,omitempty"` Port *int64 `json:"port,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceState *ResourceState `json:"resourceState,omitempty"` }
type DatabasePropertiesGeoReplication ¶
type DatabasePropertiesGeoReplication struct { GroupNickname *string `json:"groupNickname,omitempty"` LinkedDatabases *[]LinkedDatabase `json:"linkedDatabases,omitempty"` }
type DatabaseUpdate ¶
type DatabaseUpdate struct {
Properties *DatabaseProperties `json:"properties,omitempty"`
}
type DatabasesClient ¶
type DatabasesClient struct {
Client *resourcemanager.Client
}
func NewDatabasesClientWithBaseURI ¶
func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error)
func (DatabasesClient) Create ¶
func (c DatabasesClient) Create(ctx context.Context, id DatabaseId, input Database) (result CreateOperationResponse, err error)
Create ...
func (DatabasesClient) CreateThenPoll ¶
func (c DatabasesClient) CreateThenPoll(ctx context.Context, id DatabaseId, input Database) error
CreateThenPoll performs Create then polls until it's completed
func (DatabasesClient) Delete ¶
func (c DatabasesClient) Delete(ctx context.Context, id DatabaseId) (result DeleteOperationResponse, err error)
Delete ...
func (DatabasesClient) DeleteThenPoll ¶
func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id DatabaseId) error
DeleteThenPoll performs Delete then polls until it's completed
func (DatabasesClient) Export ¶
func (c DatabasesClient) Export(ctx context.Context, id DatabaseId, input ExportClusterParameters) (result ExportOperationResponse, err error)
Export ...
func (DatabasesClient) ExportThenPoll ¶
func (c DatabasesClient) ExportThenPoll(ctx context.Context, id DatabaseId, input ExportClusterParameters) error
ExportThenPoll performs Export then polls until it's completed
func (DatabasesClient) Flush ¶
func (c DatabasesClient) Flush(ctx context.Context, id DatabaseId, input FlushParameters) (result FlushOperationResponse, err error)
Flush ...
func (DatabasesClient) FlushThenPoll ¶
func (c DatabasesClient) FlushThenPoll(ctx context.Context, id DatabaseId, input FlushParameters) error
FlushThenPoll performs Flush then polls until it's completed
func (DatabasesClient) ForceUnlink ¶
func (c DatabasesClient) ForceUnlink(ctx context.Context, id DatabaseId, input ForceUnlinkParameters) (result ForceUnlinkOperationResponse, err error)
ForceUnlink ...
func (DatabasesClient) ForceUnlinkThenPoll ¶
func (c DatabasesClient) ForceUnlinkThenPoll(ctx context.Context, id DatabaseId, input ForceUnlinkParameters) error
ForceUnlinkThenPoll performs ForceUnlink then polls until it's completed
func (DatabasesClient) Get ¶
func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
Get ...
func (DatabasesClient) Import ¶
func (c DatabasesClient) Import(ctx context.Context, id DatabaseId, input ImportClusterParameters) (result ImportOperationResponse, err error)
Import ...
func (DatabasesClient) ImportThenPoll ¶
func (c DatabasesClient) ImportThenPoll(ctx context.Context, id DatabaseId, input ImportClusterParameters) error
ImportThenPoll performs Import then polls until it's completed
func (DatabasesClient) ListByCluster ¶
func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId) (result ListByClusterOperationResponse, err error)
ListByCluster ...
func (DatabasesClient) ListByClusterComplete ¶
func (c DatabasesClient) ListByClusterComplete(ctx context.Context, id RedisEnterpriseId) (ListByClusterCompleteResult, error)
ListByClusterComplete retrieves all the results into a single object
func (DatabasesClient) ListByClusterCompleteMatchingPredicate ¶
func (c DatabasesClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id RedisEnterpriseId, predicate DatabaseOperationPredicate) (result ListByClusterCompleteResult, err error)
ListByClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DatabasesClient) ListKeys ¶
func (c DatabasesClient) ListKeys(ctx context.Context, id DatabaseId) (result ListKeysOperationResponse, err error)
ListKeys ...
func (DatabasesClient) RegenerateKey ¶
func (c DatabasesClient) RegenerateKey(ctx context.Context, id DatabaseId, input RegenerateKeyParameters) (result RegenerateKeyOperationResponse, err error)
RegenerateKey ...
func (DatabasesClient) RegenerateKeyThenPoll ¶
func (c DatabasesClient) RegenerateKeyThenPoll(ctx context.Context, id DatabaseId, input RegenerateKeyParameters) error
RegenerateKeyThenPoll performs RegenerateKey then polls until it's completed
func (DatabasesClient) Update ¶
func (c DatabasesClient) Update(ctx context.Context, id DatabaseId, input DatabaseUpdate) (result UpdateOperationResponse, err error)
Update ...
func (DatabasesClient) UpdateThenPoll ¶
func (c DatabasesClient) UpdateThenPoll(ctx context.Context, id DatabaseId, input DatabaseUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type DeleteOperationResponse ¶
type EvictionPolicy ¶
type EvictionPolicy string
const ( EvictionPolicyAllKeysLFU EvictionPolicy = "AllKeysLFU" EvictionPolicyAllKeysLRU EvictionPolicy = "AllKeysLRU" EvictionPolicyAllKeysRandom EvictionPolicy = "AllKeysRandom" EvictionPolicyNoEviction EvictionPolicy = "NoEviction" EvictionPolicyVolatileLFU EvictionPolicy = "VolatileLFU" EvictionPolicyVolatileLRU EvictionPolicy = "VolatileLRU" EvictionPolicyVolatileRandom EvictionPolicy = "VolatileRandom" EvictionPolicyVolatileTTL EvictionPolicy = "VolatileTTL" )
func (*EvictionPolicy) UnmarshalJSON ¶
func (s *EvictionPolicy) UnmarshalJSON(bytes []byte) error
type ExportClusterParameters ¶
type ExportClusterParameters struct {
SasUri string `json:"sasUri"`
}
type ExportOperationResponse ¶
type FlushOperationResponse ¶
type FlushParameters ¶
type FlushParameters struct {
Ids *[]string `json:"ids,omitempty"`
}
type ForceUnlinkParameters ¶
type ForceUnlinkParameters struct {
Ids []string `json:"ids"`
}
type GetOperationResponse ¶
type ImportClusterParameters ¶
type ImportClusterParameters struct {
SasUris []string `json:"sasUris"`
}
type ImportOperationResponse ¶
type LinkedDatabase ¶
type ListByClusterCustomPager ¶
func (*ListByClusterCustomPager) NextPageLink ¶
func (p *ListByClusterCustomPager) NextPageLink() *odata.Link
type ListKeysOperationResponse ¶
type ListKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AccessKeys }
type Persistence ¶
type Persistence struct { AofEnabled *bool `json:"aofEnabled,omitempty"` AofFrequency *AofFrequency `json:"aofFrequency,omitempty"` RdbEnabled *bool `json:"rdbEnabled,omitempty"` RdbFrequency *RdbFrequency `json:"rdbFrequency,omitempty"` }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RdbFrequency ¶
type RdbFrequency string
const ( RdbFrequencyOneTwoh RdbFrequency = "12h" RdbFrequencyOneh RdbFrequency = "1h" RdbFrequencySixh RdbFrequency = "6h" )
func (*RdbFrequency) UnmarshalJSON ¶
func (s *RdbFrequency) UnmarshalJSON(bytes []byte) error
type RedisEnterpriseId ¶
type RedisEnterpriseId struct { SubscriptionId string ResourceGroupName string RedisEnterpriseName string }
RedisEnterpriseId is a struct representing the Resource ID for a Redis Enterprise
func NewRedisEnterpriseID ¶
func NewRedisEnterpriseID(subscriptionId string, resourceGroupName string, redisEnterpriseName string) RedisEnterpriseId
NewRedisEnterpriseID returns a new RedisEnterpriseId struct
func ParseRedisEnterpriseID ¶
func ParseRedisEnterpriseID(input string) (*RedisEnterpriseId, error)
ParseRedisEnterpriseID parses 'input' into a RedisEnterpriseId
func ParseRedisEnterpriseIDInsensitively ¶
func ParseRedisEnterpriseIDInsensitively(input string) (*RedisEnterpriseId, error)
ParseRedisEnterpriseIDInsensitively parses 'input' case-insensitively into a RedisEnterpriseId note: this method should only be used for API response data and not user input
func (*RedisEnterpriseId) FromParseResult ¶
func (id *RedisEnterpriseId) FromParseResult(input resourceids.ParseResult) error
func (RedisEnterpriseId) ID ¶
func (id RedisEnterpriseId) ID() string
ID returns the formatted Redis Enterprise ID
func (RedisEnterpriseId) Segments ¶
func (id RedisEnterpriseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Redis Enterprise ID
func (RedisEnterpriseId) String ¶
func (id RedisEnterpriseId) String() string
String returns a human-readable description of this Redis Enterprise ID
type RegenerateKeyParameters ¶
type RegenerateKeyParameters struct {
KeyType AccessKeyType `json:"keyType"`
}
type ResourceState ¶
type ResourceState string
const ( ResourceStateCreateFailed ResourceState = "CreateFailed" ResourceStateCreating ResourceState = "Creating" ResourceStateDeleteFailed ResourceState = "DeleteFailed" ResourceStateDeleting ResourceState = "Deleting" ResourceStateDisableFailed ResourceState = "DisableFailed" ResourceStateDisabled ResourceState = "Disabled" ResourceStateDisabling ResourceState = "Disabling" ResourceStateEnableFailed ResourceState = "EnableFailed" ResourceStateEnabling ResourceState = "Enabling" ResourceStateRunning ResourceState = "Running" ResourceStateScaling ResourceState = "Scaling" ResourceStateScalingFailed ResourceState = "ScalingFailed" ResourceStateUpdateFailed ResourceState = "UpdateFailed" ResourceStateUpdating ResourceState = "Updating" )
func (*ResourceState) UnmarshalJSON ¶
func (s *ResourceState) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_database.go
- id_redisenterprise.go
- method_create.go
- method_delete.go
- method_export.go
- method_flush.go
- method_forceunlink.go
- method_get.go
- method_import.go
- method_listbycluster.go
- method_listkeys.go
- method_regeneratekey.go
- method_update.go
- model_accesskeys.go
- model_database.go
- model_databaseproperties.go
- model_databasepropertiesgeoreplication.go
- model_databaseupdate.go
- model_exportclusterparameters.go
- model_flushparameters.go
- model_forceunlinkparameters.go
- model_importclusterparameters.go
- model_linkeddatabase.go
- model_module.go
- model_persistence.go
- model_regeneratekeyparameters.go
- predicates.go
- version.go