utils

package
v0.0.0-...-8f7a22b Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBConnectionDetails

func GetDBConnectionDetails() (string, error)

GetDBConnectionDetails - Loads database connection details from UPS "possum-db"

func GetMyApplicationURIs

func GetMyApplicationURIs() ([]string, error)

GetMyApplicationURIs - fetched application URIs from VCAP Application

func GetPassel

func GetPassel() ([]string, error)

GetPassel - Returns the passel of possums

func GetPasselState

func GetPasselState(db *sql.DB, passel []string) (map[string]string, error)

GetPasselState - returns current state for the given passel

func GetPassword

func GetPassword() (string, error)

GetPassword - Returns the basic auth password

func GetState

func GetState(db *sql.DB, possum string) (string, error)

GetState - returns current state for the given possum

func GetUsername

func GetUsername() (string, error)

GetUsername - Returns the basic auth username

func SetupStateDB

func SetupStateDB(db *sql.DB) error

SetupStateDB - creates the state DB if it does not exist

func WriteState

func WriteState(db *sql.DB, desiredPossum string, desiredState string) error

WriteState - Updates the state of a possum

Types

This section is empty.

Jump to

Keyboard shortcuts

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