modulepackage
0.0.0-20201027041325-417428f44adb
Repository: https://github.com/fedorpatlin/go-sdk.git
Documentation: pkg.go.dev
# README
Yandex.Cloud Go SDK
Go SDK for Yandex.Cloud services.
NOTE: SDK is under development, and may make backwards-incompatible changes.
Installation
go get github.com/fedorpatlin/go-sdk
Example usages
Initializing SDK
sdk, err := ycsdk.Build(ctx, ycsdk.Config{
Credentials: ycsdk.OAuthToken(token),
})
if err != nil {
log.Fatal(err)
}
More examples
More examples can be found in examples dir.
# Packages
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
# Functions
Build creates an SDK instance.
InstanceServiceAccount returns credentials for Compute Instance Service Account.
No description provided by the author
OAuthToken returns API credentials for user Yandex Passport OAuth token, that can be received on page https://oauth.yandex.ru/authorize?response_type=token&client_id=1a6990aa636648e9b2ef855fa7bec2fb See https://cloud.yandex.ru/docs/iam/concepts/authorization/oauth-token for details.
ServiceAccountKey returns credentials for the given IAM Key.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
revive:disable:var-naming.
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
No description provided by the author
No description provided by the author
InstanceMetadata is address at the metadata server is accessible from inside the virtual machine.
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
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
No description provided by the author
No description provided by the author
revive:enable:var-naming.
# Structs
No description provided by the author
Config is a config that is used to create SDK instance.
IAMTokenCredentials implements Credentials with IAM token as-is.
No description provided by the author
No description provided by the author
No description provided by the author
NoCredentials implements Credentials, it allows to create unauthenticated connections.
SDK is a Yandex.Cloud SDK.
No description provided by the author
# Interfaces
Credentials is an abstraction of API authorization credentials.
ExchangeableCredentials can be exchanged for IAM Token in IAM Token Service, that can be used to authorize API calls.
NonExchangeableCredentials allows to get IAM Token without calling IAM Token Service.
No description provided by the author
# Type aliases
No description provided by the author