Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
const ( // Version is the release number of this SDK. Version = "0.2.0" // AccessKeyEnvVar is the environment variable that will be used for the access key by default. AccessKeyEnvVar = "REDISCLOUD_ACCESS_KEY" // SecretKeyEnvVar is the environment variable that will be used for the secret key by default. SecretKeyEnvVar = "REDISCLOUD_SECRET_KEY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
	Account                   *account.API
	CloudAccount              *cloud_accounts.API
	Database                  *databases.API
	Subscription              *subscriptions.API
	Regions                   *regions.API
	LatestBackup              *latest_backups.API
	LatestImport              *latest_imports.API
	Maintenance               *maintenance.API
	Pricing                   *pricing.API
	TransitGatewayAttachments *attachments.API
	PrivateServiceConnect     *psc.API
	PrivateLink               *privatelink.API
	Tags                      *tags.API
	// fixed
	FixedPlans             *plans.API
	FixedSubscriptions     *fixedSubscriptions.API
	FixedPlanSubscriptions *plan_subscriptions.API
	FixedDatabases         *fixedDatabases.API
	// acl
	RedisRules *redis_rules.API
	Roles      *roles.API
	Users      *users.API
}
    type Option ¶
type Option func(*Options)
func AdditionalUserAgent ¶
AdditionalUserAgent allows extra information to be appended to the user agent sent in all requests to the API.
func Auth ¶
Auth is used to set the authentication credentials - will otherwise default to using environment variables for the credentials.
func BaseURL ¶
BaseURL sets the URL to use for the API endpoint - will default to `https://api.redislabs.com/v1`.
func LogRequests ¶
LogRequests allows the logging of HTTP request and responses - will default to false (disabled).
func Logger ¶
Logger allows for a custom implementation to handle the debug log messages - defaults to using the Go standard log package.
func Transporter ¶
func Transporter(transporter http.RoundTripper) Option
Transporter allows the customisation of the RoundTripper used to communicate with the API - will default to the Go default.
      
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       service
        | 
      |
| 
         
          
            account
            
            
          
           
      Package account is responsible for retrieving information related to the current account. 
         | 
      Package account is responsible for retrieving information related to the current account. | 
| 
         
          
            cloud_accounts
            
            
          
           
      Package cloud_accounts allows CRUD operations on the Cloud Account resource. 
         | 
      Package cloud_accounts allows CRUD operations on the Cloud Account resource. | 
| 
         
          
            databases
            
            
          
           
      Package databases allows CRUD operations on the Databases resource - a sub-resource of Subscriptions. 
         | 
      Package databases allows CRUD operations on the Databases resource - a sub-resource of Subscriptions. | 
| 
         
          
            regions
            
            
          
           
      Package regions contains the API calls for the Active-Active Subscription regions service. 
         | 
      Package regions contains the API calls for the Active-Active Subscription regions service. | 
| 
         
          
            subscriptions
            
            
          
           
      Package subscriptions allows CRUD operations on the Subscriptions resource. 
         | 
      Package subscriptions allows CRUD operations on the Subscriptions resource. |