blue-sdk-go

module
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0

README

main

The main branch can be broken. Make sure to use tagged releases.

By default, this library will look for the following environment variables for authentication:

ALPHAUS_CLIENT_ID
ALPHAUS_CLIENT_SECRET

To use the default client, you can try something like:

ctx := context.Background()
client, _ := awscost.NewClient(ctx)
defer client.Close()
...

You can also provide your own gRPC connection:

var opts []grpc.DialOption
creds := credentials.NewTLS(&tls.Config{})
opts = append(opts, grpc.WithTransportCredentials(creds))
opts = append(opts, grpc.WithBlock())
opts = append(opts, grpc.WithPerRPCCredentials(
	session.NewRpcCredentials(session.RpcCredentialsInput{
		LoginUrl:     session.LoginUrlRipple,
		ClientId:     "my-client-id",
		ClientSecret: "my-client-secret",
	}),
))

conn, _ := grpc.DialContext(context.Background(), session.BlueEndpoint, opts...)
defer conn.Close()
client := blue.NewBlueClient(conn)
...

Directories

Path Synopsis
awscost
v1
Package awscost is a reverse proxy.
Package awscost is a reverse proxy.
blue
curmgt/v1
Package curmgt is a reverse proxy.
Package curmgt is a reverse proxy.
v1
Package blue is a reverse proxy.
Package blue is a reverse proxy.
echo
v1
Package echo is a reverse proxy.
Package echo is a reverse proxy.
protoc-gen-openapiv2

Jump to

Keyboard shortcuts

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