Categorygithub.com/ydb-platform/ydb-go-yc-metadata
modulepackage
0.6.1
Repository: https://github.com/ydb-platform/ydb-go-yc-metadata.git
Documentation: pkg.go.dev

# README

ydb-go-yc-metadata

helpers to connect to YDB inside yandex-cloud using metadata service

godoc

Overview

Currently package provides helpers to connect to YDB inside yandex-cloud.

Usage

import (
	yc "github.com/ydb-platform/ydb-go-yc-metadata"
)
...
    db, err := ydb.Open(
        ctx,
	os.Getenv("YDB_CONNECTION_STRING"),
        yc.WithInternalCA(),
        yc.WithCredentials(ctx), // auth inside cloud (virtual machine or yandex function)
    )
    

# Packages

No description provided by the author

# Functions

NewInstanceServiceAccount makes credentials provider that uses instance metadata url to obtain token for service account attached to instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author