blue-sdk-go

module
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0

README

main

(work-in-progress)

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:

# For Ripple users:
ALPHAUS_RIPPLE_CLIENT_ID
ALPHAUS_RIPPLE_CLIENT_SECRET

# For Wave users:
ALPHAUS_WAVE_CLIENT_ID
ALPHAUS_WAVE_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.
curmgt
v1
Package curmgt is a reverse proxy.
Package curmgt is a reverse proxy.
echo
v1
Package echo is a reverse proxy.
Package echo is a reverse proxy.
iam
v1
Package iam is a reverse proxy.
Package iam is a reverse proxy.
operations
v1
Package operations is a reverse proxy.
Package operations is a reverse proxy.
org
v1
Package org is a reverse proxy.
Package org is a reverse proxy.
protoc-gen-openapiv2
types
aws
waveglobalconfig
v1
Package waveglobalconfig is a reverse proxy.
Package waveglobalconfig is a reverse proxy.

Jump to

Keyboard shortcuts

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