actions

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: AGPL-3.0 Imports: 23 Imported by: 0

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")

	// ConfigFile is the name of the json config file
	ConfigFile = "config/config.json"

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

	// The org for this instance of the app
	Org string

	// 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

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

func DatabasesPut added in v0.2.0

func DatabasesPut(c buffalo.Context) error

DatabasesPut modifies a database in a given account

func DatabasesPutState added in v0.8.0

func DatabasesPutState(c buffalo.Context) error

DatabasesPutState stops or starts a database in a given account

func ErrCode added in v0.10.0

func ErrCode(msg string, err error) error

func PingPong

func PingPong(c buffalo.Context) error

PingPong responds to a ping

func SnapshotsDelete added in v0.14.0

func SnapshotsDelete(c buffalo.Context) error

SnapshotsDelete deletes a specific database snapshot

func SnapshotsGet added in v0.12.0

func SnapshotsGet(c buffalo.Context) error

SnapshotsGet returns information about a specific database snapshot

func SnapshotsList added in v0.12.0

func SnapshotsList(c buffalo.Context) error

SnapshotsList gets a list of snapshots for a given database instance or cluster

func SnapshotsPost added in v0.14.0

func SnapshotsPost(c buffalo.Context) error

SnapshotsPost creates a manual snapshot for a given database instance or cluster

func VersionHandler added in v0.5.0

func VersionHandler(c buffalo.Context) error

VersionHandler returns the app version.

Types

type CreateDBClusterInput added in v0.13.0

type CreateDBClusterInput struct {
	BackupRetentionPeriod       *int64
	DBClusterIdentifier         *string
	DBClusterParameterGroupName *string
	DBSubnetGroupName           *string
	EnableCloudwatchLogsExports []*string
	Engine                      *string
	EngineMode                  *string
	EngineVersion               *string
	MasterUserPassword          *string
	MasterUsername              *string
	Port                        *int64
	ScalingConfiguration        *ScalingConfiguration
	SnapshotIdentifier          *string
	StorageEncrypted            *bool
	Tags                        []*Tag
	VpcSecurityGroupIds         []*string
}

CreateDBClusterInput is the input for creating a new database cluster based on https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#CreateDBClusterInput

type CreateDBInstanceInput added in v0.13.0

type CreateDBInstanceInput struct {
	AllocatedStorage            *int64
	BackupRetentionPeriod       *int64
	DBClusterIdentifier         *string
	DBInstanceClass             *string
	DBInstanceIdentifier        *string
	DBParameterGroupName        *string
	DBSubnetGroupName           *string
	EnableCloudwatchLogsExports []*string
	Engine                      *string
	EngineVersion               *string
	MasterUserPassword          *string
	MasterUsername              *string
	MultiAZ                     *bool
	Port                        *int64
	SnapshotIdentifier          *string
	StorageEncrypted            *bool
	Tags                        []*Tag
	VpcSecurityGroupIds         []*string
}

CreateDBInstanceInput is the input for creating a new database instance based on https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#CreateDBInstanceInput

type DatabaseCreateRequest added in v0.13.0

type DatabaseCreateRequest struct {
	Cluster  *CreateDBClusterInput
	Instance *CreateDBInstanceInput
}

func (DatabaseCreateRequest) String added in v0.13.0

func (dcr DatabaseCreateRequest) String() string

type DatabaseModifyInput added in v0.2.0

DatabaseModifyInput is the input for modifying an existing database

type DatabaseResponse added in v0.13.0

DatabaseResponse is the output from database operations

type DatabaseStateInput added in v0.8.0

type DatabaseStateInput struct {
	State string
}

DatabaseStateInput is the input for changing the database state

type ScalingConfiguration added in v0.13.0

type ScalingConfiguration struct {
	AutoPause             *bool
	MaxCapacity           *int64
	MinCapacity           *int64
	SecondsUntilAutoPause *int64
	TimeoutAction         *string
}

type SnapshotCreateRequest added in v0.14.0

type SnapshotCreateRequest struct {
	SnapshotIdentifier string
}

type Tag added in v0.13.0

type Tag struct {
	Key   *string
	Value *string
}

Jump to

Keyboard shortcuts

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