utils

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentialsUsername

func GetCredentialsUsername(ctx context.Context, apiClient RedisClient, projectId, instanceId, credentialsId string) (string, error)

func GetInstanceName

func GetInstanceName(ctx context.Context, apiClient RedisClient, projectId, instanceId string) (string, error)

func LoadPlanId

func LoadPlanId(planName, version string, offerings *redis.ListOfferingsResponse) (*string, error)

func ValidatePlanId

func ValidatePlanId(planId string, offerings *redis.ListOfferingsResponse) error

Types

type RedisClient

type RedisClient interface {
	GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*redis.Instance, error)
	GetCredentialsExecute(ctx context.Context, projectId, instanceId, credentialsId string) (*redis.CredentialsResponse, error)
}

Jump to

Keyboard shortcuts

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