heroku

package
v5.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultPostAppCreateDelay    = int64(10)
	DefaultPostSpaceCreateDelay  = int64(5)
	DefaultPostDomainCreateDelay = int64(5)

	// Default custom timeouts
	DefaultAddonCreateTimeout         = int64(20)
	DefaultSetAddonConfigVarsInState  = true
	DefaultSetAppAllConfigVarsInState = true
)
View Source
const (
	DeployTargetTypeSpace  = "space"
	DeployTargetTypeRegion = "region"
)

Variables

View Source
var (
	TeamMemberRoles = []string{"admin", "member", "viewer", "collaborator", "owner"}
)

Functions

func AddOnStateRefreshFunc

func AddOnStateRefreshFunc(client *heroku.Service, appID, addOnID string) resource.StateRefreshFunc

AddOnStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an AddOn.

func BuildStateRefreshFunc

func BuildStateRefreshFunc(client *heroku.Service, app, id string) resource.StateRefreshFunc

Returns a resource.StateRefreshFunc that is used to watch a Build.

func Provider

func Provider() *schema.Provider

Provider returns a terraform.ResourceProvider.

func SliceContainsString

func SliceContainsString(s []string, e string) bool

func SpacePeeringConnAccepterStateRefreshFunc

func SpacePeeringConnAccepterStateRefreshFunc(client *heroku.Service, spaceIdentity string, pcxID string) resource.StateRefreshFunc

SpaceStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Space peering connection. Connections go through a provisioning process.

func SpaceStateRefreshFunc

func SpaceStateRefreshFunc(client *heroku.Service, id string) resource.StateRefreshFunc

SpaceStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Space.

Types

type Config

type Config struct {
	Api       *heroku.Service
	APIKey    string
	DebugHTTP bool
	Email     string
	Headers   http.Header
	URL       string

	// Delays
	PostAppCreateDelay    int64
	PostDomainCreateDelay int64
	PostSpaceCreateDelay  int64

	// Timeouts
	AddonCreateTimeout int64

	// Customization
	SetAddonConfigVarsInState  bool
	SetAppAllConfigVarsInState bool
}

func NewConfig

func NewConfig() *Config

func (Config) String

func (c Config) String() string

Jump to

Keyboard shortcuts

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