cosmos

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *azurex.Client
	// contains filtered or unexported fields
}

Client is the cosmos client struct

func New

func New(p *azurex.Client) *Client

New creates a new cosmos client

func (*Client) GetConnectionString

func (x *Client) GetConnectionString(ctx context.Context, cosmosAccountName string) (string, error)

GetConnectionString builds connection string for the cosmos account

func (*Client) GetKey

func (x *Client) GetKey(ctx context.Context, cosmosAccountName string) (string, error)

GetKey fetches accesskey for the cosmos account

type CosmosClient

type CosmosClient interface {
	ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result documentdb.DatabaseAccountListKeysResult, err error)
}

CosmosClient is the mock interface for cosmosclient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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