actions

package
v0.5.0-pre Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: AGPL-3.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ENV is used to help switch settings based on where the
	// application is being run. Default is "development".
	ENV = envy.Get("GO_ENV", "development")

	// AppConfig holds the configuration information for the app
	AppConfig common.Config

	// RDS is a global map of RDS clients
	RDS = make(map[string]rds.Client)

	// Version is the main version number
	Version = rdsapi.Version

	// VersionPrerelease is a prerelease marker
	VersionPrerelease = rdsapi.VersionPrerelease

	// BuildStamp is the timestamp the binary was built, it should be set at buildtime with ldflags
	BuildStamp = rdsapi.BuildStamp

	// GitHash is the git sha of the built binary, it should be set at buildtime with ldflags
	GitHash = rdsapi.GitHash
)

Functions

func App

func App() *buffalo.App

App is where all routes and middleware for buffalo should be defined

func DatabasesDelete

func DatabasesDelete(c buffalo.Context) error

DatabasesDelete deletes a database in a given account It will delete the database instance with the given {db} name and will also delete the associated cluster if the instance belongs to a cluster and is the last remaining member. If the snapshot=true parameter is given, it will create a final snapshot of the instance/cluster.

func DatabasesGet

func DatabasesGet(c buffalo.Context) error

DatabasesGet gets details about a specific database If the `all=true` parameter is passed it will return a list of clusters in addition to instances.

func DatabasesList added in v0.0.7

func DatabasesList(c buffalo.Context) error

DatabasesList gets a list of databases for a given account If the `all=true` parameter is passed it will return a list of clusters in addition to instances.

func DatabasesPost

func DatabasesPost(c buffalo.Context) error

DatabasesPost creates a database in a given account It will create a database instance as specified by the `Instance` hash parameters. If a `Cluster` hash is also given, it will first create an RDS cluster and the instance next.

func DatabasesPut added in v0.2.0

func DatabasesPut(c buffalo.Context) error

DatabasesPut modifies a database in a given account Either Cluster or Instance input parameters can be specified for a request Tags list can be given with any key/value tags to add/update

func PingPong

func PingPong(c buffalo.Context) error

PingPong responds to a ping

func VersionHandler added in v0.5.0

func VersionHandler(c buffalo.Context) error

VersionHandler returns the app version.

Types

type DatabaseCreateInput added in v0.0.7

DatabaseCreateInput is the input for creating a new database The Instance part is required and defines the database instance properties The Cluster is optional if the created database instance belongs to a new cluster

type DatabaseModifyInput added in v0.2.0

DatabaseModifyInput is the input for modifying an existing database

Jump to

Keyboard shortcuts

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