herokux

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMTLSProvisionVerifyTimeout                    = int64(10)
	DefaultMTLSMTLSDeprovisionVerifyTimeout              = int64(10)
	DefaultMTLSIPRuleCreateVerifyTimeout                 = int64(20)
	DefaultMTLSCertificateCreateVerifyTimeout            = int64(10)
	DefaultMTLSCertificateDeleteVerifyTimeout            = int64(10)
	DefaultKafkaCGCreateVerifyTimeout                    = int64(10)
	DefaultKafkaCGDeleteVerifyTimeout                    = int64(10)
	DefaultKafkaTopicCreateVerifyTimeout                 = int64(10)
	DefaultKafkaTopicUpdateVerifyTimeout                 = int64(10)
	DefaultPrivatelinkCreateVerifyTimeout                = int64(15)
	DefaultPrivatelinkDeleteVerifyTimeout                = int64(15)
	DefaultPrivatelinkAllowedAccountsAddVerifyTimeout    = int64(10)
	DefaultPrivatelinkAllowedAccountsRemoveVerifyTimeout = int64(10)
	DefaultDataConnectorCreateVerifyTimeout              = int64(20)
	DefaultDataConnectorSettingsUpdateVerifyTimeout      = int64(10)
	DefaultDataConnectorDeleteVerifyTimeout              = int64(10)
	DefaultDataConnectorStatusUpdateVerifyTimeout        = int64(10)
	DefaultPostgresCredentialPreCreateVerifyTimeout      = int64(45)
	DefaultPostgresCredentialCreateVerifyTimeout         = int64(10)
	DefaultPostgresCredentialDeleteVerifyTimeout         = int64(10)
	DefaultPrivateSpaceCreateVerifyTimeout               = int64(20)
	DefaultAppContainerReleaseVerifyTimeout              = int64(20)

	DefaultPostgresSettingsModifyDelay = int64(2)
	DefaultConnectMappingModifyDelay   = int64(15)
)
View Source
const (
	ReleaseStatusSucceeded = "succeeded"
	ReleaseStatusPending   = "pending"
	ReleaseStatusError     = "error"
	ReleaseStatusUnknown   = "unknown"
)
View Source
const (
	CertExpirationDateFormat = "02 Jan 06 15:04 -0700" // store DateTime in RC822Z format.
)
View Source
const (
	EveryTenMinFrequency = "every_ten_minutes"
)
View Source
const (
	Leader = "leader"
)
View Source
const (
	OneWeekInSeconds = 604800
)
View Source
const (
	// StateRefreshPollIntervalFrequency defines the polling frequency.
	StateRefreshPollIntervalFrequency = 20
)
View Source
const (
	ValidCredentialNameRegex = `^[a-zA-Z0-9_-]{1,50}$`
)

Variables

View Source
var (
	// StateRefreshPollInterval defines the default polling interval in seconds.
	StateRefreshPollInterval = StateRefreshPollIntervalFrequency * time.Second
)
View Source
var (
	UserAgent = fmt.Sprintf("terraform-provider-herokux/v%s", version.ProviderVersion)
)
View Source
var (
	ValidSchedulerJobDynoSizes = []string{
		"Hobby", "Free", "Basic", "Eco",
		"Standard-1X", "Standard-2X",
		"Performance-M", "Performance-L",
		"Private-S", "Private-M", "Private-L",
		"Shield-S", "Shield-M", "Shield-L",
	}
)

Functions

func AddOnStateRefreshFunc added in v0.7.0

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

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

func ContainsString added in v0.16.0

func ContainsString(s []string, str string) bool

func DataConnectorCreateStateRefreshFunc added in v0.7.0

func DataConnectorCreateStateRefreshFunc(client *api.Client, dcID string) resource.StateRefreshFunc

func DataConnectorDeleteStateRefreshFunc added in v0.7.0

func DataConnectorDeleteStateRefreshFunc(client *api.Client, dcID string) resource.StateRefreshFunc

func DataConnectorSettingsUpdateRefreshFunc added in v0.20.4

func DataConnectorSettingsUpdateRefreshFunc(client *api.Client, connectorID string, settings map[string]interface{}) resource.StateRefreshFunc

func DataConnectorStatusRefreshFunc added in v0.20.4

func DataConnectorStatusRefreshFunc(client *api.Client, dcID string, pendingState, targetState string) resource.StateRefreshFunc

func FollowStateRefreshFunc added in v0.7.0

func FollowStateRefreshFunc(api *api.Client, dbID string) resource.StateRefreshFunc

FollowStateRefreshFunc checks if a DB is ready to be followed

func KafkaMtlsIPRuleStateRefreshFunc added in v0.29.0

func KafkaMtlsIPRuleStateRefreshFunc(client *api.Client, kafkaID, ipRuleID string) resource.StateRefreshFunc

func MTLSCertificateDeletionStateRefreshFunc added in v0.3.0

func MTLSCertificateDeletionStateRefreshFunc(client *api.Client, dbName, certID string) resource.StateRefreshFunc

func MTLSDeletionStateRefreshFunc added in v0.3.0

func MTLSDeletionStateRefreshFunc(client *api.Client, dbName string) resource.StateRefreshFunc

func MTLSSCertStateRefreshFunc added in v0.3.0

func MTLSSCertStateRefreshFunc(client *api.Client, dbName, certID string) resource.StateRefreshFunc

func MTLSSCreationStateRefreshFunc added in v0.2.0

func MTLSSCreationStateRefreshFunc(client *api.Client, dbName string) resource.StateRefreshFunc

func MTLSSIPRuleStateRefreshFunc added in v0.2.0

func MTLSSIPRuleStateRefreshFunc(client *api.Client, dbName, ipRuleID string) resource.StateRefreshFunc

func New

func New() *schema.Provider

func PrivatelinkCreateStateRefreshFunc added in v0.6.0

func PrivatelinkCreateStateRefreshFunc(client *api.Client, addonID string) resource.StateRefreshFunc

func PrivatelinkDeleteStateRefreshFunc added in v0.6.0

func PrivatelinkDeleteStateRefreshFunc(client *api.Client, addonID string) resource.StateRefreshFunc

func PrivatelinkUpdateStateRefreshFunc added in v0.6.0

func PrivatelinkUpdateStateRefreshFunc(client *api.Client, addonID string) resource.StateRefreshFunc

func ShieldPrivateSpaceStateRefreshFunc added in v0.11.0

func ShieldPrivateSpaceStateRefreshFunc(client *heroku.Service, spaceID string) resource.StateRefreshFunc

Types

type Config

type Config struct {
	API         *api.Client
	PlatformAPI *heroku.Service

	Headers map[string]string

	// Custom Timeouts
	MTLSProvisionVerifyTimeout                    int64
	MTLSDeprovisionVerifyTimeout                  int64
	MTLSIPRuleCreateVerifyTimeout                 int64
	MTLSCertificateCreateVerifyTimeout            int64
	MTLSCertificateDeleteVerifyTimeout            int64
	KafkaCGCreateVerifyTimeout                    int64
	KafkaCGDeleteVerifyTimeout                    int64
	KafkaTopicCreateVerifyTimeout                 int64
	KafkaTopicUpdateVerifyTimeout                 int64
	PrivatelinkCreateVerifyTimeout                int64
	PrivatelinkDeleteVerifyTimeout                int64
	PrivatelinkAllowedAccountsAddVerifyTimeout    int64
	PrivatelinkAllowedAccountsRemoveVerifyTimeout int64
	DataConnectorCreateVerifyTimeout              int64
	DataConnectorSettingsUpdateVerifyTimeout      int64
	DataConnectorDeleteVerifyTimeout              int64
	DataConnectorStatusUpdateVerifyTimeout        int64
	PostgresCredentialCreateVerifyTimeout         int64
	PostgresCredentialPreCreateVerifyTimeout      int64
	PostgresCredentialDeleteVerifyTimeout         int64
	PrivateSpaceCreateVerifyTimeout               int64
	AppContainerReleaseVerifyTimeout              int64

	// Custom Delays
	PostgresSettingsModifyDelay int64
	ConnectMappingModifyDelay   int64
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

Source Files

Jump to

Keyboard shortcuts

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