Documentation ¶
Overview ¶
Package scalingo is a generated GoMock package.
Index ¶
- Constants
- Variables
- func HasFailedString(status DeploymentStatus) bool
- func IsFinishedString(status DeploymentStatus) bool
- func IsOTPRequired(err error) bool
- func MockAuth(ctrl *gomock.Controller) *httpmock.MockClient
- type ACMEErrorVariables
- type API
- type Addon
- type AddonLogsURLRes
- type AddonProvider
- type AddonProvidersService
- type AddonProvisionParams
- type AddonProvisionParamsWrapper
- type AddonRes
- type AddonStatus
- type AddonToken
- type AddonTokenRes
- type AddonUpgradeParams
- type AddonUpgradeParamsWrapper
- type AddonsRes
- type AddonsService
- type Alert
- type AlertAddParams
- type AlertRes
- type AlertUpdateParams
- type AlertsRes
- type AlertsService
- type App
- type AppLinks
- type AppResponse
- type AppStatsRes
- type AppStatus
- type AppsContainerTypesRes
- type AppsCreateOpts
- type AppsPsRes
- type AppsRestartParams
- type AppsScaleParams
- type AppsService
- type AuthStruct
- type AuthenticationData
- type Autoscaler
- type AutoscalerAddParams
- type AutoscalerRes
- type AutoscalerUpdateParams
- type AutoscalersRes
- type AutoscalersService
- type Backup
- type BackupMethod
- type BackupRes
- type BackupStatus
- type BackupsRes
- type BackupsService
- type BearerTokenRes
- type Category
- type Client
- func (c *Client) AddonDestroy(ctx context.Context, app, addonID string) error
- func (c *Client) AddonLogsArchives(ctx context.Context, app, addonID string, page int) (*LogsArchivesResponse, error)
- func (c *Client) AddonLogsURL(ctx context.Context, app, addonID string) (string, error)
- func (c *Client) AddonProviderPlansList(ctx context.Context, addon string) ([]*Plan, error)
- func (c *Client) AddonProvidersList(ctx context.Context) ([]*AddonProvider, error)
- func (c *Client) AddonProvision(ctx context.Context, app string, params AddonProvisionParams) (AddonRes, error)
- func (c *Client) AddonShow(ctx context.Context, app, addonID string) (Addon, error)
- func (c *Client) AddonToken(ctx context.Context, app, addonID string) (string, error)
- func (c *Client) AddonUpgrade(ctx context.Context, app, addonID string, params AddonUpgradeParams) (AddonRes, error)
- func (c *Client) AddonsList(ctx context.Context, app string) ([]*Addon, error)
- func (c *Client) AlertAdd(ctx context.Context, app string, params AlertAddParams) (*Alert, error)
- func (c *Client) AlertRemove(ctx context.Context, app, id string) error
- func (c *Client) AlertShow(ctx context.Context, app, id string) (*Alert, error)
- func (c *Client) AlertUpdate(ctx context.Context, app, id string, params AlertUpdateParams) (*Alert, error)
- func (c *Client) AlertsList(ctx context.Context, app string) ([]*Alert, error)
- func (c *Client) AppsContainerTypes(ctx context.Context, app string) ([]ContainerType, error)
- func (c *Client) AppsContainersPs(ctx context.Context, app string) ([]Container, error)
- func (c *Client) AppsCreate(ctx context.Context, opts AppsCreateOpts) (*App, error)
- func (c *Client) AppsDestroy(ctx context.Context, name string, currentName string) error
- func (c *Client) AppsForceHTTPS(ctx context.Context, name string, enable bool) (*App, error)
- func (c *Client) AppsList(ctx context.Context) ([]*App, error)
- func (c *Client) AppsRename(ctx context.Context, name string, newName string) (*App, error)
- func (c *Client) AppsRestart(ctx context.Context, app string, scope *AppsRestartParams) (*http.Response, error)
- func (c *Client) AppsRouterLogs(ctx context.Context, name string, enable bool) (*App, error)
- func (c *Client) AppsScale(ctx context.Context, app string, params *AppsScaleParams) (*http.Response, error)
- func (c *Client) AppsSetStack(ctx context.Context, app string, stackID string) (*App, error)
- func (c *Client) AppsShow(ctx context.Context, appName string) (*App, error)
- func (c *Client) AppsStats(ctx context.Context, app string) (*AppStatsRes, error)
- func (c *Client) AppsStickySession(ctx context.Context, name string, enable bool) (*App, error)
- func (c *Client) AppsTransfer(ctx context.Context, name string, email string) (*App, error)
- func (c *Client) AuthAPI() http.Client
- func (c *Client) AutoscalerAdd(ctx context.Context, app string, params AutoscalerAddParams) (*Autoscaler, error)
- func (c *Client) AutoscalerRemove(ctx context.Context, app, id string) error
- func (c *Client) AutoscalerShow(ctx context.Context, app, id string) (*Autoscaler, error)
- func (c *Client) AutoscalerUpdate(ctx context.Context, app, id string, params AutoscalerUpdateParams) (*Autoscaler, error)
- func (c *Client) AutoscalersList(ctx context.Context, app string) ([]Autoscaler, error)
- func (c *Client) BackupCreate(ctx context.Context, app, addonID string) (*Backup, error)
- func (c *Client) BackupDownloadURL(ctx context.Context, app, addonID, backupID string) (string, error)
- func (c *Client) BackupList(ctx context.Context, app string, addonID string) ([]Backup, error)
- func (c *Client) BackupShow(ctx context.Context, app, addonID, backup string) (*Backup, error)
- func (c *Client) CollaboratorAdd(ctx context.Context, app string, email string) (Collaborator, error)
- func (c *Client) CollaboratorRemove(ctx context.Context, app string, id string) error
- func (c *Client) CollaboratorsList(ctx context.Context, app string) ([]Collaborator, error)
- func (c *Client) ContainerSizesList(ctx context.Context) ([]ContainerSize, error)
- func (c *Client) ContainersKill(ctx context.Context, app string, signal string, containerID string) error
- func (c *Client) ContainersStop(ctx context.Context, appName, containerID string) error
- func (c *Client) CreateRegionMigration(ctx context.Context, appID string, params RegionMigrationParams) (RegionMigration, error)
- func (c *Client) CronTasksGet(ctx context.Context, app string) (CronTasks, error)
- func (c *Client) DBAPI(app, addon string) http.Client
- func (c *Client) DatabaseDisableFeature(ctx context.Context, app, addonID, feature string) (DatabaseDisableFeatureResponse, error)
- func (c *Client) DatabaseEnableFeature(ctx context.Context, app, addonID, feature string) (DatabaseEnableFeatureResponse, error)
- func (c *Client) DatabaseShow(ctx context.Context, app, addonID string) (Database, error)
- func (c Client) DatabaseTypeVersion(ctx context.Context, appID, addonID, versionID string) (DatabaseTypeVersion, error)
- func (c *Client) DatabaseUpdatePeriodicBackupsConfig(ctx context.Context, app, addonID string, ...) (Database, error)
- func (c *Client) Deployment(ctx context.Context, app string, deploy string) (*Deployment, error)
- func (c *Client) DeploymentCacheReset(ctx context.Context, app string) error
- func (c *Client) DeploymentList(ctx context.Context, app string) ([]*Deployment, error)
- func (c *Client) DeploymentListWithPagination(ctx context.Context, app string, opts PaginationOpts) ([]*Deployment, PaginationMeta, error)
- func (c *Client) DeploymentLogs(ctx context.Context, deployURL string) (*http.Response, error)
- func (c *Client) DeploymentStream(ctx context.Context, deployURL string) (*websocket.Conn, error)
- func (c *Client) DeploymentsCreate(ctx context.Context, app string, params *DeploymentsCreateParams) (*Deployment, error)
- func (c *Client) DomainSetCanonical(ctx context.Context, app, id string) (Domain, error)
- func (c *Client) DomainSetCertificate(ctx context.Context, app, id, tlsCert, tlsKey string) (Domain, error)
- func (c *Client) DomainUnsetCanonical(ctx context.Context, app string) (Domain, error)
- func (c *Client) DomainUnsetCertificate(ctx context.Context, app, id string) (Domain, error)
- func (c *Client) DomainsAdd(ctx context.Context, app string, d Domain) (Domain, error)
- func (c *Client) DomainsList(ctx context.Context, app string) ([]Domain, error)
- func (c *Client) DomainsRemove(ctx context.Context, app, id string) error
- func (c *Client) DomainsShow(ctx context.Context, app, id string) (Domain, error)
- func (c *Client) EventCategoriesList(ctx context.Context) ([]EventCategory, error)
- func (c *Client) EventTypesList(ctx context.Context) ([]EventType, error)
- func (c *Client) EventsList(ctx context.Context, app string, opts PaginationOpts) (Events, PaginationMeta, error)
- func (c *Client) GetAccessToken(ctx context.Context) (string, error)
- func (c *Client) InvoiceShow(ctx context.Context, id string) (*Invoice, error)
- func (c *Client) InvoicesList(ctx context.Context, opts PaginationOpts) (Invoices, PaginationMeta, error)
- func (c *Client) KeysAdd(ctx context.Context, name string, content string) (*Key, error)
- func (c *Client) KeysDelete(ctx context.Context, id string) error
- func (c *Client) KeysList(ctx context.Context) ([]Key, error)
- func (c *Client) ListRegionMigrations(ctx context.Context, appID string) ([]RegionMigration, error)
- func (c *Client) LogDrainAdd(ctx context.Context, app string, params LogDrainAddParams) (*LogDrainRes, error)
- func (c *Client) LogDrainAddonAdd(ctx context.Context, app string, addonID string, params LogDrainAddParams) (*LogDrainRes, error)
- func (c *Client) LogDrainAddonRemove(ctx context.Context, app, addonID string, URL string) error
- func (c *Client) LogDrainRemove(ctx context.Context, app, URL string) error
- func (c *Client) LogDrainsAddonList(ctx context.Context, app string, addonID string) ([]LogDrain, error)
- func (c *Client) LogDrainsList(ctx context.Context, app string) ([]LogDrain, error)
- func (c *Client) Logs(ctx context.Context, logsURL string, n int, filter string) (*http.Response, error)
- func (c *Client) LogsArchives(ctx context.Context, app string, page int) (*LogsArchivesResponse, error)
- func (c *Client) LogsArchivesByCursor(ctx context.Context, app string, cursor string) (*LogsArchivesResponse, error)
- func (c *Client) LogsURL(ctx context.Context, app string) (*http.Response, error)
- func (c *Client) NotificationPlatformByName(ctx context.Context, name string) ([]*NotificationPlatform, error)
- func (c *Client) NotificationPlatformsList(ctx context.Context) ([]*NotificationPlatform, error)
- func (c *Client) NotifierByID(ctx context.Context, app, ID string) (*Notifier, error)
- func (c *Client) NotifierDestroy(ctx context.Context, app, ID string) error
- func (c *Client) NotifierProvision(ctx context.Context, app string, params NotifierParams) (*Notifier, error)
- func (c *Client) NotifierUpdate(ctx context.Context, app, ID string, params NotifierParams) (*Notifier, error)
- func (c *Client) NotifiersList(ctx context.Context, app string) (Notifiers, error)
- func (c *Client) OperationsShow(ctx context.Context, app, opID string) (*Operation, error)
- func (c *Client) OperationsShowFromURL(ctx context.Context, url string) (*Operation, error)
- func (c *Client) RegionsList(ctx context.Context) ([]Region, error)
- func (c *Client) Run(ctx context.Context, opts RunOpts) (*RunRes, error)
- func (c *Client) RunRegionMigrationStep(ctx context.Context, appID, migrationID string, step RegionMigrationStep) error
- func (c *Client) SCMIntegrationsCreate(ctx context.Context, scmType SCMType, url string, accessToken string) (*SCMIntegration, error)
- func (c *Client) SCMIntegrationsDelete(ctx context.Context, id string) error
- func (c *Client) SCMIntegrationsImportKeys(ctx context.Context, id string) ([]Key, error)
- func (c *Client) SCMIntegrationsList(ctx context.Context) ([]SCMIntegration, error)
- func (c *Client) SCMIntegrationsShow(ctx context.Context, id string) (*SCMIntegration, error)
- func (c *Client) SCMRepoLinkCreate(ctx context.Context, app string, params SCMRepoLinkCreateParams) (*SCMRepoLink, error)
- func (c *Client) SCMRepoLinkDelete(ctx context.Context, app string) error
- func (c *Client) SCMRepoLinkDeployments(ctx context.Context, app string) ([]*Deployment, error)
- func (c *Client) SCMRepoLinkList(ctx context.Context, opts PaginationOpts) ([]*SCMRepoLink, PaginationMeta, error)
- func (c *Client) SCMRepoLinkManualDeploy(ctx context.Context, app, branch string) (*Deployment, error)
- func (c *Client) SCMRepoLinkManualReviewApp(ctx context.Context, app, pullRequestID string) error
- func (c *Client) SCMRepoLinkReviewApps(ctx context.Context, app string) ([]*ReviewApp, error)
- func (c *Client) SCMRepoLinkShow(ctx context.Context, app string) (*SCMRepoLink, error)
- func (c *Client) SCMRepoLinkUpdate(ctx context.Context, app string, params SCMRepoLinkUpdateParams) (*SCMRepoLink, error)
- func (c *Client) ScalingoAPI() http.Client
- func (c *Client) Self(ctx context.Context) (*User, error)
- func (c *Client) ShowRegionMigration(ctx context.Context, appID, migrationID string) (RegionMigration, error)
- func (c *Client) SignUp(ctx context.Context, email, password string) error
- func (c *Client) SourcesCreate(ctx context.Context) (*Source, error)
- func (c *Client) StacksList(ctx context.Context) ([]Stack, error)
- func (c *Client) TokenCreate(ctx context.Context, params TokenCreateParams) (Token, error)
- func (c *Client) TokenCreateWithLogin(ctx context.Context, params TokenCreateParams, login LoginParams) (Token, error)
- func (c *Client) TokenExchange(ctx context.Context, token string) (string, error)
- func (c *Client) TokenShow(ctx context.Context, id int) (Token, error)
- func (c *Client) TokensList(ctx context.Context) (Tokens, error)
- func (c *Client) UpdateUser(ctx context.Context, params UpdateUserParams) (*User, error)
- func (c *Client) UserEventsList(ctx context.Context, opts PaginationOpts) (Events, PaginationMeta, error)
- func (c *Client) UserStopFreeTrial(ctx context.Context) error
- func (c *Client) VariableMultipleSet(ctx context.Context, app string, variables Variables) (Variables, int, error)
- func (c *Client) VariableSet(ctx context.Context, app string, name string, value string) (*Variable, int, error)
- func (c *Client) VariableUnset(ctx context.Context, app string, id string) error
- func (c *Client) VariablesList(ctx context.Context, app string) (Variables, error)
- func (c *Client) VariablesListWithoutAlias(ctx context.Context, app string) (Variables, error)
- type ClientConfig
- type Collaborator
- type CollaboratorRes
- type CollaboratorStatus
- type CollaboratorsRes
- type CollaboratorsService
- type Container
- type ContainerSize
- type ContainerSizesService
- type ContainerStat
- type ContainerType
- type ContainersService
- type CronTasks
- type CronTasksService
- type DataAccessConsent
- type Database
- type DatabaseDisableFeatureResponse
- type DatabaseEnableFeatureParams
- type DatabaseEnableFeatureResponse
- type DatabaseFeature
- type DatabaseFeatureStatus
- type DatabaseRes
- type DatabaseStatus
- type DatabaseTypeVersion
- type DatabaseTypeVersionPlugin
- type DatabaseTypeVersionShowResponse
- type DatabaseUpdatePeriodicBackupsConfigParams
- type DatabasesService
- type Deployment
- type DeploymentEvent
- type DeploymentEventDataLog
- type DeploymentEventDataStatus
- type DeploymentEventType
- type DeploymentLinks
- type DeploymentList
- type DeploymentStatus
- type DeploymentsCreateParams
- type DeploymentsCreateRes
- type DeploymentsService
- type DeprecationDate
- type DetailedEvent
- type DetailedNotifier
- type Domain
- type DomainRes
- type DomainsRes
- type DomainsService
- type DownloadURLRes
- type Event
- type EventAcceptCollaboratorType
- type EventAcceptCollaboratorTypeData
- type EventAddCreditType
- type EventAddCreditTypeData
- type EventAddPaymentMethodType
- type EventAddPaymentMethodTypeData
- type EventAddVoucherType
- type EventAddVoucherTypeData
- type EventAddon
- type EventAddonUpdatedType
- type EventAddonUpdatedTypeData
- type EventAlertType
- type EventAlertTypeData
- type EventAuthorizeGithubType
- type EventAuthorizeGithubTypeData
- type EventCategory
- type EventCollaborator
- type EventCrashType
- type EventCrashTypeData
- type EventCreateDataAccessConsentType
- type EventCreateDataAccessConsentTypeData
- type EventDatabaseAddFeatureType
- type EventDatabaseAddFeatureTypeData
- type EventDatabaseRemoveFeatureType
- type EventDatabaseRemoveFeatureTypeData
- type EventDeleteAddonLogDrainType
- type EventDeleteAddonLogDrainTypeData
- type EventDeleteAddonType
- type EventDeleteAddonTypeData
- type EventDeleteAlertType
- type EventDeleteAlertTypeData
- type EventDeleteAppType
- type EventDeleteAutoscalerType
- type EventDeleteAutoscalerTypeData
- type EventDeleteCollaboratorType
- type EventDeleteCollaboratorTypeData
- type EventDeleteDomainType
- type EventDeleteDomainTypeData
- type EventDeleteIntegrationType
- type EventDeleteIntegrationTypeData
- type EventDeleteKeyType
- type EventDeleteKeyTypeData
- type EventDeleteLogDrainType
- type EventDeleteLogDrainTypeData
- type EventDeleteNotifierType
- type EventDeleteNotifierTypeData
- type EventDeleteTokenType
- type EventDeleteTokenTypeData
- type EventDeleteVariableType
- type EventDeleteVariableTypeData
- type EventDeploymentType
- type EventDeploymentTypeData
- type EventEditAppType
- type EventEditAppTypeData
- type EventEditAutoscalerType
- type EventEditAutoscalerTypeData
- type EventEditDomainType
- type EventEditDomainTypeData
- type EventEditHDSContactType
- type EventEditHDSContactTypeData
- type EventEditKeyType
- type EventEditKeyTypeData
- type EventEditNotifierType
- type EventEditNotifierTypeData
- type EventEditVariableType
- type EventEditVariableTypeData
- type EventEditVariablesType
- type EventEditVariablesTypeData
- type EventLinkGithubType
- type EventLinkGithubTypeData
- type EventLinkSCMType
- type EventLinkSCMTypeData
- type EventLoginFailureType
- type EventLoginFailureTypeData
- type EventLoginLockType
- type EventLoginLockTypeData
- type EventLoginSuccessType
- type EventLoginSuccessTypeData
- type EventLoginUnlockSuccessType
- type EventLoginUnlockSuccessTypeData
- type EventNewAddonLogDrainType
- type EventNewAddonLogDrainTypeData
- type EventNewAddonType
- type EventNewAddonTypeData
- type EventNewAlertType
- type EventNewAlertTypeData
- type EventNewAppType
- type EventNewAppTypeData
- type EventNewAutoscalerType
- type EventNewAutoscalerTypeData
- type EventNewCollaboratorType
- type EventNewCollaboratorTypeData
- type EventNewDomainType
- type EventNewDomainTypeData
- type EventNewIntegrationType
- type EventNewIntegrationTypeData
- type EventNewKeyType
- type EventNewKeyTypeData
- type EventNewLogDrainType
- type EventNewLogDrainTypeData
- type EventNewNotifierType
- type EventNewNotifierTypeData
- type EventNewTokenType
- type EventNewTokenTypeData
- type EventNewUserType
- type EventNewUserTypeData
- type EventNewVariableType
- type EventNewVariableTypeData
- type EventPasswordResetQueryType
- type EventPasswordResetQueryTypeData
- type EventPasswordResetSuccessType
- type EventPasswordResetSuccessTypeData
- type EventPaymentAttemptType
- type EventPaymentAttemptTypeData
- type EventRegenerateTokenType
- type EventRegenerateTokenTypeData
- type EventRenameAppType
- type EventRenameAppTypeData
- type EventRepeatedCrashType
- type EventRepeatedCrashTypeData
- type EventRestartType
- type EventRestartTypeData
- type EventResumeAddonType
- type EventResumeAddonTypeData
- type EventRevokeGithubType
- type EventRunType
- type EventRunTypeData
- type EventScaleType
- type EventScaleTypeData
- type EventSecurityTypeData
- type EventStackChangedType
- type EventStackChangedTypeData
- type EventStartRegionMigrationType
- type EventStartRegionMigrationTypeData
- type EventStopAppType
- type EventStopAppTypeData
- type EventSuspendAddonType
- type EventSuspendAddonTypeData
- type EventTfaDisabledType
- type EventTfaDisabledTypeData
- type EventTfaEnabledType
- type EventTfaEnabledTypeData
- type EventTransferAppType
- type EventTransferAppTypeData
- type EventType
- type EventTypeName
- type EventUnlinkGithubType
- type EventUnlinkGithubTypeData
- type EventUnlinkSCMType
- type EventUnlinkSCMTypeData
- type EventUpdateSCMType
- type EventUpgradeAddonType
- type EventUpgradeAddonTypeData
- type EventUpgradeDatabaseType
- type EventUpgradeDatabaseTypeData
- type EventUser
- type EventVariable
- type EventVariables
- type Events
- type EventsRes
- type EventsService
- type Instance
- type InstanceStatus
- type InstanceType
- type Invoice
- type InvoiceDetailedItem
- type InvoiceItem
- type InvoiceRes
- type Invoices
- type InvoicesRes
- type InvoicesService
- type Job
- type Key
- type KeyRes
- type KeysRes
- type KeysService
- type LetsEncryptStatus
- type ListParams
- type LogDrain
- type LogDrainAddParams
- type LogDrainAddPayload
- type LogDrainRes
- type LogDrainsRes
- type LogDrainsService
- type LoginParams
- type LogsArchiveItem
- type LogsArchivesResponse
- type LogsArchivesService
- type LogsService
- type MockSubresourceService
- type MockSubresourceServiceMockRecorder
- type NotificationPlatform
- type NotificationPlatformsService
- type Notifier
- func (not *Notifier) GetID() string
- func (not *Notifier) GetName() string
- func (not *Notifier) GetNotifier() *Notifier
- func (not *Notifier) GetSelectedEventIDs() []string
- func (not *Notifier) GetSendAllAlerts() bool
- func (not *Notifier) GetSendAllEvents() bool
- func (not *Notifier) GetType() NotifierType
- func (not *Notifier) IsActive() bool
- func (pnot *Notifier) Specialize() DetailedNotifier
- func (not *Notifier) TypeDataMap() map[string]interface{}
- func (not *Notifier) TypeDataPtr() interface{}
- func (not *Notifier) When() string
- type NotifierEmailType
- type NotifierEmailTypeData
- type NotifierOutput
- type NotifierParams
- type NotifierSlackType
- type NotifierSlackTypeData
- type NotifierType
- type NotifierTypeDataParams
- type NotifierWebhookType
- type NotifierWebhookTypeData
- type Notifiers
- type NotifiersService
- type Operation
- type OperationResponse
- type OperationStartOneOffData
- type OperationStatus
- type OperationType
- type OperationsService
- type Owner
- type PaginationMeta
- type PaginationOpts
- type Plan
- type PlansParams
- type PlatformRes
- type PlatformsRes
- type PullRequest
- type Region
- type RegionMigration
- type RegionMigrationParams
- type RegionMigrationStatus
- type RegionMigrationStep
- type RegionMigrationsService
- type RegionsService
- type ReviewApp
- type RunOpts
- type RunRes
- type RunsService
- type SCMIntegration
- type SCMIntegrationParams
- type SCMIntegrationParamsReq
- type SCMIntegrationRes
- type SCMIntegrationsRes
- type SCMIntegrationsService
- type SCMRepoLink
- type SCMRepoLinkCreateParams
- type SCMRepoLinkDeploymentsResponse
- type SCMRepoLinkLinker
- type SCMRepoLinkManualDeployResponse
- type SCMRepoLinkReviewAppsResponse
- type SCMRepoLinkService
- type SCMRepoLinkUpdateParams
- type SCMRepoLinksResponse
- type SCMType
- type ScmRepoLinkResponse
- type SelfResponse
- type SignUpService
- type Source
- type SourcesCreateResponse
- type SourcesService
- type SslStatus
- type Stack
- type StacksService
- type StaticTokenGenerator
- type Step
- type StepStatus
- type Steps
- type Token
- type TokenCreateParams
- type TokenRes
- type Tokens
- type TokensRes
- type TokensService
- type UpdateUserParams
- type UpdateUserResponse
- type User
- type UsersService
- type Variable
- type VariableSetParams
- type Variables
- type VariablesRes
- type VariablesService
Constants ¶
const ( MetricMemory = "memory" MetricSwap = "swap" MetricCPU = "cpu" MetricRouter5XX = "5XX" MetricRouterAll = "all" MetricRouterServersAmount = "servers_amount" MetricRouterRPMPerContainer = "rpm_per_container" MetricRouterP95ResponseTime = "p95_response_time" )
These constants contain the string repsentation for all metric available on Scalingo
const ( RegionMigrationStatusCreated RegionMigrationStatus = "created" RegionMigrationStatusPreflightSuccess RegionMigrationStatus = "preflight-success" RegionMigrationStatusPreflightError RegionMigrationStatus = "preflight-error" RegionMigrationStatusRunning RegionMigrationStatus = "running" RegionMigrationStatusPrepared RegionMigrationStatus = "prepared" RegionMigrationStatusDataMigrated RegionMigrationStatus = "data-migrated" RegionMigrationStatusAborting RegionMigrationStatus = "aborting" RegionMigrationStatusAborted RegionMigrationStatus = "aborted" RegionMigrationStatusError RegionMigrationStatus = "error" RegionMigrationStatusDone RegionMigrationStatus = "done" RegionMigrationStepAbort RegionMigrationStep = "abort" RegionMigrationStepPreflight RegionMigrationStep = "preflight" RegionMigrationStepPrepare RegionMigrationStep = "prepare" RegionMigrationStepData RegionMigrationStep = "data" RegionMigrationStepFinalize RegionMigrationStep = "finalize" StepStatusRunning StepStatus = "running" StepStatusDone StepStatus = "done" StepStatusError StepStatus = "error" )
const BillingMonthDateFormat = "2006-01-02"
Variables ¶
var ErrOTPRequired = errors.New("OTP Required")
var (
ErrRegionNotFound = errgo.New("Region not found")
)
var NotifierPlatformNames = map[string]string{
"email": "E-mail",
"rocker_chat": "Rocket Chat",
"slack": "Slack",
"webhook": "Webhook",
}
var SCMTypeDisplay = map[SCMType]string{ SCMGithubType: "GitHub", SCMGitlabType: "GitLab", SCMGithubEnterpriseType: "GitHub Enterprise", SCMGitlabSelfHostedType: "GitLab self-hosted", }
var Version = "6.5.0"
Functions ¶
func HasFailedString ¶
func HasFailedString(status DeploymentStatus) bool
func IsFinishedString ¶
func IsFinishedString(status DeploymentStatus) bool
func IsOTPRequired ¶
IsOTPRequired tests if the authentication backend return an OTP Required error
func MockAuth ¶
func MockAuth(ctrl *gomock.Controller) *httpmock.MockClient
Types ¶
type ACMEErrorVariables ¶
type API ¶
type API interface { AddonsService AddonProvidersService AppsService AlertsService AutoscalersService BackupsService CollaboratorsService ContainersService ContainerSizesService CronTasksService DatabasesService DeploymentsService DomainsService EventsService InvoicesService KeysService LogDrainsService LogsArchivesService LogsService NotificationPlatformsService NotifiersService OperationsService RegionsService RegionMigrationsService RunsService SignUpService SourcesService StacksService TokensService UsersService VariablesService http.TokenGenerator ScalingoAPI() http.Client AuthAPI() http.Client DBAPI(app, addon string) http.Client }
type Addon ¶
type Addon struct { ID string `json:"id"` AppID string `json:"app_id"` ResourceID string `json:"resource_id"` Status AddonStatus `json:"status"` Plan *Plan `json:"plan"` AddonProvider *AddonProvider `json:"addon_provider"` ProvisionedAt time.Time `json:"provisioned_at"` DeprovisionedAt time.Time `json:"deprovisioned_at"` }
type AddonLogsURLRes ¶
type AddonLogsURLRes struct {
URL string `json:"url"`
}
type AddonProvider ¶
type AddonProvider struct { ID string `json:"id"` LogoURL string `json:"logo_url"` Name string `json:"name"` ShortDescription string `json:"short_description"` Description string `json:"description"` Category Category `json:"category"` ProviderName string `json:"provider_name"` ProviderURL string `json:"provider_url"` HDSAvailable bool `json:"hds_available"` Plans []Plan `json:"plans"` }
type AddonProvidersService ¶
type AddonProvisionParams ¶
type AddonProvisionParams struct { AddonProviderID string `json:"addon_provider_id"` PlanID string `json:"plan_id"` Options map[string]string `json:"options"` }
AddonProvisionParams gathers all arguments which can be sent to provision an addon
type AddonProvisionParamsWrapper ¶
type AddonProvisionParamsWrapper struct {
Addon AddonProvisionParams `json:"addon"`
}
type AddonStatus ¶
type AddonStatus string
const ( AddonStatusRunning AddonStatus = "running" AddonStatusProvisioning AddonStatus = "provisioning" AddonStatusSuspended AddonStatus = "suspended" )
type AddonToken ¶
type AddonToken struct {
Token string `json:"token"`
}
type AddonTokenRes ¶
type AddonTokenRes struct {
Addon AddonToken `json:"addon"`
}
type AddonUpgradeParams ¶
type AddonUpgradeParams struct {
PlanID string `json:"plan_id"`
}
type AddonUpgradeParamsWrapper ¶
type AddonUpgradeParamsWrapper struct {
Addon AddonUpgradeParams `json:"addon"`
}
type AddonsService ¶
type AddonsService interface { AddonsList(ctx context.Context, app string) ([]*Addon, error) AddonProvision(ctx context.Context, app string, params AddonProvisionParams) (AddonRes, error) AddonDestroy(ctx context.Context, app, addonID string) error AddonUpgrade(ctx context.Context, app, addonID string, params AddonUpgradeParams) (AddonRes, error) AddonToken(ctx context.Context, app, addonID string) (string, error) AddonLogsURL(ctx context.Context, app, addonID string) (string, error) AddonLogsArchives(ctx context.Context, app, addonID string, page int) (*LogsArchivesResponse, error) }
type Alert ¶
type Alert struct { ID string `json:"id"` AppID string `json:"app_id"` ContainerType string `json:"container_type"` Metric string `json:"metric"` Limit float64 `json:"limit"` Disabled bool `json:"disabled"` SendWhenBelow bool `json:"send_when_below"` DurationBeforeTrigger time.Duration `json:"duration_before_trigger"` RemindEvery string `json:"remind_every"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Metadata map[string]interface{} `json:"metadata"` Notifiers []string `json:"notifiers"` }
type AlertAddParams ¶
type AlertUpdateParams ¶
type AlertUpdateParams struct { ContainerType *string `json:"container_type,omitempty"` Metric *string `json:"metric,omitempty"` Limit *float64 `json:"limit,omitempty"` Disabled *bool `json:"disabled,omitempty"` DurationBeforeTrigger *time.Duration `json:"duration_before_trigger,omitempty"` RemindEvery *time.Duration `json:"remind_every,omitempty"` SendWhenBelow *bool `json:"send_when_below,omitempty"` Notifiers *[]string `json:"notifiers,omitempty"` }
type AlertsService ¶
type AlertsService interface { AlertsList(ctx context.Context, app string) ([]*Alert, error) AlertAdd(ctx context.Context, app string, params AlertAddParams) (*Alert, error) AlertShow(ctx context.Context, app, id string) (*Alert, error) AlertUpdate(ctx context.Context, app, id string, params AlertUpdateParams) (*Alert, error) AlertRemove(ctx context.Context, app, id string) error }
type App ¶
type App struct { ID string `json:"id"` Name string `json:"name"` Region string `json:"region"` Owner Owner `json:"owner"` GitURL string `json:"git_url"` URL string `json:"url"` BaseURL string `json:"base_url"` Status AppStatus `json:"status"` LastDeployedAt *time.Time `json:"last_deployed_at"` LastDeployedBy string `json:"last_deployed_by"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` Links *AppLinks `json:"links"` StackID string `json:"stack_id"` StickySession bool `json:"sticky_session"` ForceHTTPS bool `json:"force_https"` RouterLogs bool `json:"router_logs"` DataAccessConsent *DataAccessConsent `json:"data_access_consent,omitempty"` Flags map[string]bool `json:"flags"` Limits map[string]interface{} `json:"limits"` HDSResource bool `json:"hds_resource"` }
type AppResponse ¶
type AppResponse struct {
App *App `json:"app"`
}
type AppStatsRes ¶
type AppStatsRes struct {
Stats []*ContainerStat `json:"stats"`
}
type AppsContainerTypesRes ¶
type AppsContainerTypesRes struct {
Containers []ContainerType `json:"containers"`
}
type AppsCreateOpts ¶
type AppsRestartParams ¶
type AppsRestartParams struct {
Scope []string `json:"scope"`
}
type AppsScaleParams ¶
type AppsScaleParams struct {
Containers []ContainerType `json:"containers"`
}
type AppsService ¶
type AppsService interface { AppsList(ctx context.Context) ([]*App, error) AppsShow(ctx context.Context, appName string) (*App, error) AppsDestroy(ctx context.Context, name string, currentName string) error AppsRename(ctx context.Context, name string, newName string) (*App, error) AppsTransfer(ctx context.Context, name string, email string) (*App, error) AppsSetStack(ctx context.Context, name string, stackID string) (*App, error) AppsRestart(ctx context.Context, app string, scope *AppsRestartParams) (*http.Response, error) AppsCreate(ctx context.Context, opts AppsCreateOpts) (*App, error) AppsStats(ctx context.Context, app string) (*AppStatsRes, error) AppsContainerTypes(ctx context.Context, app string) ([]ContainerType, error) AppsContainersPs(ctx context.Context, app string) ([]Container, error) AppsScale(ctx context.Context, app string, params *AppsScaleParams) (*http.Response, error) AppsForceHTTPS(ctx context.Context, name string, enable bool) (*App, error) AppsStickySession(ctx context.Context, name string, enable bool) (*App, error) AppsRouterLogs(ctx context.Context, name string, enable bool) (*App, error) }
type AuthStruct ¶
type AuthStruct struct { Type string `json:"type"` Data AuthenticationData `json:"data"` }
type AuthenticationData ¶
type AuthenticationData struct {
Token string `json:"token"`
}
type Autoscaler ¶
type AutoscalerAddParams ¶
type AutoscalerRes ¶
type AutoscalerRes struct {
Autoscaler Autoscaler `json:"autoscaler"`
}
type AutoscalerUpdateParams ¶
type AutoscalersRes ¶
type AutoscalersRes struct {
Autoscalers []Autoscaler `json:"autoscalers"`
}
type AutoscalersService ¶
type Backup ¶
type Backup struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at"` StartedAt time.Time `json:"started_at"` Name string `json:"name"` Size uint64 `json:"size"` Status BackupStatus `json:"status"` DatabaseID string `json:"database_id"` Method BackupMethod `json:"method"` }
type BackupMethod ¶ added in v6.4.0
type BackupMethod string
const ( BackupMethodPeriodic BackupMethod = "periodic" BackupMethodManual BackupMethod = "manual" )
type BackupStatus ¶
type BackupStatus string
const ( BackupStatusScheduled BackupStatus = "scheduled" BackupStatusRunning BackupStatus = "running" BackupStatusDone BackupStatus = "done" BackupStatusError BackupStatus = "error" )
type BackupsRes ¶
type BackupsRes struct {
Backups []Backup `json:"database_backups"`
}
type BackupsService ¶
type BackupsService interface { BackupList(ctx context.Context, app, addonID string) ([]Backup, error) BackupCreate(ctx context.Context, app, addonID string) (*Backup, error) BackupShow(ctx context.Context, app, addonID, backupID string) (*Backup, error) BackupDownloadURL(ctx context.Context, app, addonID, backupID string) (string, error) }
type BearerTokenRes ¶
type BearerTokenRes struct {
Token string `json:"token"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddonDestroy ¶
func (*Client) AddonLogsArchives ¶
func (*Client) AddonLogsURL ¶
func (*Client) AddonProviderPlansList ¶
func (*Client) AddonProvidersList ¶
func (c *Client) AddonProvidersList(ctx context.Context) ([]*AddonProvider, error)
func (*Client) AddonProvision ¶
func (*Client) AddonToken ¶
func (*Client) AddonUpgrade ¶
func (*Client) AddonsList ¶
func (*Client) AlertRemove ¶
func (*Client) AlertUpdate ¶
func (*Client) AlertsList ¶
func (*Client) AppsContainerTypes ¶
func (*Client) AppsContainersPs ¶
func (*Client) AppsCreate ¶
func (*Client) AppsDestroy ¶
func (*Client) AppsForceHTTPS ¶
func (*Client) AppsRename ¶
func (*Client) AppsRestart ¶
func (*Client) AppsRouterLogs ¶
func (*Client) AppsSetStack ¶
func (*Client) AppsStickySession ¶
func (*Client) AppsTransfer ¶
func (*Client) AutoscalerAdd ¶
func (c *Client) AutoscalerAdd(ctx context.Context, app string, params AutoscalerAddParams) (*Autoscaler, error)
func (*Client) AutoscalerRemove ¶
func (*Client) AutoscalerShow ¶
func (*Client) AutoscalerUpdate ¶
func (c *Client) AutoscalerUpdate(ctx context.Context, app, id string, params AutoscalerUpdateParams) (*Autoscaler, error)
func (*Client) AutoscalersList ¶
func (*Client) BackupCreate ¶
func (*Client) BackupDownloadURL ¶
func (*Client) BackupList ¶
func (*Client) BackupShow ¶
func (*Client) CollaboratorAdd ¶
func (*Client) CollaboratorRemove ¶
func (*Client) CollaboratorsList ¶
func (*Client) ContainerSizesList ¶
func (c *Client) ContainerSizesList(ctx context.Context) ([]ContainerSize, error)
func (*Client) ContainersKill ¶ added in v6.1.0
func (*Client) ContainersStop ¶
func (*Client) CreateRegionMigration ¶
func (c *Client) CreateRegionMigration(ctx context.Context, appID string, params RegionMigrationParams) (RegionMigration, error)
func (*Client) CronTasksGet ¶
func (*Client) DatabaseDisableFeature ¶
func (c *Client) DatabaseDisableFeature(ctx context.Context, app, addonID, feature string) (DatabaseDisableFeatureResponse, error)
DatabaseDisableFeature disables a feature on a given database addon
func (*Client) DatabaseEnableFeature ¶
func (c *Client) DatabaseEnableFeature(ctx context.Context, app, addonID, feature string) (DatabaseEnableFeatureResponse, error)
DatabaseEnableFeature enable a feature on a given database addon.
func (*Client) DatabaseShow ¶
DatabaseShow returns the Database info of the given app/addonID
func (Client) DatabaseTypeVersion ¶
func (*Client) DatabaseUpdatePeriodicBackupsConfig ¶
func (c *Client) DatabaseUpdatePeriodicBackupsConfig(ctx context.Context, app, addonID string, params DatabaseUpdatePeriodicBackupsConfigParams) (Database, error)
DatabaseUpdatePeriodicBackupsConfig updates the configuration of periodic backups for a given database addon
func (*Client) Deployment ¶
func (*Client) DeploymentCacheReset ¶
func (*Client) DeploymentList ¶
func (*Client) DeploymentListWithPagination ¶
func (c *Client) DeploymentListWithPagination(ctx context.Context, app string, opts PaginationOpts) ([]*Deployment, PaginationMeta, error)
func (*Client) DeploymentLogs ¶
func (*Client) DeploymentStream ¶
DeploymentStream returns a websocket connection to follow the various deployment events happening on an application. The type of the data sent on this connection is DeployEvent.
func (*Client) DeploymentsCreate ¶
func (c *Client) DeploymentsCreate(ctx context.Context, app string, params *DeploymentsCreateParams) (*Deployment, error)
func (*Client) DomainSetCanonical ¶
func (*Client) DomainSetCertificate ¶
func (*Client) DomainUnsetCanonical ¶
func (*Client) DomainUnsetCertificate ¶
func (*Client) DomainsAdd ¶
func (*Client) DomainsList ¶
func (*Client) DomainsRemove ¶
func (*Client) DomainsShow ¶
func (*Client) EventCategoriesList ¶
func (c *Client) EventCategoriesList(ctx context.Context) ([]EventCategory, error)
func (*Client) EventTypesList ¶
func (*Client) EventsList ¶
func (c *Client) EventsList(ctx context.Context, app string, opts PaginationOpts) (Events, PaginationMeta, error)
func (*Client) GetAccessToken ¶
func (*Client) InvoiceShow ¶
func (*Client) InvoicesList ¶
func (c *Client) InvoicesList(ctx context.Context, opts PaginationOpts) (Invoices, PaginationMeta, error)
func (*Client) ListRegionMigrations ¶
func (*Client) LogDrainAdd ¶
func (c *Client) LogDrainAdd(ctx context.Context, app string, params LogDrainAddParams) (*LogDrainRes, error)
func (*Client) LogDrainAddonAdd ¶
func (c *Client) LogDrainAddonAdd(ctx context.Context, app string, addonID string, params LogDrainAddParams) (*LogDrainRes, error)
func (*Client) LogDrainAddonRemove ¶
func (*Client) LogDrainRemove ¶
func (*Client) LogDrainsAddonList ¶
func (*Client) LogDrainsList ¶
func (*Client) LogsArchives ¶
func (*Client) LogsArchivesByCursor ¶
func (*Client) NotificationPlatformByName ¶
func (*Client) NotificationPlatformsList ¶
func (c *Client) NotificationPlatformsList(ctx context.Context) ([]*NotificationPlatform, error)
func (*Client) NotifierByID ¶
func (*Client) NotifierDestroy ¶
func (*Client) NotifierProvision ¶
func (*Client) NotifierUpdate ¶
func (*Client) NotifiersList ¶
func (*Client) OperationsShow ¶
func (*Client) OperationsShowFromURL ¶
func (*Client) RunRegionMigrationStep ¶
func (*Client) SCMIntegrationsCreate ¶
func (*Client) SCMIntegrationsDelete ¶
func (*Client) SCMIntegrationsImportKeys ¶
func (*Client) SCMIntegrationsList ¶
func (c *Client) SCMIntegrationsList(ctx context.Context) ([]SCMIntegration, error)
func (*Client) SCMIntegrationsShow ¶
func (*Client) SCMRepoLinkCreate ¶
func (c *Client) SCMRepoLinkCreate(ctx context.Context, app string, params SCMRepoLinkCreateParams) (*SCMRepoLink, error)
func (*Client) SCMRepoLinkDelete ¶
func (*Client) SCMRepoLinkDeployments ¶
func (*Client) SCMRepoLinkList ¶
func (c *Client) SCMRepoLinkList(ctx context.Context, opts PaginationOpts) ([]*SCMRepoLink, PaginationMeta, error)
func (*Client) SCMRepoLinkManualDeploy ¶
func (*Client) SCMRepoLinkManualReviewApp ¶
func (*Client) SCMRepoLinkReviewApps ¶
func (*Client) SCMRepoLinkShow ¶
func (*Client) SCMRepoLinkUpdate ¶
func (c *Client) SCMRepoLinkUpdate(ctx context.Context, app string, params SCMRepoLinkUpdateParams) (*SCMRepoLink, error)
func (*Client) ScalingoAPI ¶
func (*Client) ShowRegionMigration ¶
func (*Client) TokenCreate ¶
func (*Client) TokenCreateWithLogin ¶
func (c *Client) TokenCreateWithLogin(ctx context.Context, params TokenCreateParams, login LoginParams) (Token, error)
func (*Client) TokenExchange ¶
func (*Client) UpdateUser ¶
func (*Client) UserEventsList ¶
func (c *Client) UserEventsList(ctx context.Context, opts PaginationOpts) (Events, PaginationMeta, error)
func (*Client) VariableMultipleSet ¶
func (*Client) VariableSet ¶
func (*Client) VariableUnset ¶
func (*Client) VariablesList ¶
type ClientConfig ¶
type ClientConfig struct { Timeout time.Duration TLSConfig *tls.Config APIEndpoint string APIPrefix string AuthEndpoint string AuthPrefix string DatabaseAPIEndpoint string DatabaseAPIPrefix string APIToken string Region string UserAgent string DisableHTTPClientCache bool // StaticTokenGenerator is present for Scalingo internal use only StaticTokenGenerator *StaticTokenGenerator }
type Collaborator ¶
type CollaboratorRes ¶
type CollaboratorRes struct {
Collaborator Collaborator `json:"collaborator"`
}
type CollaboratorStatus ¶
type CollaboratorStatus string
const ( CollaboratorStatusPending CollaboratorStatus = "pending" CollaboratorStatusAccepted CollaboratorStatus = "accepted" CollaboratorStatusDeleted CollaboratorStatus = "user account deleted" )
type CollaboratorsRes ¶
type CollaboratorsRes struct {
Collaborators []Collaborator `json:"collaborators"`
}
type CollaboratorsService ¶
type Container ¶
type Container struct { ID string `json:"id"` AppID string `json:"app_id"` CreatedAt *time.Time `json:"created_at"` DeletedAt *time.Time `json:"deleted_at"` Command string `json:"command"` Type string `json:"type"` TypeIndex int `json:"type_index"` Label string `json:"label"` State string `json:"state"` App *App `json:"app"` ContainerSize ContainerSize `json:"container_size"` }
type ContainerSize ¶
type ContainerSize struct { ID string `json:"id"` SKU string `json:"sku,omitempty"` Name string `json:"name"` HumanName string `json:"human_name"` HumanCPU string `json:"human_cpu"` Memory int `json:"memory"` PidsLimit int `json:"pids_limit,omitempty"` HourlyPrice int `json:"hourly_price"` ThirtydaysPrice int `json:"thirtydays_price"` Pricings map[string]map[string]string `json:"pricings"` Swap int `json:"swap"` Ordinal int `json:"ordinal"` }
type ContainerSizesService ¶
type ContainerSizesService interface {
ContainerSizesList(ctx context.Context) ([]ContainerSize, error)
}
type ContainerStat ¶
type ContainerStat struct { ID string `json:"id"` CPUUsage int `json:"cpu_usage"` MemoryUsage int64 `json:"memory_usage"` SwapUsage int64 `json:"swap_usage"` MemoryLimit int64 `json:"memory_limit"` SwapLimit int64 `json:"swap_limit"` HighestMemoryUsage int64 `json:"highest_memory_usage"` HighestSwapUsage int64 `json:"highest_swap_usage"` }
type ContainerType ¶
type ContainersService ¶
type CronTasksService ¶
type DataAccessConsent ¶
type Database ¶
type Database struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at"` ResourceID string `json:"resource_id"` AppName string `json:"app_name"` EncryptionAtRest bool `json:"encryption_at_rest"` Features []DatabaseFeature `json:"features"` Plan string `json:"plan"` Status DatabaseStatus `json:"status"` TypeID string `json:"type_id"` TypeName string `json:"type_name"` VersionID string `json:"version_id"` MongoReplSetName string `json:"mongo_repl_set_name"` Instances []Instance `json:"instances"` NextVersionID string `json:"next_version_id"` ReadableVersion string `json:"readable_version"` Hostname string `json:"hostname"` CurrentOperationID string `json:"current_operation_id"` Cluster bool `json:"cluster"` PeriodicBackupsEnabled bool `json:"periodic_backups_enabled"` PeriodicBackupsScheduledAt []int `json:"periodic_backups_scheduled_at"` // Hours of the day of the periodic backups (UTC) }
Database contains the metadata and configuration of a database deployment
type DatabaseDisableFeatureResponse ¶
type DatabaseDisableFeatureResponse struct {
Message string `json:"message"`
}
DatabaseDisableFeatureResponse is the response body of DatabaseDisableFeature
type DatabaseEnableFeatureParams ¶
type DatabaseEnableFeatureParams struct {
Feature DatabaseFeature `json:"feature"`
}
DatabaseEnableFeatureParams contains the feature which has to be enabled
type DatabaseEnableFeatureResponse ¶
type DatabaseEnableFeatureResponse struct { Name string `json:"name"` Status DatabaseFeatureStatus `json:"status"` Message string `json:"message"` }
DatabaseEnableFeatureResponse is the response structure from DatabaseEnableFeature
type DatabaseFeature ¶
type DatabaseFeature struct { Name string `json:"name"` Status DatabaseFeatureStatus `json:"status"` }
DatabaseFeature represents the state of application of a database feature
type DatabaseFeatureStatus ¶
type DatabaseFeatureStatus string
DatabaseFeatureStatus is a type of string representing the advancement of the application of a database feature
const ( // DatabaseFeatureStatusActivated is set when the feature has been enabled with success DatabaseFeatureStatusActivated DatabaseFeatureStatus = "ACTIVATED" // DatabaseFeatureStatusPending is set when the feature is being enabled DatabaseFeatureStatusPending DatabaseFeatureStatus = "PENDING" // DatabaseFeatureStatusFailed is set when the feature failed to get enabeld DatabaseFeatureStatusFailed DatabaseFeatureStatus = "FAILED" )
type DatabaseRes ¶
type DatabaseRes struct {
Database Database `json:"database"`
}
DatabaseRes is the returned response from DatabaseShow
type DatabaseStatus ¶
type DatabaseStatus string
DatabaseStatus is a string representing the status of a database deployment
const ( // DatabaseStatusCreating is set when the database is being started before // it's operational DatabaseStatusCreating DatabaseStatus = "creating" // DatabaseStatusRunning is the standard status of a database when everything // is operational DatabaseStatusRunning DatabaseStatus = "running" // DatabaseStatusMigrating is set when a component of the database is being // migrated by Scalingo infrastructure DatabaseStatusMigrating DatabaseStatus = "migrating" // DatabaseStatusUpdating is set the plan of the database is being changed DatabaseStatusUpdating DatabaseStatus = "updating" // DatabaseStatusUpgrading is set when a database version upgrade is being // applied on the database DatabaseStatusUpgrading DatabaseStatus = "upgrading" // DatabaseStatusStopped is set when the database has been stopped (suspended // after free trial or when an account has been suspended) DatabaseStatusStopped DatabaseStatus = "stopped" )
type DatabaseTypeVersion ¶
type DatabaseTypeVersion struct { ID string `json:"id"` DatabaseTypeID string `json:"database_type_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Features []string `json:"features"` NextUpgrade *DatabaseTypeVersion `json:"next_upgrade"` AllowedPlugins []DatabaseTypeVersionPlugin `json:"allowed_plugins"` Major int `json:"major"` Minor int `json:"minor"` Patch int `json:"patch"` Build int `json:"build"` }
func (DatabaseTypeVersion) String ¶
func (v DatabaseTypeVersion) String() string
type DatabaseTypeVersionShowResponse ¶
type DatabaseTypeVersionShowResponse struct {
DatabaseTypeVersion DatabaseTypeVersion `json:"database_type_version"`
}
type DatabaseUpdatePeriodicBackupsConfigParams ¶
type DatabaseUpdatePeriodicBackupsConfigParams struct { ScheduledAt *int `json:"periodic_backups_scheduled_at,omitempty"` Enabled *bool `json:"periodic_backups_enabled,omitempty"` }
DatabaseUpdatePeriodicBackupsConfigParams contains the parameters which can be tweaked to update how periodic backups are triggered.
type DatabasesService ¶
type DatabasesService interface { DatabaseShow(ctx context.Context, app, addonID string) (Database, error) DatabaseEnableFeature(ctx context.Context, app, addonID, feature string) (DatabaseEnableFeatureResponse, error) DatabaseDisableFeature(ctx context.Context, app, addonID, feature string) (DatabaseDisableFeatureResponse, error) DatabaseUpdatePeriodicBackupsConfig(ctx context.Context, app, addonID string, params DatabaseUpdatePeriodicBackupsConfigParams) (Database, error) }
DatabasesService is the interface gathering all the methods related to database addon configuration updates
type Deployment ¶
type Deployment struct { ID string `json:"id"` AppID string `json:"app_id"` CreatedAt *time.Time `json:"created_at"` Status DeploymentStatus `json:"status"` GitRef string `json:"git_ref"` Image string `json:"image"` Registry string `json:"registry"` Duration int `json:"duration"` PostdeployHook string `json:"postdeploy_hook"` ImageSize uint64 `json:"image_size"` StackBaseImage string `json:"stack_base_image"` User *User `json:"pusher"` Links *DeploymentLinks `json:"links"` }
func (*Deployment) HasFailed ¶
func (d *Deployment) HasFailed() bool
func (*Deployment) IsFinished ¶
func (d *Deployment) IsFinished() bool
type DeploymentEvent ¶
type DeploymentEvent struct { // ID of the deployment which this event belongs to ID string `json:"id"` Type DeploymentEventType `json:"type"` Data json.RawMessage `json:"data"` }
DeploymentEvent represents a deployment stream event sent on the websocket.
type DeploymentEventDataLog ¶
type DeploymentEventDataLog struct {
Content string `json:"content"`
}
DeploymentEventDataLog is the data type present in the DeploymentEvent.Data field if the DeploymentEvent.Type is DeploymentEventDataLog
type DeploymentEventDataStatus ¶
type DeploymentEventDataStatus struct {
Status DeploymentStatus `json:"status"`
}
DeploymentEventDataStatus is the data type present in the DeploymentEvent.Data field if the DeploymentEvent.Type is DeploymentEventDataStatus
type DeploymentEventType ¶
type DeploymentEventType string
DeploymentEventType holds all different deployment stream types of event.
const ( DeploymentEventTypePing DeploymentEventType = "ping" DeploymentEventTypeNew DeploymentEventType = "new" DeploymentEventTypeLog DeploymentEventType = "log" DeploymentEventTypeStatus DeploymentEventType = "status" )
type DeploymentLinks ¶
type DeploymentLinks struct {
Output string `json:"output"`
}
type DeploymentList ¶
type DeploymentList struct { Deployments []*Deployment `json:"deployments"` Meta struct { PaginationMeta PaginationMeta `json:"pagination"` } }
type DeploymentStatus ¶
type DeploymentStatus string
const ( StatusSuccess DeploymentStatus = "success" StatusQueued DeploymentStatus = "queued" StatusBuilding DeploymentStatus = "building" StatusStarting DeploymentStatus = "starting" StatusPushing DeploymentStatus = "pushing" StatusAborted DeploymentStatus = "aborted" StatusBuildError DeploymentStatus = "build-error" StatusCrashedError DeploymentStatus = "crashed-error" StatusTimeoutError DeploymentStatus = "timeout-error" StatusHookError DeploymentStatus = "hook-error" )
type DeploymentsCreateParams ¶
type DeploymentsCreateRes ¶
type DeploymentsCreateRes struct {
Deployment *Deployment `json:"deployment"`
}
type DeploymentsService ¶
type DeploymentsService interface { DeploymentList(ctx context.Context, app string) ([]*Deployment, error) DeploymentListWithPagination(ctx context.Context, app string, opts PaginationOpts) ([]*Deployment, PaginationMeta, error) Deployment(ctx context.Context, app string, deploy string) (*Deployment, error) DeploymentLogs(ctx context.Context, deployURL string) (*http.Response, error) DeploymentStream(ctx context.Context, deployURL string) (*websocket.Conn, error) DeploymentsCreate(ctx context.Context, app string, params *DeploymentsCreateParams) (*Deployment, error) }
type DeprecationDate ¶
func (*DeprecationDate) UnmarshalJSON ¶
func (deprecationDate *DeprecationDate) UnmarshalJSON(b []byte) error
The regional API returns a date formatted as "2006-01-02" Go standard library does not unmarshal that format
type DetailedEvent ¶
type DetailedNotifier ¶
type DetailedNotifier interface { GetNotifier() *Notifier GetID() string GetName() string GetType() NotifierType GetSendAllEvents() bool GetSendAllAlerts() bool GetSelectedEventIDs() []string IsActive() bool When() string TypeDataPtr() interface{} TypeDataMap() map[string]interface{} }
func NewDetailedNotifier ¶
func NewDetailedNotifier(notifierType string, params NotifierParams) DetailedNotifier
type Domain ¶
type Domain struct { ID string `json:"id"` AppID string `json:"app_id"` Name string `json:"name"` TLSCert string `json:"tlscert,omitempty"` TLSKey string `json:"tlskey,omitempty"` SSL bool `json:"ssl"` Validity time.Time `json:"validity"` Canonical bool `json:"canonical"` LetsEncrypt bool `json:"letsencrypt"` LetsEncryptStatus LetsEncryptStatus `json:"letsencrypt_status"` SslStatus SslStatus `json:"ssl_status"` AcmeDNSFqdn string `json:"acme_dns_fqdn"` AcmeDNSValue string `json:"acme_dns_value"` AcmeDNSError ACMEErrorVariables `json:"acme_dns_error"` }
type DomainsRes ¶
type DomainsRes struct {
Domains []Domain `json:"domains"`
}
type DomainsService ¶
type DomainsService interface { DomainsList(ctx context.Context, app string) ([]Domain, error) DomainsAdd(ctx context.Context, app string, d Domain) (Domain, error) DomainsRemove(ctx context.Context, app string, id string) error DomainSetCanonical(ctx context.Context, app, id string) (Domain, error) DomainUnsetCanonical(ctx context.Context, app string) (Domain, error) DomainSetCertificate(ctx context.Context, app, id, tlsCert, tlsKey string) (Domain, error) DomainUnsetCertificate(ctx context.Context, app, id string) (Domain, error) }
type DownloadURLRes ¶
type DownloadURLRes struct {
DownloadURL string `json:"download_url"`
}
type Event ¶
type Event struct { ID string `json:"id"` AppID string `json:"app_id"` CreatedAt time.Time `json:"created_at"` User EventUser `json:"user"` Type EventTypeName `json:"type"` AppName string `json:"app_name"` RawTypeData json.RawMessage `json:"type_data"` TypeData map[string]interface{} `json:"-"` }
func (*Event) PrintableType ¶
func (*Event) Specialize ¶
func (pev *Event) Specialize() DetailedEvent
func (*Event) TypeDataPtr ¶
func (ev *Event) TypeDataPtr() interface{}
type EventAcceptCollaboratorType ¶
type EventAcceptCollaboratorType struct { Event TypeData EventAcceptCollaboratorTypeData `json:"type_data"` }
func (*EventAcceptCollaboratorType) String ¶
func (ev *EventAcceptCollaboratorType) String() string
func (*EventAcceptCollaboratorType) TypeDataPtr ¶
func (e *EventAcceptCollaboratorType) TypeDataPtr() interface{}
type EventAcceptCollaboratorTypeData ¶
type EventAcceptCollaboratorTypeData struct {
Collaborator EventCollaborator `json:"collaborator"`
}
Inviter is filled there
type EventAddCreditType ¶
type EventAddCreditType struct { Event TypeData EventAddCreditTypeData `json:"type_data"` }
func (*EventAddCreditType) String ¶
func (ev *EventAddCreditType) String() string
func (*EventAddCreditType) TypeDataPtr ¶
func (e *EventAddCreditType) TypeDataPtr() interface{}
type EventAddCreditTypeData ¶
type EventAddPaymentMethodType ¶
type EventAddPaymentMethodType struct { Event TypeData EventAddPaymentMethodTypeData `json:"type_data"` }
func (*EventAddPaymentMethodType) String ¶
func (ev *EventAddPaymentMethodType) String() string
func (*EventAddPaymentMethodType) TypeDataPtr ¶
func (e *EventAddPaymentMethodType) TypeDataPtr() interface{}
type EventAddVoucherType ¶
type EventAddVoucherType struct { Event TypeData EventAddVoucherTypeData `json:"type_data"` }
func (*EventAddVoucherType) String ¶
func (ev *EventAddVoucherType) String() string
func (*EventAddVoucherType) TypeDataPtr ¶
func (e *EventAddVoucherType) TypeDataPtr() interface{}
type EventAddVoucherTypeData ¶
type EventAddVoucherTypeData struct {
Code string `json:"code"`
}
type EventAddon ¶
type EventAddonUpdatedType ¶
type EventAddonUpdatedType struct { Event TypeData EventAddonUpdatedTypeData `json:"type_data"` }
func (*EventAddonUpdatedType) String ¶
func (ev *EventAddonUpdatedType) String() string
func (*EventAddonUpdatedType) TypeDataPtr ¶
func (e *EventAddonUpdatedType) TypeDataPtr() interface{}
type EventAddonUpdatedTypeData ¶
type EventAddonUpdatedTypeData struct { AddonID string `json:"addon_id"` AddonPlanName string `json:"addon_plan_name"` AddonResourceID string `json:"addon_resource_id"` AddonProviderID string `json:"addon_provider_id"` AddonProviderName string `json:"addon_provider_name"` // Status has only two items when is updated, the old value and the new value, in this order Status []AddonStatus `json:"status"` // AttributesChanged contain names of changed attributes AttributesChanged []string `json:"attributes_changed"` }
type EventAlertType ¶
type EventAlertType struct { Event TypeData EventAlertTypeData `json:"type_data"` }
func (*EventAlertType) String ¶
func (ev *EventAlertType) String() string
func (*EventAlertType) TypeDataPtr ¶
func (e *EventAlertType) TypeDataPtr() interface{}
type EventAlertTypeData ¶
type EventAlertTypeData struct { SenderName string `json:"sender_name"` Metric string `json:"metric"` Limit float64 `json:"limit"` LimitText string `json:"limit_text"` Value float64 `json:"value"` ValueText string `json:"value_text"` Activated bool `json:"activated"` SendWhenBelow bool `json:"send_when_below"` RawLimit float64 `json:"raw_limit"` RawValue float64 `json:"raw_value"` }
type EventAuthorizeGithubType ¶
type EventAuthorizeGithubType struct { Event TypeData EventAuthorizeGithubTypeData `json:"type_data"` }
func (*EventAuthorizeGithubType) String ¶
func (ev *EventAuthorizeGithubType) String() string
func (*EventAuthorizeGithubType) TypeDataPtr ¶
func (e *EventAuthorizeGithubType) TypeDataPtr() interface{}
type EventCategory ¶
type EventCollaborator ¶
type EventCrashType ¶
type EventCrashType struct { Event TypeData EventCrashTypeData `json:"type_data"` }
func (*EventCrashType) String ¶
func (ev *EventCrashType) String() string
func (*EventCrashType) TypeDataPtr ¶
func (e *EventCrashType) TypeDataPtr() interface{}
type EventCrashTypeData ¶
type EventCreateDataAccessConsentType ¶
type EventCreateDataAccessConsentType struct { Event TypeData EventCreateDataAccessConsentTypeData `json:"type_data"` }
func (*EventCreateDataAccessConsentType) String ¶
func (ev *EventCreateDataAccessConsentType) String() string
func (*EventCreateDataAccessConsentType) TypeDataPtr ¶
func (e *EventCreateDataAccessConsentType) TypeDataPtr() interface{}
type EventCreateDataAccessConsentTypeData ¶
type EventCreateDataAccessConsentTypeData struct { EndAt time.Time `json:"end_at"` Databases bool `json:"databases"` Containers bool `json:"containers"` }
Create data_access_consent
type EventDatabaseAddFeatureType ¶
type EventDatabaseAddFeatureType struct { Event TypeData EventDatabaseAddFeatureTypeData `json:"type_data"` }
func (*EventDatabaseAddFeatureType) String ¶
func (ev *EventDatabaseAddFeatureType) String() string
func (*EventDatabaseAddFeatureType) TypeDataPtr ¶
func (e *EventDatabaseAddFeatureType) TypeDataPtr() interface{}
type EventDatabaseAddFeatureTypeData ¶
type EventDatabaseAddFeatureTypeData struct { Feature string `json:"feature"` AddonProviderID string `json:"addon_provider_id"` AddonProviderName string `json:"addon_provider_name"` AddonUUID string `json:"addon_uuid"` EventSecurityTypeData }
type EventDatabaseRemoveFeatureType ¶
type EventDatabaseRemoveFeatureType struct { Event TypeData EventDatabaseRemoveFeatureTypeData `json:"type_data"` }
func (*EventDatabaseRemoveFeatureType) String ¶
func (ev *EventDatabaseRemoveFeatureType) String() string
func (*EventDatabaseRemoveFeatureType) TypeDataPtr ¶
func (e *EventDatabaseRemoveFeatureType) TypeDataPtr() interface{}
type EventDatabaseRemoveFeatureTypeData ¶
type EventDatabaseRemoveFeatureTypeData struct { Feature string `json:"feature"` AddonProviderID string `json:"addon_provider_id"` AddonProviderName string `json:"addon_provider_name"` AddonUUID string `json:"addon_uuid"` EventSecurityTypeData }
type EventDeleteAddonLogDrainType ¶
type EventDeleteAddonLogDrainType struct { Event TypeData EventDeleteAddonLogDrainTypeData `json:"type_data"` }
func (*EventDeleteAddonLogDrainType) String ¶
func (ev *EventDeleteAddonLogDrainType) String() string
func (*EventDeleteAddonLogDrainType) TypeDataPtr ¶
func (e *EventDeleteAddonLogDrainType) TypeDataPtr() interface{}
type EventDeleteAddonLogDrainTypeData ¶
type EventDeleteAddonLogDrainTypeData struct { URL string `json:"url"` AddonUUID string `json:"addon_uuid"` AddonName string `json:"addon_name"` }
Delete addon log drain
type EventDeleteAddonType ¶
type EventDeleteAddonType struct { Event TypeData EventDeleteAddonTypeData `json:"type_data"` }
func (*EventDeleteAddonType) String ¶
func (ev *EventDeleteAddonType) String() string
func (*EventDeleteAddonType) TypeDataPtr ¶
func (e *EventDeleteAddonType) TypeDataPtr() interface{}
type EventDeleteAddonTypeData ¶
type EventDeleteAddonTypeData struct {
EventAddon
}
type EventDeleteAlertType ¶
type EventDeleteAlertType struct { Event TypeData EventDeleteAlertTypeData `json:"type_data"` }
func (*EventDeleteAlertType) String ¶
func (ev *EventDeleteAlertType) String() string
func (*EventDeleteAlertType) TypeDataPtr ¶
func (e *EventDeleteAlertType) TypeDataPtr() interface{}
type EventDeleteAppType ¶
type EventDeleteAppType struct {
Event
}
func (*EventDeleteAppType) String ¶
func (ev *EventDeleteAppType) String() string
func (*EventDeleteAppType) TypeDataPtr ¶
func (e *EventDeleteAppType) TypeDataPtr() interface{}
type EventDeleteAutoscalerType ¶
type EventDeleteAutoscalerType struct { Event TypeData EventDeleteAutoscalerTypeData `json:"type_data"` }
func (*EventDeleteAutoscalerType) String ¶
func (ev *EventDeleteAutoscalerType) String() string
func (*EventDeleteAutoscalerType) TypeDataPtr ¶
func (e *EventDeleteAutoscalerType) TypeDataPtr() interface{}
type EventDeleteCollaboratorType ¶
type EventDeleteCollaboratorType struct { Event TypeData EventDeleteCollaboratorTypeData `json:"type_data"` }
func (*EventDeleteCollaboratorType) String ¶
func (ev *EventDeleteCollaboratorType) String() string
func (*EventDeleteCollaboratorType) TypeDataPtr ¶
func (e *EventDeleteCollaboratorType) TypeDataPtr() interface{}
type EventDeleteCollaboratorTypeData ¶
type EventDeleteCollaboratorTypeData struct {
Collaborator EventCollaborator `json:"collaborator"`
}
type EventDeleteDomainType ¶
type EventDeleteDomainType struct { Event TypeData EventDeleteDomainTypeData `json:"type_data"` }
func (*EventDeleteDomainType) String ¶
func (ev *EventDeleteDomainType) String() string
func (*EventDeleteDomainType) TypeDataPtr ¶
func (e *EventDeleteDomainType) TypeDataPtr() interface{}
type EventDeleteDomainTypeData ¶
type EventDeleteDomainTypeData struct {
Hostname string `json:"hostname"`
}
type EventDeleteIntegrationType ¶
type EventDeleteIntegrationType struct { Event TypeData EventDeleteIntegrationTypeData `json:"type_data"` }
func (*EventDeleteIntegrationType) String ¶
func (ev *EventDeleteIntegrationType) String() string
func (*EventDeleteIntegrationType) TypeDataPtr ¶
func (e *EventDeleteIntegrationType) TypeDataPtr() interface{}
type EventDeleteKeyType ¶
type EventDeleteKeyType struct { Event TypeData EventDeleteKeyTypeData `json:"type_data"` }
func (*EventDeleteKeyType) String ¶
func (ev *EventDeleteKeyType) String() string
func (*EventDeleteKeyType) TypeDataPtr ¶
func (e *EventDeleteKeyType) TypeDataPtr() interface{}
type EventDeleteKeyTypeData ¶
type EventDeleteKeyTypeData struct {
Name string `json:"name"`
}
type EventDeleteLogDrainType ¶
type EventDeleteLogDrainType struct { Event TypeData EventDeleteLogDrainTypeData `json:"type_data"` }
func (*EventDeleteLogDrainType) String ¶
func (ev *EventDeleteLogDrainType) String() string
func (*EventDeleteLogDrainType) TypeDataPtr ¶
func (e *EventDeleteLogDrainType) TypeDataPtr() interface{}
type EventDeleteLogDrainTypeData ¶
type EventDeleteLogDrainTypeData struct {
URL string `json:"url"`
}
Delete log drain
type EventDeleteNotifierType ¶
type EventDeleteNotifierType struct { Event TypeData EventDeleteNotifierTypeData `json:"type_data"` }
func (*EventDeleteNotifierType) String ¶
func (ev *EventDeleteNotifierType) String() string
func (*EventDeleteNotifierType) TypeDataPtr ¶
func (e *EventDeleteNotifierType) TypeDataPtr() interface{}
type EventDeleteNotifierTypeData ¶
type EventDeleteNotifierTypeData struct { NotifierName string `json:"notifier_name"` Active bool `json:"active"` SendAllEvents bool `json:"send_all_events"` SelectedEvents []string `json:"selected_events"` NotifierType string `json:"notifier_type"` NotifierTypeData map[string]interface{} `json:"notifier_type_data"` PlatformName string `json:"platform_name"` }
Delete notifier
type EventDeleteTokenType ¶
type EventDeleteTokenType struct { Event TypeData EventDeleteTokenTypeData `json:"type_data"` }
func (*EventDeleteTokenType) String ¶
func (ev *EventDeleteTokenType) String() string
func (*EventDeleteTokenType) TypeDataPtr ¶
func (e *EventDeleteTokenType) TypeDataPtr() interface{}
type EventDeleteVariableType ¶
type EventDeleteVariableType struct { Event TypeData EventDeleteVariableTypeData `json:"type_data"` }
func (*EventDeleteVariableType) String ¶
func (ev *EventDeleteVariableType) String() string
func (*EventDeleteVariableType) TypeDataPtr ¶
func (e *EventDeleteVariableType) TypeDataPtr() interface{}
type EventDeleteVariableTypeData ¶
type EventDeleteVariableTypeData struct {
EventVariable
}
type EventDeploymentType ¶
type EventDeploymentType struct { Event TypeData EventDeploymentTypeData `json:"type_data"` }
func (*EventDeploymentType) String ¶
func (ev *EventDeploymentType) String() string
func (*EventDeploymentType) TypeDataPtr ¶
func (e *EventDeploymentType) TypeDataPtr() interface{}
type EventDeploymentTypeData ¶
type EventEditAppType ¶
type EventEditAppType struct { Event TypeData EventEditAppTypeData `json:"type_data"` }
func (*EventEditAppType) String ¶
func (ev *EventEditAppType) String() string
func (*EventEditAppType) TypeDataPtr ¶
func (e *EventEditAppType) TypeDataPtr() interface{}
type EventEditAppTypeData ¶
type EventEditAppTypeData struct {
ForceHTTPS *bool `json:"force_https"`
}
type EventEditAutoscalerType ¶
type EventEditAutoscalerType struct { Event TypeData EventEditAutoscalerTypeData `json:"type_data"` }
func (*EventEditAutoscalerType) String ¶
func (ev *EventEditAutoscalerType) String() string
func (*EventEditAutoscalerType) TypeDataPtr ¶
func (e *EventEditAutoscalerType) TypeDataPtr() interface{}
type EventEditDomainType ¶
type EventEditDomainType struct { Event TypeData EventEditDomainTypeData `json:"type_data"` }
func (*EventEditDomainType) String ¶
func (ev *EventEditDomainType) String() string
func (*EventEditDomainType) TypeDataPtr ¶
func (e *EventEditDomainType) TypeDataPtr() interface{}
type EventEditDomainTypeData ¶
type EventEditHDSContactType ¶
type EventEditHDSContactType struct { Event TypeData EventEditHDSContactTypeData `json:"type_data"` }
func (*EventEditHDSContactType) String ¶
func (ev *EventEditHDSContactType) String() string
func (*EventEditHDSContactType) TypeDataPtr ¶
func (e *EventEditHDSContactType) TypeDataPtr() interface{}
type EventEditHDSContactTypeData ¶
type EventEditHDSContactTypeData struct { Name string `json:"name"` Email string `json:"email"` PhoneNumber string `json:"phone_number"` Company string `json:"company"` AddressLine1 string `json:"address_line1"` AddressLine2 string `json:"address_line2"` AddressCity string `json:"address_city"` AddressZip string `json:"address_zip"` AddressCountry string `json:"address_country"` Notes string `json:"notes"` }
Edit hds_contact
type EventEditKeyType ¶
type EventEditKeyType struct { Event TypeData EventEditKeyTypeData `json:"type_data"` }
func (*EventEditKeyType) String ¶
func (ev *EventEditKeyType) String() string
func (*EventEditKeyType) TypeDataPtr ¶
func (e *EventEditKeyType) TypeDataPtr() interface{}
type EventEditKeyTypeData ¶
type EventEditNotifierType ¶
type EventEditNotifierType struct { Event TypeData EventEditNotifierTypeData `json:"type_data"` }
func (*EventEditNotifierType) String ¶
func (ev *EventEditNotifierType) String() string
func (*EventEditNotifierType) TypeDataPtr ¶
func (e *EventEditNotifierType) TypeDataPtr() interface{}
type EventEditNotifierTypeData ¶
type EventEditNotifierTypeData struct { NotifierName string `json:"notifier_name"` Active bool `json:"active"` SendAllEvents bool `json:"send_all_events"` SelectedEvents []string `json:"selected_events"` NotifierType string `json:"notifier_type"` NotifierTypeData map[string]interface{} `json:"notifier_type_data"` PlatformName string `json:"platform_name"` }
Edit notifier
type EventEditVariableType ¶
type EventEditVariableType struct { Event TypeData EventEditVariableTypeData `json:"type_data"` }
func (*EventEditVariableType) String ¶
func (ev *EventEditVariableType) String() string
func (*EventEditVariableType) TypeDataPtr ¶
func (e *EventEditVariableType) TypeDataPtr() interface{}
func (*EventEditVariableType) Who ¶
func (ev *EventEditVariableType) Who() string
type EventEditVariableTypeData ¶
type EventEditVariableTypeData struct { EventVariable OldValue string `json:"old_value"` AddonName string `json:"addon_name"` }
type EventEditVariablesType ¶
type EventEditVariablesType struct { Event TypeData EventEditVariablesTypeData `json:"type_data"` }
func (*EventEditVariablesType) String ¶
func (ev *EventEditVariablesType) String() string
func (*EventEditVariablesType) TypeDataPtr ¶
func (e *EventEditVariablesType) TypeDataPtr() interface{}
type EventEditVariablesTypeData ¶
type EventEditVariablesTypeData struct { NewVars EventVariables `json:"new_vars"` UpdatedVars EventVariables `json:"updated_vars"` DeletedVars EventVariables `json:"deleted_vars"` }
type EventLinkGithubType ¶
type EventLinkGithubType struct { Event TypeData EventLinkGithubTypeData `json:"type_data"` }
func (*EventLinkGithubType) String ¶
func (ev *EventLinkGithubType) String() string
func (*EventLinkGithubType) TypeDataPtr ¶
func (e *EventLinkGithubType) TypeDataPtr() interface{}
type EventLinkGithubTypeData ¶
type EventLinkSCMType ¶
type EventLinkSCMType struct { Event TypeData EventLinkSCMTypeData `json:"type_data"` }
func (*EventLinkSCMType) String ¶
func (ev *EventLinkSCMType) String() string
func (*EventLinkSCMType) TypeDataPtr ¶
func (e *EventLinkSCMType) TypeDataPtr() interface{}
type EventLinkSCMTypeData ¶
type EventLinkSCMTypeData struct { RepoName string `json:"repo_name"` LinkerUsername string `json:"linker_username"` Source string `json:"source"` Branch string `json:"branch"` AutoDeploy string `json:"auto_deploy"` AutoDeployReviewApps string `json:"auto_deploy_review_apps"` DeleteOnClose string `json:"delete_on_close"` DeleteStale string `json:"delete_stale"` HoursBeforeDeleteOnClose string `json:"hours_before_delete_on_close"` HoursBeforeDeleteStale string `json:"hours_before_delete_stale"` CreationFromForksAllowed string `json:"creation_from_forks_allowed"` }
type EventLoginFailureType ¶
type EventLoginFailureType struct { Event TypeData EventLoginFailureTypeData `json:"type_data"` }
func (*EventLoginFailureType) String ¶
func (ev *EventLoginFailureType) String() string
func (*EventLoginFailureType) TypeDataPtr ¶
func (e *EventLoginFailureType) TypeDataPtr() interface{}
type EventLoginFailureTypeData ¶
type EventLoginFailureTypeData EventSecurityTypeData
type EventLoginLockType ¶
type EventLoginLockType struct { Event TypeData EventLoginLockTypeData `json:"type_data"` }
func (*EventLoginLockType) String ¶
func (ev *EventLoginLockType) String() string
func (*EventLoginLockType) TypeDataPtr ¶
func (e *EventLoginLockType) TypeDataPtr() interface{}
type EventLoginLockTypeData ¶
type EventLoginLockTypeData EventSecurityTypeData
type EventLoginSuccessType ¶
type EventLoginSuccessType struct { Event TypeData EventLoginSuccessTypeData `json:"type_data"` }
func (*EventLoginSuccessType) String ¶
func (ev *EventLoginSuccessType) String() string
func (*EventLoginSuccessType) TypeDataPtr ¶
func (e *EventLoginSuccessType) TypeDataPtr() interface{}
type EventLoginSuccessTypeData ¶
type EventLoginSuccessTypeData EventSecurityTypeData
type EventLoginUnlockSuccessType ¶
type EventLoginUnlockSuccessType struct { Event TypeData EventLoginUnlockSuccessTypeData `json:"type_data"` }
func (*EventLoginUnlockSuccessType) String ¶
func (ev *EventLoginUnlockSuccessType) String() string
func (*EventLoginUnlockSuccessType) TypeDataPtr ¶
func (e *EventLoginUnlockSuccessType) TypeDataPtr() interface{}
type EventLoginUnlockSuccessTypeData ¶
type EventLoginUnlockSuccessTypeData EventSecurityTypeData
type EventNewAddonLogDrainType ¶
type EventNewAddonLogDrainType struct { Event TypeData EventNewAddonLogDrainTypeData `json:"type_data"` }
func (*EventNewAddonLogDrainType) String ¶
func (ev *EventNewAddonLogDrainType) String() string
func (*EventNewAddonLogDrainType) TypeDataPtr ¶
func (e *EventNewAddonLogDrainType) TypeDataPtr() interface{}
type EventNewAddonLogDrainTypeData ¶
type EventNewAddonLogDrainTypeData struct { URL string `json:"url"` AddonUUID string `json:"addon_uuid"` AddonName string `json:"addon_name"` }
New addon log drain
type EventNewAddonType ¶
type EventNewAddonType struct { Event TypeData EventNewAddonTypeData `json:"type_data"` }
func (*EventNewAddonType) String ¶
func (ev *EventNewAddonType) String() string
func (*EventNewAddonType) TypeDataPtr ¶
func (e *EventNewAddonType) TypeDataPtr() interface{}
type EventNewAddonTypeData ¶
type EventNewAddonTypeData struct {
EventAddon
}
type EventNewAlertType ¶
type EventNewAlertType struct { Event TypeData EventNewAlertTypeData `json:"type_data"` }
func (*EventNewAlertType) String ¶
func (ev *EventNewAlertType) String() string
func (*EventNewAlertType) TypeDataPtr ¶
func (e *EventNewAlertType) TypeDataPtr() interface{}
type EventNewAlertTypeData ¶
type EventNewAppType ¶
type EventNewAppType struct { Event TypeData EventNewAppTypeData `json:"type_data"` }
func (*EventNewAppType) String ¶
func (ev *EventNewAppType) String() string
func (*EventNewAppType) TypeDataPtr ¶
func (e *EventNewAppType) TypeDataPtr() interface{}
type EventNewAppTypeData ¶
type EventNewAppTypeData struct {
GitSource string `json:"git_source"`
}
type EventNewAutoscalerType ¶
type EventNewAutoscalerType struct { Event TypeData EventNewAutoscalerTypeData `json:"type_data"` }
func (*EventNewAutoscalerType) String ¶
func (ev *EventNewAutoscalerType) String() string
func (*EventNewAutoscalerType) TypeDataPtr ¶
func (e *EventNewAutoscalerType) TypeDataPtr() interface{}
type EventNewCollaboratorType ¶
type EventNewCollaboratorType struct { Event TypeData EventNewCollaboratorTypeData `json:"type_data"` }
func (*EventNewCollaboratorType) String ¶
func (ev *EventNewCollaboratorType) String() string
func (*EventNewCollaboratorType) TypeDataPtr ¶
func (e *EventNewCollaboratorType) TypeDataPtr() interface{}
type EventNewCollaboratorTypeData ¶
type EventNewCollaboratorTypeData struct {
Collaborator EventCollaborator `json:"collaborator"`
}
type EventNewDomainType ¶
type EventNewDomainType struct { Event TypeData EventNewDomainTypeData `json:"type_data"` }
func (*EventNewDomainType) String ¶
func (ev *EventNewDomainType) String() string
func (*EventNewDomainType) TypeDataPtr ¶
func (e *EventNewDomainType) TypeDataPtr() interface{}
type EventNewDomainTypeData ¶
type EventNewIntegrationType ¶
type EventNewIntegrationType struct { Event TypeData EventNewIntegrationTypeData `json:"type_data"` }
func (*EventNewIntegrationType) String ¶
func (ev *EventNewIntegrationType) String() string
func (*EventNewIntegrationType) TypeDataPtr ¶
func (e *EventNewIntegrationType) TypeDataPtr() interface{}
type EventNewKeyType ¶
type EventNewKeyType struct { Event TypeData EventNewKeyTypeData `json:"type_data"` }
func (*EventNewKeyType) String ¶
func (ev *EventNewKeyType) String() string
func (*EventNewKeyType) TypeDataPtr ¶
func (e *EventNewKeyType) TypeDataPtr() interface{}
type EventNewKeyTypeData ¶
type EventNewLogDrainType ¶
type EventNewLogDrainType struct { Event TypeData EventNewLogDrainTypeData `json:"type_data"` }
func (*EventNewLogDrainType) String ¶
func (ev *EventNewLogDrainType) String() string
func (*EventNewLogDrainType) TypeDataPtr ¶
func (e *EventNewLogDrainType) TypeDataPtr() interface{}
type EventNewLogDrainTypeData ¶
type EventNewLogDrainTypeData struct {
URL string `json:"url"`
}
New log drain
type EventNewNotifierType ¶
type EventNewNotifierType struct { Event TypeData EventNewNotifierTypeData `json:"type_data"` }
func (*EventNewNotifierType) String ¶
func (ev *EventNewNotifierType) String() string
func (*EventNewNotifierType) TypeDataPtr ¶
func (e *EventNewNotifierType) TypeDataPtr() interface{}
type EventNewNotifierTypeData ¶
type EventNewNotifierTypeData struct { NotifierName string `json:"notifier_name"` Active bool `json:"active"` SendAllEvents bool `json:"send_all_events"` SelectedEvents []string `json:"selected_events"` NotifierType string `json:"notifier_type"` NotifierTypeData map[string]interface{} `json:"notifier_type_data"` PlatformName string `json:"platform_name"` }
New notifier
type EventNewTokenType ¶
type EventNewTokenType struct { Event TypeData EventNewTokenTypeData `json:"type_data"` }
func (*EventNewTokenType) String ¶
func (ev *EventNewTokenType) String() string
func (*EventNewTokenType) TypeDataPtr ¶
func (e *EventNewTokenType) TypeDataPtr() interface{}
type EventNewTokenTypeData ¶
type EventNewUserType ¶
type EventNewUserType struct { Event TypeData EventNewUserTypeData `json:"type_data"` }
func (*EventNewUserType) String ¶
func (ev *EventNewUserType) String() string
func (*EventNewUserType) TypeDataPtr ¶
func (e *EventNewUserType) TypeDataPtr() interface{}
type EventNewUserTypeData ¶
type EventNewUserTypeData struct { }
type EventNewVariableType ¶
type EventNewVariableType struct { Event TypeData EventNewVariableTypeData `json:"type_data"` }
func (*EventNewVariableType) String ¶
func (ev *EventNewVariableType) String() string
func (*EventNewVariableType) TypeDataPtr ¶
func (e *EventNewVariableType) TypeDataPtr() interface{}
func (*EventNewVariableType) Who ¶
func (ev *EventNewVariableType) Who() string
type EventNewVariableTypeData ¶
type EventNewVariableTypeData struct { AddonName string `json:"addon_name"` EventVariable }
type EventPasswordResetQueryType ¶
type EventPasswordResetQueryType struct { Event TypeData EventPasswordResetQueryTypeData `json:"type_data"` }
func (*EventPasswordResetQueryType) String ¶
func (ev *EventPasswordResetQueryType) String() string
func (*EventPasswordResetQueryType) TypeDataPtr ¶
func (e *EventPasswordResetQueryType) TypeDataPtr() interface{}
type EventPasswordResetQueryTypeData ¶
type EventPasswordResetQueryTypeData EventSecurityTypeData
type EventPasswordResetSuccessType ¶
type EventPasswordResetSuccessType struct { Event TypeData EventPasswordResetSuccessTypeData `json:"type_data"` }
func (*EventPasswordResetSuccessType) String ¶
func (ev *EventPasswordResetSuccessType) String() string
func (*EventPasswordResetSuccessType) TypeDataPtr ¶
func (e *EventPasswordResetSuccessType) TypeDataPtr() interface{}
type EventPasswordResetSuccessTypeData ¶
type EventPasswordResetSuccessTypeData EventSecurityTypeData
type EventPaymentAttemptType ¶
type EventPaymentAttemptType struct { Event TypeData EventPaymentAttemptTypeData `json:"type_data"` }
func (*EventPaymentAttemptType) String ¶
func (ev *EventPaymentAttemptType) String() string
func (*EventPaymentAttemptType) TypeDataPtr ¶
func (e *EventPaymentAttemptType) TypeDataPtr() interface{}
type EventRegenerateTokenType ¶
type EventRegenerateTokenType struct { Event TypeData EventRegenerateTokenTypeData `json:"type_data"` }
func (*EventRegenerateTokenType) String ¶
func (ev *EventRegenerateTokenType) String() string
func (*EventRegenerateTokenType) TypeDataPtr ¶
func (e *EventRegenerateTokenType) TypeDataPtr() interface{}
type EventRenameAppType ¶
type EventRenameAppType struct { Event TypeData EventRenameAppTypeData `json:"type_data"` }
func (*EventRenameAppType) String ¶
func (ev *EventRenameAppType) String() string
func (*EventRenameAppType) TypeDataPtr ¶
func (e *EventRenameAppType) TypeDataPtr() interface{}
type EventRenameAppTypeData ¶
type EventRepeatedCrashType ¶
type EventRepeatedCrashType struct { Event TypeData EventRepeatedCrashTypeData `json:"type_data"` }
func (*EventRepeatedCrashType) String ¶
func (ev *EventRepeatedCrashType) String() string
func (*EventRepeatedCrashType) TypeDataPtr ¶
func (e *EventRepeatedCrashType) TypeDataPtr() interface{}
type EventRestartType ¶
type EventRestartType struct { Event TypeData EventRestartTypeData `json:"type_data"` }
func (*EventRestartType) String ¶
func (ev *EventRestartType) String() string
func (*EventRestartType) TypeDataPtr ¶
func (e *EventRestartType) TypeDataPtr() interface{}
func (*EventRestartType) Who ¶
func (ev *EventRestartType) Who() string
type EventRestartTypeData ¶
type EventResumeAddonType ¶
type EventResumeAddonType struct { Event TypeData EventResumeAddonTypeData `json:"type_data"` }
func (*EventResumeAddonType) String ¶
func (ev *EventResumeAddonType) String() string
func (*EventResumeAddonType) TypeDataPtr ¶
func (e *EventResumeAddonType) TypeDataPtr() interface{}
type EventResumeAddonTypeData ¶
type EventResumeAddonTypeData struct {
EventAddon
}
type EventRevokeGithubType ¶
type EventRevokeGithubType struct {
Event
}
func (*EventRevokeGithubType) String ¶
func (ev *EventRevokeGithubType) String() string
func (*EventRevokeGithubType) TypeDataPtr ¶
func (e *EventRevokeGithubType) TypeDataPtr() interface{}
type EventRunType ¶
type EventRunType struct { Event TypeData EventRunTypeData `json:"type_data"` }
func (*EventRunType) String ¶
func (ev *EventRunType) String() string
func (*EventRunType) TypeDataPtr ¶
func (e *EventRunType) TypeDataPtr() interface{}
type EventRunTypeData ¶
type EventScaleType ¶
type EventScaleType struct { Event TypeData EventScaleTypeData `json:"type_data"` }
func (*EventScaleType) String ¶
func (ev *EventScaleType) String() string
func (*EventScaleType) TypeDataPtr ¶
func (e *EventScaleType) TypeDataPtr() interface{}
type EventScaleTypeData ¶
type EventSecurityTypeData ¶
type EventSecurityTypeData struct {
RemoteIP string `json:"remote_ip"`
}
type EventStackChangedType ¶ added in v6.3.0
type EventStackChangedType struct { Event TypeData EventStackChangedTypeData `json:"type_data"` }
func (*EventStackChangedType) String ¶ added in v6.3.0
func (ev *EventStackChangedType) String() string
func (*EventStackChangedType) TypeDataPtr ¶ added in v6.3.0
func (e *EventStackChangedType) TypeDataPtr() interface{}
type EventStackChangedTypeData ¶ added in v6.3.0
type EventStackChangedTypeData struct { PreviousStackID string `json:"previous_stack_id"` CurrentStackID string `json:"current_stack_id"` PreviousStackName string `json:"previous_stack_name"` CurrentStackName string `json:"current_stack_name"` }
Stack changed
type EventStartRegionMigrationType ¶
type EventStartRegionMigrationType struct { Event TypeData EventStartRegionMigrationTypeData `json:"type_data"` }
func (*EventStartRegionMigrationType) String ¶
func (ev *EventStartRegionMigrationType) String() string
func (*EventStartRegionMigrationType) TypeDataPtr ¶
func (e *EventStartRegionMigrationType) TypeDataPtr() interface{}
type EventStopAppType ¶
type EventStopAppType struct { Event TypeData EventStopAppTypeData `json:"type_data"` }
func (*EventStopAppType) String ¶
func (ev *EventStopAppType) String() string
func (*EventStopAppType) TypeDataPtr ¶
func (e *EventStopAppType) TypeDataPtr() interface{}
type EventStopAppTypeData ¶
type EventStopAppTypeData struct {
Reason string `json:"reason"`
}
type EventSuspendAddonType ¶
type EventSuspendAddonType struct { Event TypeData EventSuspendAddonTypeData `json:"type_data"` }
func (*EventSuspendAddonType) String ¶
func (ev *EventSuspendAddonType) String() string
func (*EventSuspendAddonType) TypeDataPtr ¶
func (e *EventSuspendAddonType) TypeDataPtr() interface{}
type EventSuspendAddonTypeData ¶
type EventSuspendAddonTypeData struct { EventAddon Reason string `json:"reason"` }
type EventTfaDisabledType ¶
type EventTfaDisabledType struct { Event TypeData EventTfaDisabledTypeData `json:"type_data"` }
func (*EventTfaDisabledType) String ¶
func (ev *EventTfaDisabledType) String() string
func (*EventTfaDisabledType) TypeDataPtr ¶
func (e *EventTfaDisabledType) TypeDataPtr() interface{}
type EventTfaEnabledType ¶
type EventTfaEnabledType struct { Event TypeData EventTfaEnabledTypeData `json:"type_data"` }
func (*EventTfaEnabledType) String ¶
func (ev *EventTfaEnabledType) String() string
func (*EventTfaEnabledType) TypeDataPtr ¶
func (e *EventTfaEnabledType) TypeDataPtr() interface{}
type EventTfaEnabledTypeData ¶
type EventTfaEnabledTypeData struct {
Provider string `json:"provider"`
}
Enable Tfa
type EventTransferAppType ¶
type EventTransferAppType struct { Event TypeData EventTransferAppTypeData `json:"type_data"` }
func (*EventTransferAppType) String ¶
func (ev *EventTransferAppType) String() string
func (*EventTransferAppType) TypeDataPtr ¶
func (e *EventTransferAppType) TypeDataPtr() interface{}
type EventTypeName ¶
type EventTypeName string
const ( EventNewUser EventTypeName = "new_user" EventNewApp EventTypeName = "new_app" EventEditApp EventTypeName = "edit_app" EventDeleteApp EventTypeName = "delete_app" EventRenameApp EventTypeName = "rename_app" EventTransferApp EventTypeName = "transfer_app" EventRestart EventTypeName = "restart" EventScale EventTypeName = "scale" EventStopApp EventTypeName = "stop_app" EventCrash EventTypeName = "crash" EventRepeatedCrash EventTypeName = "repeated_crash" EventDeployment EventTypeName = "deployment" EventLinkSCM EventTypeName = "link_scm" EventUpdateSCM EventTypeName = "update_scm" EventUnlinkSCM EventTypeName = "unlink_scm" EventNewIntegration EventTypeName = "new_integration" EventDeleteIntegration EventTypeName = "delete_integration" EventAuthorizeGithub EventTypeName = "authorize_github" EventRevokeGithub EventTypeName = "revoke_github" EventRun EventTypeName = "run" EventNewDomain EventTypeName = "new_domain" EventEditDomain EventTypeName = "edit_domain" EventDeleteDomain EventTypeName = "delete_domain" EventUpgradeDatabase EventTypeName = "upgrade_database" EventNewAddon EventTypeName = "new_addon" EventUpgradeAddon EventTypeName = "upgrade_addon" EventDeleteAddon EventTypeName = "delete_addon" EventResumeAddon EventTypeName = "resume_addon" EventSuspendAddon EventTypeName = "suspend_addon" EventDatabaseAddFeature EventTypeName = "database/add_feature" EventDatabaseRemoveFeature EventTypeName = "database/remove_feature" EventNewCollaborator EventTypeName = "new_collaborator" EventAcceptCollaborator EventTypeName = "accept_collaborator" EventDeleteCollaborator EventTypeName = "delete_collaborator" EventNewVariable EventTypeName = "new_variable" EventEditVariable EventTypeName = "edit_variable" EventEditVariables EventTypeName = "edit_variables" EventDeleteVariable EventTypeName = "delete_variable" EventAddCredit EventTypeName = "add_credit" EventAddPaymentMethod EventTypeName = "add_payment_method" EventAddVoucher EventTypeName = "add_voucher" EventNewKey EventTypeName = "new_key" EventEditKey EventTypeName = "edit_key" EventDeleteKey EventTypeName = "delete_key" EventPaymentAttempt EventTypeName = "payment_attempt" EventNewAlert EventTypeName = "new_alert" EventAlert EventTypeName = "alert" EventDeleteAlert EventTypeName = "delete_alert" EventNewAutoscaler EventTypeName = "new_autoscaler" EventEditAutoscaler EventTypeName = "edit_autoscaler" EventDeleteAutoscaler EventTypeName = "delete_autoscaler" EventAddonUpdated EventTypeName = "addon_updated" EventStartRegionMigration EventTypeName = "start_region_migration" EventNewLogDrain EventTypeName = "new_log_drain" EventDeleteLogDrain EventTypeName = "delete_log_drain" EventNewAddonLogDrain EventTypeName = "new_addon_log_drain" EventDeleteAddonLogDrain EventTypeName = "delete_addon_log_drain" EventNewNotifier EventTypeName = "new_notifier" EventEditNotifier EventTypeName = "edit_notifier" EventDeleteNotifier EventTypeName = "delete_notifier" EventEditHDSContact EventTypeName = "edit_hds_contact" EventCreateDataAccessConsent EventTypeName = "create_data_access_consent" EventNewToken EventTypeName = "new_token" EventRegenerateToken EventTypeName = "regenerate_token" EventDeleteToken EventTypeName = "delete_token" EventTfaEnabled EventTypeName = "tfa_enabled" EventTfaDisabled EventTypeName = "tfa_disabled" EventLoginSuccess EventTypeName = "login_success" EventLoginFailure EventTypeName = "login_failure" EventLoginLock EventTypeName = "login_lock" EventLoginUnlockSuccess EventTypeName = "login_unlock_success" EventPasswordResetQuery EventTypeName = "password_reset_query" EventPasswordResetSuccess EventTypeName = "password_reset_success" EventStackChanged EventTypeName = "stack_changed" // EventLinkGithub and EventUnlinkGithub events are kept for // retro-compatibility. They are replaced by SCM events. EventLinkGithub EventTypeName = "link_github" EventUnlinkGithub EventTypeName = "unlink_github" )
type EventUnlinkGithubType ¶
type EventUnlinkGithubType struct { Event TypeData EventUnlinkGithubTypeData `json:"type_data"` }
func (*EventUnlinkGithubType) String ¶
func (ev *EventUnlinkGithubType) String() string
func (*EventUnlinkGithubType) TypeDataPtr ¶
func (e *EventUnlinkGithubType) TypeDataPtr() interface{}
type EventUnlinkSCMType ¶
type EventUnlinkSCMType struct { Event TypeData EventUnlinkSCMTypeData `json:"type_data"` }
func (*EventUnlinkSCMType) String ¶
func (ev *EventUnlinkSCMType) String() string
func (*EventUnlinkSCMType) TypeDataPtr ¶
func (e *EventUnlinkSCMType) TypeDataPtr() interface{}
type EventUnlinkSCMTypeData ¶
type EventUpdateSCMType ¶ added in v6.5.0
type EventUpdateSCMType struct { Event TypeData EventLinkSCMTypeData `json:"type_data"` }
func (*EventUpdateSCMType) String ¶ added in v6.5.0
func (ev *EventUpdateSCMType) String() string
func (*EventUpdateSCMType) TypeDataPtr ¶ added in v6.5.0
func (e *EventUpdateSCMType) TypeDataPtr() interface{}
type EventUpgradeAddonType ¶
type EventUpgradeAddonType struct { Event TypeData EventUpgradeAddonTypeData `json:"type_data"` }
func (*EventUpgradeAddonType) String ¶
func (ev *EventUpgradeAddonType) String() string
func (*EventUpgradeAddonType) TypeDataPtr ¶
func (e *EventUpgradeAddonType) TypeDataPtr() interface{}
type EventUpgradeAddonTypeData ¶
type EventUpgradeAddonTypeData struct { EventAddon OldPlanName string `json:"old_plan_name"` NewPlanName string `json:"new_plan_name"` }
type EventUpgradeDatabaseType ¶
type EventUpgradeDatabaseType struct { Event TypeData EventUpgradeDatabaseTypeData `json:"type_data"` }
func (*EventUpgradeDatabaseType) String ¶
func (ev *EventUpgradeDatabaseType) String() string
func (*EventUpgradeDatabaseType) TypeDataPtr ¶
func (e *EventUpgradeDatabaseType) TypeDataPtr() interface{}
func (*EventUpgradeDatabaseType) Who ¶
func (ev *EventUpgradeDatabaseType) Who() string
type EventVariable ¶
type EventVariables ¶
type EventVariables []EventVariable
func (EventVariables) Names ¶
func (evs EventVariables) Names() string
type Events ¶
type Events []DetailedEvent
type EventsRes ¶
type EventsRes struct { Events []*Event `json:"events"` Meta struct { PaginationMeta PaginationMeta `json:"pagination"` } }
type EventsService ¶
type EventsService interface { EventTypesList(context.Context) ([]EventType, error) EventCategoriesList(context.Context) ([]EventCategory, error) EventsList(ctx context.Context, app string, opts PaginationOpts) (Events, PaginationMeta, error) UserEventsList(context.Context, PaginationOpts) (Events, PaginationMeta, error) }
type Instance ¶
type Instance struct { ID string `json:"id"` Hostname string `json:"hostname"` Port int `json:"port"` Status InstanceStatus `json:"status"` Type InstanceType `json:"type"` Features []string `json:"features"` PrivateIP string `json:"private_ip"` }
Instance contains the metadata of an Instance which is one component of a Database deployment.
type InstanceStatus ¶
type InstanceStatus string
InstanceStatus is a type of string representing the status of an Instance
const ( // InstanceStatusBooting is set when an instance is starting for the first // time InstanceStatusBooting InstanceStatus = "booting" // InstanceStatusRunning is the default status when the instance is working // normally InstanceStatusRunning InstanceStatus = "running" // InstanceStatusRestarting is set when an instance is restarting (during a // plan change, at the end of an upgrade or a migration) InstanceStatusRestarting InstanceStatus = "restarting" // InstanceStatusMigrating is set when an instance is being migrated by the // Scalingo infrastructure InstanceStatusMigrating InstanceStatus = "migrating" // InstanceStatusUpgrading is set when an instance version is being changed, // part of a Database upgrade InstanceStatusUpgrading InstanceStatus = "upgrading" // InstanceStatusStopped is set when an instance has been stopped InstanceStatusStopped InstanceStatus = "stopped" // InstanceStatusRemoving is set during the deletion of an Instance (business // to starter downgrade or database deletion) InstanceStatusRemoving InstanceStatus = "removing" )
type InstanceType ¶
type InstanceType string
InstanceType is a type of string representing the type of the Instance inside a Database
const ( // InstanceTypeDBNode instances represent database instances holding data InstanceTypeDBNode InstanceType = "db-node" // InstanceTypeUtility instances are those running service used for running a // service which is neither holding data nor routing requests utilities as // stated by its Name InstanceTypeUtility InstanceType = "utility" // InstanceTypeHAProxy are instances running a HAProxy reverse proxy in order // to route requests to the InstanceTypeDBNodes InstanceTypeHAProxy InstanceType = "haproxy" )
type Invoice ¶
type Invoice struct { ID string `json:"id"` TotalPrice int `json:"total_price"` TotalPriceWithVat int `json:"total_price_with_vat"` BillingMonth billingMonthDate `json:"billing_month"` PdfURL string `json:"pdf_url"` InvoiceNumber string `json:"invoice_number"` State string `json:"state"` VatRate int `json:"vat_rate"` Items []InvoiceItem `json:"items"` DetailedItems []InvoiceDetailedItem `json:"detailed_items"` }
type InvoiceDetailedItem ¶
type InvoiceItem ¶
type InvoiceRes ¶
type InvoiceRes struct {
Invoice *Invoice `json:"invoice"`
}
type InvoicesRes ¶
type InvoicesRes struct { Invoices Invoices `json:"invoices"` Meta struct { PaginationMeta PaginationMeta `json:"pagination"` } }
type InvoicesService ¶
type KeysService ¶
type LetsEncryptStatus ¶
type LetsEncryptStatus string
const ( LetsEncryptStatusPendingDNS LetsEncryptStatus = "pending_dns" LetsEncryptStatusNew LetsEncryptStatus = "new" LetsEncryptStatusCreated LetsEncryptStatus = "created" LetsEncryptStatusDNSRequired LetsEncryptStatus = "dns_required" LetsEncryptStatusError LetsEncryptStatus = "error" )
type ListParams ¶
type ListParams struct {
AddonProviders []*AddonProvider `json:"addon_providers"`
}
type LogDrainAddParams ¶
type LogDrainAddPayload ¶
type LogDrainAddPayload struct {
Drain LogDrainAddParams `json:"drain"`
}
type LogDrainRes ¶
type LogDrainRes struct {
Drain LogDrain `json:"drain"`
}
type LogDrainsRes ¶
type LogDrainsRes struct {
Drains []LogDrain `json:"drains"`
}
type LogDrainsService ¶
type LogDrainsService interface { LogDrainsList(ctx context.Context, app string) ([]LogDrain, error) LogDrainAdd(ctx context.Context, app string, params LogDrainAddParams) (*LogDrainRes, error) LogDrainRemove(ctx context.Context, app, URL string) error LogDrainAddonRemove(ctx context.Context, app, addonID string, URL string) error LogDrainsAddonList(ctx context.Context, app string, addonID string) ([]LogDrain, error) LogDrainAddonAdd(ctx context.Context, app string, addonID string, params LogDrainAddParams) (*LogDrainRes, error) }
type LoginParams ¶
type LogsArchiveItem ¶
type LogsArchivesResponse ¶
type LogsArchivesResponse struct { NextCursor string `json:"next_cursor"` HasMore bool `json:"has_more"` Archives []LogsArchiveItem `json:"archives"` }
type LogsArchivesService ¶
type LogsService ¶
type MockSubresourceService ¶
type MockSubresourceService struct {
// contains filtered or unexported fields
}
MockSubresourceService is a mock of SubresourceService interface
func NewMockSubresourceService ¶
func NewMockSubresourceService(ctrl *gomock.Controller) *MockSubresourceService
NewMockSubresourceService creates a new mock instance
func (*MockSubresourceService) EXPECT ¶
func (m *MockSubresourceService) EXPECT() *MockSubresourceServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockSubresourceServiceMockRecorder ¶
type MockSubresourceServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSubresourceServiceMockRecorder is the mock recorder for MockSubresourceService
type NotificationPlatform ¶
type NotificationPlatformsService ¶
type NotificationPlatformsService interface { NotificationPlatformsList(context.Context) ([]*NotificationPlatform, error) NotificationPlatformByName(ctx context.Context, name string) ([]*NotificationPlatform, error) }
type Notifier ¶
type Notifier struct { ID string `json:"id"` AppID string `json:"app_id"` Active *bool `json:"active,omitempty"` Name string `json:"name,omitempty"` Type NotifierType `json:"type"` SendAllEvents *bool `json:"send_all_events,omitempty"` SendAllAlerts *bool `json:"send_all_alerts,omitempty"` SelectedEventIDs []string `json:"selected_event_ids,omitempty"` TypeData map[string]interface{} `json:"-"` RawTypeData json.RawMessage `json:"type_data"` PlatformID string `json:"platform_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Struct used to represent a notifier.
func (*Notifier) GetNotifier ¶
DetailedNotifier implementation
func (*Notifier) GetSelectedEventIDs ¶
func (*Notifier) GetSendAllAlerts ¶
func (*Notifier) GetSendAllEvents ¶
func (*Notifier) GetType ¶
func (not *Notifier) GetType() NotifierType
func (*Notifier) Specialize ¶
func (pnot *Notifier) Specialize() DetailedNotifier
func (*Notifier) TypeDataMap ¶
func (*Notifier) TypeDataPtr ¶
func (not *Notifier) TypeDataPtr() interface{}
type NotifierEmailType ¶
type NotifierEmailType struct { Notifier TypeData NotifierEmailTypeData `json:"type_data,omitempty"` }
func (*NotifierEmailType) TypeDataMap ¶
func (not *NotifierEmailType) TypeDataMap() map[string]interface{}
func (*NotifierEmailType) TypeDataPtr ¶
func (e *NotifierEmailType) TypeDataPtr() interface{}
type NotifierEmailTypeData ¶
type NotifierOutput ¶
type NotifierOutput struct { *Notifier TypeData NotifierTypeDataParams `json:"type_data,omitempty"` RawTypeData omit `json:",omitempty"` // Will always be empty and not serialized }
Struct used to serialize a notifier
type NotifierParams ¶
type NotifierParams struct { Active *bool Name string SendAllEvents *bool SendAllAlerts *bool SelectedEventIDs []string PlatformID string // Options PhoneNumber string // SMS notifier Emails []string // Email notifier UserIDs []string // Email notifier WebhookURL string // Webhook and Slack notifier }
NotifierParams will be given as a parameter in notifiers function's
type NotifierSlackType ¶
type NotifierSlackType struct { Notifier TypeData NotifierSlackTypeData `json:"type_data,omitempty"` }
Slack
func (*NotifierSlackType) TypeDataMap ¶
func (not *NotifierSlackType) TypeDataMap() map[string]interface{}
func (*NotifierSlackType) TypeDataPtr ¶
func (e *NotifierSlackType) TypeDataPtr() interface{}
type NotifierSlackTypeData ¶
type NotifierSlackTypeData struct {
WebhookURL string `json:"webhook_url,omitempty"`
}
type NotifierType ¶
type NotifierType string
const ( NotifierWebhook NotifierType = "webhook" NotifierSlack NotifierType = "slack" NotifierEmail NotifierType = "email" )
type NotifierTypeDataParams ¶
type NotifierWebhookType ¶
type NotifierWebhookType struct { Notifier TypeData NotifierWebhookTypeData `json:"type_data,omitempty"` }
Webhook
func (*NotifierWebhookType) TypeDataMap ¶
func (not *NotifierWebhookType) TypeDataMap() map[string]interface{}
func (*NotifierWebhookType) TypeDataPtr ¶
func (e *NotifierWebhookType) TypeDataPtr() interface{}
type NotifierWebhookTypeData ¶
type NotifierWebhookTypeData struct {
WebhookURL string `json:"webhook_url,omitempty"`
}
type Notifiers ¶
type Notifiers []DetailedNotifier
type NotifiersService ¶
type NotifiersService interface { NotifiersList(ctx context.Context, app string) (Notifiers, error) NotifierProvision(ctx context.Context, app string, params NotifierParams) (*Notifier, error) NotifierByID(ctx context.Context, app, ID string) (*Notifier, error) NotifierUpdate(ctx context.Context, app, ID string, params NotifierParams) (*Notifier, error) NotifierDestroy(ctx context.Context, app, ID string) error }
type Operation ¶
type Operation struct { ID string `json:"id"` AppID string `json:"app_id"` CreatedAt time.Time `json:"created_at"` FinishedAt time.Time `json:"finished_at"` Status OperationStatus `json:"status"` Type OperationType `json:"type"` Error string `json:"error"` StartOneOffData OperationStartOneOffData `json:"start_one_off_data"` }
func (*Operation) ElapsedDuration ¶
type OperationResponse ¶
type OperationResponse struct {
Op Operation `json:"operation"`
}
type OperationStartOneOffData ¶ added in v6.4.0
type OperationStatus ¶
type OperationStatus string
const ( OperationStatusPending OperationStatus = "pending" OperationStatusDone OperationStatus = "done" OperationStatusRunning OperationStatus = "running" OperationStatusError OperationStatus = "error" )
type OperationType ¶
type OperationType string
const ( OperationTypeScale OperationType = "scale" OperationTypeStart OperationType = "start" OperationTypeStartOneOff OperationType = "start-one-off" )
type OperationsService ¶
type PaginationMeta ¶
type PaginationOpts ¶
func (PaginationOpts) ToMap ¶
func (opts PaginationOpts) ToMap() map[string]string
type Plan ¶
type Plan struct { ID string `json:"id"` DisplayName string `json:"display_name"` Name string `json:"name"` Description string `json:"description"` Position int `json:"position"` OnDemand bool `json:"on_demand"` Disabled bool `json:"disabled"` DisabledAlternativePlanID bool `json:"disabled_alternative_plan_id"` SKU string `json:"sku"` HDSAvailable bool `json:"hds_available"` }
type PlansParams ¶
type PlansParams struct {
Plans []*Plan `json:"plans"`
}
type PlatformRes ¶
type PlatformRes struct {
NotificationPlatform *NotificationPlatform `json:"notification_platform"`
}
type PlatformsRes ¶
type PlatformsRes struct {
NotificationPlatforms []*NotificationPlatform `json:"notification_platforms"`
}
type PullRequest ¶
type PullRequest struct { Number int `json:"number"` BranchName string `json:"branch_name"` Title string `json:"title"` URL string `json:"url"` HTMLURL string `json:"html_url"` Ref string `json:"ref"` BaseRef string `json:"base_ref"` CreatedAt time.Time `json:"created_at"` ClosedAt time.Time `json:"closed_at"` }
type RegionMigration ¶
type RegionMigration struct { ID string `json:"id"` SrcAppName string `json:"src_app_name"` DstAppName string `json:"dst_app_name"` AppID string `json:"app_id"` NewAppID string `json:"new_app_id"` Source string `json:"source"` Destination string `json:"destination"` Status RegionMigrationStatus `json:"status"` StartedAt time.Time `json:"started_at"` FinishedAt time.Time `json:"finished_at"` Steps Steps `json:"steps"` }
type RegionMigrationParams ¶
type RegionMigrationStatus ¶
type RegionMigrationStatus string
type RegionMigrationStep ¶
type RegionMigrationStep string
type RegionMigrationsService ¶
type RegionMigrationsService interface { CreateRegionMigration(ctx context.Context, appID string, params RegionMigrationParams) (RegionMigration, error) RunRegionMigrationStep(ctx context.Context, appID, migrationID string, step RegionMigrationStep) error ShowRegionMigration(ctx context.Context, appID, migrationID string) (RegionMigration, error) ListRegionMigrations(ctx context.Context, appID string) ([]RegionMigration, error) }
type RegionsService ¶
type ReviewApp ¶
type ReviewApp struct { ID string `json:"id"` RepoLinkID string `json:"repo_link_id"` AppID string `json:"app_id"` AppName string `json:"app_name"` ParentAppID string `json:"parent_app_id"` ParentAppName string `json:"parent_app_name"` CreatedAt time.Time `json:"created_at"` StaleDeletionDate time.Time `json:"stale_deletion_date"` OnCloseDeletionDate time.Time `json:"on_close_deletion_date"` PullRequest *PullRequest `json:"pull_request"` LastDeployment *Deployment `json:"last_deployment"` }
type RunsService ¶
type SCMIntegration ¶
type SCMIntegration struct { ID string `json:"id"` SCMType SCMType `json:"scm_type"` URL string `json:"url,omitempty"` AccessToken string `json:"access_token"` UID string `json:"uid"` Username string `json:"username"` Email string `json:"email"` AvatarURL string `json:"avatar_url"` ProfileURL string `json:"profile_url"` CreatedAt time.Time `json:"created_at"` Owner Owner `json:"owner"` }
type SCMIntegrationParams ¶
type SCMIntegrationParamsReq ¶
type SCMIntegrationParamsReq struct {
SCMIntegrationParams SCMIntegrationParams `json:"scm_integration"`
}
type SCMIntegrationRes ¶
type SCMIntegrationRes struct {
SCMIntegration SCMIntegration `json:"scm_integration"`
}
type SCMIntegrationsRes ¶
type SCMIntegrationsRes struct {
SCMIntegrations []SCMIntegration `json:"scm_integrations"`
}
type SCMIntegrationsService ¶
type SCMIntegrationsService interface { SCMIntegrationsList(context.Context) ([]SCMIntegration, error) SCMIntegrationsShow(ctx context.Context, id string) (*SCMIntegration, error) SCMIntegrationsCreate(ctx context.Context, scmType SCMType, url string, accessToken string) (*SCMIntegration, error) SCMIntegrationsDelete(ctx context.Context, id string) error SCMIntegrationsImportKeys(ctx context.Context, id string) ([]Key, error) }
type SCMRepoLink ¶
type SCMRepoLink struct { ID string `json:"id"` AppID string `json:"app_id"` Linker SCMRepoLinkLinker `json:"linker"` URL string `json:"url"` Owner string `json:"owner"` Repo string `json:"repo"` Branch string `json:"branch"` SCMType SCMType `json:"scm_type"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` AutoDeployEnabled bool `json:"auto_deploy_enabled"` AuthIntegrationUUID string `json:"auth_integration_uuid"` DeployReviewAppsEnabled bool `json:"deploy_review_apps_enabled"` DeleteOnCloseEnabled bool `json:"delete_on_close_enabled"` DeleteStaleEnabled bool `json:"delete_stale_enabled"` HoursBeforeDeleteOnClose uint `json:"hours_before_delete_on_close"` HoursBeforeDeleteStale uint `json:"hours_before_delete_stale"` LastAutoDeployAt time.Time `json:"last_auto_deploy_at"` AutomaticCreationFromForksAllowed bool `json:"automatic_creation_from_forks_allowed"` }
type SCMRepoLinkCreateParams ¶
type SCMRepoLinkCreateParams struct { Source *string `json:"source,omitempty"` Branch *string `json:"branch,omitempty"` AuthIntegrationUUID *string `json:"auth_integration_uuid,omitempty"` AutoDeployEnabled *bool `json:"auto_deploy_enabled,omitempty"` DeployReviewAppsEnabled *bool `json:"deploy_review_apps_enabled,omitempty"` DestroyOnCloseEnabled *bool `json:"delete_on_close_enabled,omitempty"` HoursBeforeDeleteOnClose *uint `json:"hours_before_delete_on_close,omitempty"` DestroyStaleEnabled *bool `json:"delete_stale_enabled,omitempty"` HoursBeforeDeleteStale *uint `json:"hours_before_delete_stale,omitempty"` AutomaticCreationFromForksAllowed *bool `json:"automatic_creation_from_forks_allowed,omitempty"` }
type SCMRepoLinkDeploymentsResponse ¶
type SCMRepoLinkDeploymentsResponse struct {
Deployments []*Deployment `json:"deployments"`
}
type SCMRepoLinkLinker ¶
type SCMRepoLinkManualDeployResponse ¶ added in v6.5.0
type SCMRepoLinkManualDeployResponse struct {
Deployment *Deployment `json:"deployment"`
}
type SCMRepoLinkReviewAppsResponse ¶
type SCMRepoLinkReviewAppsResponse struct {
ReviewApps []*ReviewApp `json:"review_apps"`
}
type SCMRepoLinkService ¶
type SCMRepoLinkService interface { SCMRepoLinkList(ctx context.Context, opts PaginationOpts) ([]*SCMRepoLink, PaginationMeta, error) SCMRepoLinkShow(ctx context.Context, app string) (*SCMRepoLink, error) SCMRepoLinkCreate(ctx context.Context, app string, params SCMRepoLinkCreateParams) (*SCMRepoLink, error) SCMRepoLinkUpdate(ctx context.Context, app string, params SCMRepoLinkUpdateParams) (*SCMRepoLink, error) SCMRepoLinkDelete(ctx context.Context, app string) error SCMRepoLinkManualDeploy(ctx context.Context, app, branch string) (*Deployment, error) SCMRepoLinkManualReviewApp(ctx context.Context, app, pullRequestID string) error SCMRepoLinkDeployments(ctx context.Context, app string) ([]*Deployment, error) SCMRepoLinkReviewApps(ctx context.Context, app string) ([]*ReviewApp, error) }
type SCMRepoLinkUpdateParams ¶
type SCMRepoLinkUpdateParams struct { Branch *string `json:"branch,omitempty"` AutoDeployEnabled *bool `json:"auto_deploy_enabled,omitempty"` DeployReviewAppsEnabled *bool `json:"deploy_review_apps_enabled,omitempty"` DestroyOnCloseEnabled *bool `json:"delete_on_close_enabled,omitempty"` HoursBeforeDeleteOnClose *uint `json:"hours_before_delete_on_close,omitempty"` DestroyStaleEnabled *bool `json:"delete_stale_enabled,omitempty"` HoursBeforeDeleteStale *uint `json:"hours_before_delete_stale,omitempty"` AutomaticCreationFromForksAllowed *bool `json:"automatic_creation_from_forks_allowed,omitempty"` }
type SCMRepoLinksResponse ¶
type SCMRepoLinksResponse struct { SCMRepoLinks []*SCMRepoLink `json:"scm_repo_links"` Meta struct { PaginationMeta PaginationMeta `json:"pagination"` } }
type SCMType ¶
type SCMType string
const ( SCMGithubType SCMType = "github" // GitHub SCMGithubEnterpriseType SCMType = "github-enterprise" // GitHub Enterprise (private instance) SCMGitlabType SCMType = "gitlab" // GitLab.com SCMGitlabSelfHostedType SCMType = "gitlab-self-hosted" // GitLab self-hosted (private instance) )
Type of SCM integrations
type ScmRepoLinkResponse ¶
type ScmRepoLinkResponse struct {
SCMRepoLink *SCMRepoLink `json:"scm_repo_link"`
}
type SelfResponse ¶
type SelfResponse struct {
User *User `json:"user"`
}
type SignUpService ¶
type SourcesCreateResponse ¶
type SourcesCreateResponse struct {
Source *Source `json:"source"`
}
type SourcesService ¶
type Stack ¶
type Stack struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at"` Name string `json:"name"` Description string `json:"description"` BaseImage string `json:"base_image"` Default bool `json:"default"` DeprecatedAt DeprecationDate `json:"deprecated_at,omitempty"` }
func (*Stack) IsDeprecated ¶
type StacksService ¶
type StaticTokenGenerator ¶
type StaticTokenGenerator struct {
// contains filtered or unexported fields
}
StaticTokenGenerator is an implementation of TokenGenerator which always return the same token. This token is provided to the constructor. The TokenGenerator is used by the Client to authenticate to the Scalingo API.
Usage:
t := GetStaticTokenGenerator("my-token") client := NewClient(ClientConfig{ TokenGenerator: t, })
Any subsequent calls to the Scalingo API will use this token to authenticate.
func NewStaticTokenGenerator ¶
func NewStaticTokenGenerator(token string) *StaticTokenGenerator
NewStaticTokenGenerator returns a new StaticTokenGenerator. The only argument is the token that will always be returned by this generator.
func (*StaticTokenGenerator) GetAccessToken ¶
func (t *StaticTokenGenerator) GetAccessToken(context.Context) (string, error)
GetAccessToken always returns the configured token.
func (*StaticTokenGenerator) SetClient ¶
func (t *StaticTokenGenerator) SetClient(c *Client)
SetClient sets the client attribute of this token generator.
type Step ¶
type Step struct { ID string `json:"id"` Name string `json:"name"` Status StepStatus `json:"status"` Logs string `json:"logs"` }
type StepStatus ¶
type StepStatus string
type TokenCreateParams ¶
type TokenCreateParams struct {
Name string `json:"name"`
}
type TokensService ¶
type UpdateUserParams ¶
type UpdateUserResponse ¶
type UpdateUserResponse struct {
User *User `json:"user"`
}
type UsersService ¶
type VariableSetParams ¶
type VariableSetParams struct {
Variable *Variable `json:"variable"`
}
type VariablesRes ¶
type VariablesRes struct {
Variables Variables `json:"variables"`
}
type VariablesService ¶
type VariablesService interface { VariablesList(ctx context.Context, app string) (Variables, error) VariablesListWithoutAlias(ctx context.Context, app string) (Variables, error) VariableSet(ctx context.Context, app string, name string, value string) (*Variable, int, error) VariableMultipleSet(ctx context.Context, app string, variables Variables) (Variables, int, error) VariableUnset(ctx context.Context, app string, id string) error }
Source Files ¶
- addons.go
- addons_providers.go
- alerts.go
- apps.go
- auth_mock.go
- autoscalers.go
- backups.go
- client.go
- collaborators.go
- container.go
- container_sizes.go
- cron_tasks.go
- data_access_consent.go
- database_type_versions.go
- databases.go
- deployments.go
- domains.go
- env.go
- events.go
- events_account.go
- events_addon.go
- events_alert.go
- events_app.go
- events_billing.go
- events_boilerplate.go
- events_specialize.go
- events_structs.go
- events_token.go
- events_types.go
- events_user.go
- gomock_subresourceservice.go
- invoices.go
- keys.go
- log_drains.go
- logs-archives.go
- logs.go
- metrics.go
- notification_platforms.go
- notifier_types.go
- notifiers.go
- operations.go
- owner.go
- pagination_options.go
- region_migrations.go
- regions.go
- review_apps.go
- run.go
- scm_integrations.go
- scm_repo_link.go
- signup.go
- sources.go
- stacks.go
- static_token.go
- tokens.go
- users.go
- version.go
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
examples
|
|
httpmock
Package httpmock is a generated GoMock package.
|
Package httpmock is a generated GoMock package. |
tokensservicemock
Package tokensservicemock is a generated GoMock package.
|
Package tokensservicemock is a generated GoMock package. |
Package scalingomock is a generated GoMock package.
|
Package scalingomock is a generated GoMock package. |