azure

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureCredential

func NewAzureCredential() (*azidentity.DefaultAzureCredential, error)

Types

type CosmosDBClient added in v0.0.19

type CosmosDBClient struct {
	// contains filtered or unexported fields
}

func NewCosmosDBClient added in v0.0.19

func NewCosmosDBClient(account string, db string, container string, cred azcore.TokenCredential) (*CosmosDBClient, error)

type CosmosDBContainerClient added in v0.0.19

type CosmosDBContainerClient[T any] struct {
	// contains filtered or unexported fields
}

func NewCosmosDBContainerClient added in v0.0.19

func NewCosmosDBContainerClient[T any](cosmosDBClient *CosmosDBClient, partitionKey string, ttl *int) (*CosmosDBContainerClient[T], error)

func (*CosmosDBContainerClient[T]) Get added in v0.0.19

func (client *CosmosDBContainerClient[T]) Get(ctx context.Context, key string) (*T, error)

func (*CosmosDBContainerClient[T]) Set added in v0.0.19

func (client *CosmosDBContainerClient[T]) Set(ctx context.Context, key string, value T) error

Jump to

Keyboard shortcuts

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