config

package
v0.0.0-...-e508a8a Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiToken

func GetApiToken(ctx *pulumi.Context) string

The API token for operations. This can also be provided as an environment variable `STATUSCAKE_API_TOKEN`

func GetMaxBackoff

func GetMaxBackoff(ctx *pulumi.Context) int

Maximum backoff period in seconds after failed API calls. This can also be provided as an environment variable `STATUSCAKE_MAX_BACKOFF`

func GetMinBackoff

func GetMinBackoff(ctx *pulumi.Context) int

Minimum backoff period in seconds after failed API calls. This can also be provided as an environment variable `STATUSCAKE_MIN_BACKOFF`

func GetRetries

func GetRetries(ctx *pulumi.Context) int

Maximum number of retries to perform when an API request fails. This can also be provided as an environment variable `STATUSCAKE_RETRIES`

func GetRps

func GetRps(ctx *pulumi.Context) int

RPS limit to apply when making calls to the API. This can also be provided as an environment variable `STATUSCAKE_RPS`

func GetStatuscakeCustomEndpoint

func GetStatuscakeCustomEndpoint(ctx *pulumi.Context) string

Custom endpoint to which request will be made. This can also be provided as an environment variable `STATUCAKE_CUSTOM_ENDPOINT`

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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