sbo-go-library

module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT

README

Service Binding Go Client for Service Binding Operator

sbo-go-library unit tests status Go Report Card GitHub go.mod Go version of a Go module

Install

go get -u github.com/RHEcosystemAppEng/sbo-go-library

then include the client in your code

import (
    github.com/RHEcosystemAppEng/sbo-go-library/pkg/binding/convert
)

// call
connString, err := convert.GetMongoDBConnectionString()
if err != nil {
    panic(err)
}
fmt.Println(connString)
connString, err = convert.GetPostgreSQLConnectionString()
if err != nil {
    panic(err)
}
fmt.Println(connString))

run locally

SERVICE_BINDING_ROOT=bindings go run ./cmd/<main.go>

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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