Documentation
¶
Overview ¶
Package godo is the DigitalOcean API v2 client for Go.
Index ¶
- Constants
- func Bool(v bool) *booldeprecated
- func CIDRSourceFirewall(cidr string) string
- func CheckResponse(r *http.Response) error
- func DoRequest(ctx context.Context, req *http.Request) (*http.Response, error)
- func DoRequestWithClient(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
- func ForEachAppSpecComponent[T any](s *AppSpec, fn func(component T) error) error
- func GetAppSpecComponent[T interface{ ... }](s *AppSpec, name string) (T, error)
- func IPSourceFirewall(ip string) string
- func Int(v int) *intdeprecated
- func PtrTo[T any](v T) *T
- func StreamToString(stream io.Reader) string
- func String(v string) *stringdeprecated
- func Stringify(message interface{}) string
- func ToURN(resourceType string, id interface{}) string
- type Account
- type AccountService
- type AccountServiceOp
- type Action
- type ActionRequest
- type ActionsService
- type ActionsServiceOp
- type Address
- type AlertDestinationUpdateRequest
- type AlertPolicy
- type AlertPolicyComp
- type AlertPolicyCreateRequest
- type AlertPolicyUpdateRequest
- type Alerts
- type App
- func (a *App) GetActiveDeployment() *Deployment
- func (a *App) GetBuildConfig() *AppBuildConfig
- func (a *App) GetCreatedAt() time.Time
- func (a *App) GetDedicatedIps() []*AppDedicatedIp
- func (a *App) GetDefaultIngress() string
- func (a *App) GetDomains() []*AppDomain
- func (a *App) GetID() string
- func (a *App) GetInProgressDeployment() *Deployment
- func (a *App) GetLastDeploymentActiveAt() time.Time
- func (a *App) GetLastDeploymentCreatedAt() time.Time
- func (a *App) GetLiveDomain() string
- func (a *App) GetLiveURL() string
- func (a *App) GetLiveURLBase() string
- func (a *App) GetOwnerUUID() string
- func (a *App) GetPendingDeployment() *Deployment
- func (a *App) GetPinnedDeployment() *Deployment
- func (a *App) GetProjectID() string
- func (a *App) GetRegion() *AppRegion
- func (a *App) GetSpec() *AppSpec
- func (a *App) GetTierSlug() string
- func (a *App) GetUpdatedAt() time.Time
- func (a App) URN() string
- type AppAlert
- func (a *AppAlert) GetComponentName() string
- func (a *AppAlert) GetEmails() []string
- func (a *AppAlert) GetID() string
- func (a *AppAlert) GetPhase() AppAlertPhase
- func (a *AppAlert) GetProgress() *AppAlertProgress
- func (a *AppAlert) GetSlackWebhooks() []*AppAlertSlackWebhook
- func (a *AppAlert) GetSpec() *AppAlertSpec
- type AppAlertPhase
- type AppAlertProgress
- type AppAlertProgressStep
- func (a *AppAlertProgressStep) GetEndedAt() time.Time
- func (a *AppAlertProgressStep) GetName() string
- func (a *AppAlertProgressStep) GetReason() *AppAlertProgressStepReason
- func (a *AppAlertProgressStep) GetStartedAt() time.Time
- func (a *AppAlertProgressStep) GetStatus() AppAlertProgressStepStatus
- func (a *AppAlertProgressStep) GetSteps() []*AppAlertProgressStep
- type AppAlertProgressStepReason
- type AppAlertProgressStepStatus
- type AppAlertSlackWebhook
- type AppAlertSpec
- type AppAlertSpecOperator
- type AppAlertSpecRule
- type AppAlertSpecWindow
- type AppAutoscalingSpec
- type AppAutoscalingSpecMetricCPU
- type AppAutoscalingSpecMetrics
- type AppBuildConfig
- type AppBuildConfigCNBVersioning
- type AppBuildableComponentSpec
- type AppCNBBuildableComponentSpec
- type AppCORSPolicy
- func (a *AppCORSPolicy) GetAllowCredentials() bool
- func (a *AppCORSPolicy) GetAllowHeaders() []string
- func (a *AppCORSPolicy) GetAllowMethods() []string
- func (a *AppCORSPolicy) GetAllowOrigins() []*AppStringMatch
- func (a *AppCORSPolicy) GetExposeHeaders() []string
- func (a *AppCORSPolicy) GetMaxAge() string
- type AppComponentSpec
- type AppComponentType
- type AppContainerComponentSpec
- type AppCreateRequest
- type AppDatabaseSpec
- func (a *AppDatabaseSpec) GetClusterName() string
- func (a *AppDatabaseSpec) GetDBName() string
- func (a *AppDatabaseSpec) GetDBUser() string
- func (a *AppDatabaseSpec) GetEngine() AppDatabaseSpecEngine
- func (a *AppDatabaseSpec) GetName() string
- func (a *AppDatabaseSpec) GetNumNodes() int64
- func (a *AppDatabaseSpec) GetProduction() bool
- func (a *AppDatabaseSpec) GetSize() string
- func (s *AppDatabaseSpec) GetType() AppComponentType
- func (a *AppDatabaseSpec) GetVersion() string
- type AppDatabaseSpecEngine
- type AppDedicatedIp
- type AppDedicatedIpStatus
- type AppDockerBuildableComponentSpec
- type AppDomain
- func (a *AppDomain) GetCertificateExpiresAt() time.Time
- func (a *AppDomain) GetID() string
- func (a *AppDomain) GetPhase() AppDomainPhase
- func (a *AppDomain) GetProgress() *AppDomainProgress
- func (a *AppDomain) GetRotateValidationRecords() bool
- func (a *AppDomain) GetSpec() *AppDomainSpec
- func (a *AppDomain) GetValidation() *AppDomainValidation
- func (a *AppDomain) GetValidations() []*AppDomainValidation
- type AppDomainPhase
- type AppDomainProgress
- type AppDomainProgressStep
- func (a *AppDomainProgressStep) GetEndedAt() time.Time
- func (a *AppDomainProgressStep) GetName() string
- func (a *AppDomainProgressStep) GetReason() *AppDomainProgressStepReason
- func (a *AppDomainProgressStep) GetStartedAt() time.Time
- func (a *AppDomainProgressStep) GetStatus() AppDomainProgressStepStatus
- func (a *AppDomainProgressStep) GetSteps() []*AppDomainProgressStep
- type AppDomainProgressStepReason
- type AppDomainProgressStepStatus
- type AppDomainSpec
- type AppDomainSpecType
- type AppDomainValidation
- type AppEgressSpec
- type AppEgressSpecType
- type AppExec
- type AppFunctionsSpec
- func (a *AppFunctionsSpec) GetAlerts() []*AppAlertSpec
- func (a *AppFunctionsSpec) GetBitbucket() *BitbucketSourceSpec
- func (a *AppFunctionsSpec) GetCORS() *AppCORSPolicy
- func (a *AppFunctionsSpec) GetEnvs() []*AppVariableDefinition
- func (a *AppFunctionsSpec) GetGit() *GitSourceSpec
- func (a *AppFunctionsSpec) GetGitHub() *GitHubSourceSpec
- func (a *AppFunctionsSpec) GetGitLab() *GitLabSourceSpec
- func (a *AppFunctionsSpec) GetLogDestinations() []*AppLogDestinationSpec
- func (a *AppFunctionsSpec) GetName() string
- func (a *AppFunctionsSpec) GetRoutes() []*AppRouteSpec
- func (a *AppFunctionsSpec) GetSourceDir() string
- func (s *AppFunctionsSpec) GetType() AppComponentType
- type AppIngressSpec
- type AppIngressSpecLoadBalancer
- type AppIngressSpecRule
- type AppIngressSpecRuleMatch
- type AppIngressSpecRuleRoutingComponent
- type AppIngressSpecRuleRoutingRedirect
- func (a *AppIngressSpecRuleRoutingRedirect) GetAuthority() string
- func (a *AppIngressSpecRuleRoutingRedirect) GetPort() int64
- func (a *AppIngressSpecRuleRoutingRedirect) GetRedirectCode() int64
- func (a *AppIngressSpecRuleRoutingRedirect) GetScheme() string
- func (a *AppIngressSpecRuleRoutingRedirect) GetUri() string
- type AppIngressSpecRuleStringMatch
- type AppInstanceSize
- func (a *AppInstanceSize) GetBandwidthAllowanceGib() string
- func (a *AppInstanceSize) GetCPUType() AppInstanceSizeCPUType
- func (a *AppInstanceSize) GetCPUs() string
- func (a *AppInstanceSize) GetDeprecationIntent() bool
- func (a *AppInstanceSize) GetFeaturePreview() bool
- func (a *AppInstanceSize) GetMemoryBytes() string
- func (a *AppInstanceSize) GetName() string
- func (a *AppInstanceSize) GetScalable() bool
- func (a *AppInstanceSize) GetSingleInstanceOnly() bool
- func (a *AppInstanceSize) GetSlug() string
- func (a *AppInstanceSize) GetTierDowngradeTo() string
- func (a *AppInstanceSize) GetTierSlug() string
- func (a *AppInstanceSize) GetTierUpgradeTo() string
- func (a *AppInstanceSize) GetUSDPerMonth() string
- func (a *AppInstanceSize) GetUSDPerSecond() string
- type AppInstanceSizeCPUType
- type AppJobSpec
- func (a *AppJobSpec) GetAlerts() []*AppAlertSpec
- func (a *AppJobSpec) GetBitbucket() *BitbucketSourceSpec
- func (a *AppJobSpec) GetBuildCommand() string
- func (a *AppJobSpec) GetDockerfilePath() string
- func (a *AppJobSpec) GetEnvironmentSlug() string
- func (a *AppJobSpec) GetEnvs() []*AppVariableDefinition
- func (a *AppJobSpec) GetGit() *GitSourceSpec
- func (a *AppJobSpec) GetGitHub() *GitHubSourceSpec
- func (a *AppJobSpec) GetGitLab() *GitLabSourceSpec
- func (a *AppJobSpec) GetImage() *ImageSourceSpec
- func (a *AppJobSpec) GetInstanceCount() int64
- func (a *AppJobSpec) GetInstanceSizeSlug() string
- func (a *AppJobSpec) GetKind() AppJobSpecKind
- func (a *AppJobSpec) GetLogDestinations() []*AppLogDestinationSpec
- func (a *AppJobSpec) GetName() string
- func (a *AppJobSpec) GetRunCommand() string
- func (a *AppJobSpec) GetSourceDir() string
- func (a *AppJobSpec) GetTermination() *AppJobSpecTermination
- func (s *AppJobSpec) GetType() AppComponentType
- type AppJobSpecKind
- type AppJobSpecTermination
- type AppLogDestinationSpec
- func (a *AppLogDestinationSpec) GetDatadog() *AppLogDestinationSpecDataDog
- func (a *AppLogDestinationSpec) GetEndpoint() string
- func (a *AppLogDestinationSpec) GetHeaders() []*AppLogDestinationSpecHeader
- func (a *AppLogDestinationSpec) GetLogtail() *AppLogDestinationSpecLogtail
- func (a *AppLogDestinationSpec) GetName() string
- func (a *AppLogDestinationSpec) GetOpenSearch() *AppLogDestinationSpecOpenSearch
- func (a *AppLogDestinationSpec) GetPapertrail() *AppLogDestinationSpecPapertrail
- func (a *AppLogDestinationSpec) GetTLSInsecure() bool
- type AppLogDestinationSpecDataDog
- type AppLogDestinationSpecHeader
- type AppLogDestinationSpecLogtail
- type AppLogDestinationSpecOpenSearch
- type AppLogDestinationSpecPapertrail
- type AppLogType
- type AppLogs
- type AppMaintenanceSpec
- type AppProposeRequest
- type AppProposeResponse
- func (a *AppProposeResponse) GetAppCost() float32
- func (a *AppProposeResponse) GetAppIsStarter() bool
- func (a *AppProposeResponse) GetAppIsStatic() bool
- func (a *AppProposeResponse) GetAppNameAvailable() bool
- func (a *AppProposeResponse) GetAppNameSuggestion() string
- func (a *AppProposeResponse) GetAppTierDowngradeCost() float32
- func (a *AppProposeResponse) GetAppTierUpgradeCost() float32
- func (a *AppProposeResponse) GetExistingStarterApps() string
- func (a *AppProposeResponse) GetExistingStaticApps() string
- func (a *AppProposeResponse) GetMaxFreeStarterApps() string
- func (a *AppProposeResponse) GetMaxFreeStaticApps() string
- func (a *AppProposeResponse) GetSpec() *AppSpec
- type AppRegion
- func (a *AppRegion) GetContinent() string
- func (a *AppRegion) GetDataCenters() []string
- func (a *AppRegion) GetDefault() bool
- func (a *AppRegion) GetDisabled() bool
- func (a *AppRegion) GetFlag() string
- func (a *AppRegion) GetLabel() string
- func (a *AppRegion) GetReason() string
- func (a *AppRegion) GetSlug() string
- type AppRestartRequest
- type AppRoutableComponentSpec
- type AppRouteSpec
- type AppServiceSpec
- func (a *AppServiceSpec) GetAlerts() []*AppAlertSpec
- func (a *AppServiceSpec) GetAutoscaling() *AppAutoscalingSpec
- func (a *AppServiceSpec) GetBitbucket() *BitbucketSourceSpec
- func (a *AppServiceSpec) GetBuildCommand() string
- func (a *AppServiceSpec) GetCORS() *AppCORSPolicy
- func (a *AppServiceSpec) GetDockerfilePath() string
- func (a *AppServiceSpec) GetEnvironmentSlug() string
- func (a *AppServiceSpec) GetEnvs() []*AppVariableDefinition
- func (a *AppServiceSpec) GetGit() *GitSourceSpec
- func (a *AppServiceSpec) GetGitHub() *GitHubSourceSpec
- func (a *AppServiceSpec) GetGitLab() *GitLabSourceSpec
- func (a *AppServiceSpec) GetHTTPPort() int64
- func (a *AppServiceSpec) GetHealthCheck() *AppServiceSpecHealthCheck
- func (a *AppServiceSpec) GetImage() *ImageSourceSpec
- func (a *AppServiceSpec) GetInstanceCount() int64
- func (a *AppServiceSpec) GetInstanceSizeSlug() string
- func (a *AppServiceSpec) GetInternalPorts() []int64
- func (a *AppServiceSpec) GetLogDestinations() []*AppLogDestinationSpec
- func (a *AppServiceSpec) GetName() string
- func (a *AppServiceSpec) GetProtocol() ServingProtocol
- func (a *AppServiceSpec) GetRoutes() []*AppRouteSpec
- func (a *AppServiceSpec) GetRunCommand() string
- func (a *AppServiceSpec) GetSourceDir() string
- func (a *AppServiceSpec) GetTermination() *AppServiceSpecTermination
- func (s *AppServiceSpec) GetType() AppComponentType
- type AppServiceSpecHealthCheck
- func (a *AppServiceSpecHealthCheck) GetFailureThreshold() int32
- func (a *AppServiceSpecHealthCheck) GetHTTPPath() string
- func (a *AppServiceSpecHealthCheck) GetInitialDelaySeconds() int32
- func (a *AppServiceSpecHealthCheck) GetPath() string
- func (a *AppServiceSpecHealthCheck) GetPeriodSeconds() int32
- func (a *AppServiceSpecHealthCheck) GetPort() int64
- func (a *AppServiceSpecHealthCheck) GetSuccessThreshold() int32
- func (a *AppServiceSpecHealthCheck) GetTimeoutSeconds() int32
- type AppServiceSpecTermination
- type AppSourceType
- type AppSpec
- func (s *AppSpec) ForEachAppComponentSpec(fn func(component AppComponentSpec) error) error
- func (a *AppSpec) GetAlerts() []*AppAlertSpec
- func (a *AppSpec) GetDatabases() []*AppDatabaseSpec
- func (a *AppSpec) GetDomains() []*AppDomainSpec
- func (a *AppSpec) GetEgress() *AppEgressSpec
- func (a *AppSpec) GetEnvs() []*AppVariableDefinition
- func (a *AppSpec) GetFeatures() []string
- func (a *AppSpec) GetFunctions() []*AppFunctionsSpec
- func (a *AppSpec) GetIngress() *AppIngressSpec
- func (a *AppSpec) GetJobs() []*AppJobSpec
- func (a *AppSpec) GetMaintenance() *AppMaintenanceSpec
- func (a *AppSpec) GetName() string
- func (a *AppSpec) GetRegion() string
- func (a *AppSpec) GetServices() []*AppServiceSpec
- func (a *AppSpec) GetStaticSites() []*AppStaticSiteSpec
- func (a *AppSpec) GetWorkers() []*AppWorkerSpec
- type AppStaticSiteSpec
- func (a *AppStaticSiteSpec) GetBitbucket() *BitbucketSourceSpec
- func (a *AppStaticSiteSpec) GetBuildCommand() string
- func (a *AppStaticSiteSpec) GetCORS() *AppCORSPolicy
- func (a *AppStaticSiteSpec) GetCatchallDocument() string
- func (a *AppStaticSiteSpec) GetDockerfilePath() string
- func (a *AppStaticSiteSpec) GetEnvironmentSlug() string
- func (a *AppStaticSiteSpec) GetEnvs() []*AppVariableDefinition
- func (a *AppStaticSiteSpec) GetErrorDocument() string
- func (a *AppStaticSiteSpec) GetGit() *GitSourceSpec
- func (a *AppStaticSiteSpec) GetGitHub() *GitHubSourceSpec
- func (a *AppStaticSiteSpec) GetGitLab() *GitLabSourceSpec
- func (a *AppStaticSiteSpec) GetIndexDocument() string
- func (a *AppStaticSiteSpec) GetName() string
- func (a *AppStaticSiteSpec) GetOutputDir() string
- func (a *AppStaticSiteSpec) GetRoutes() []*AppRouteSpec
- func (a *AppStaticSiteSpec) GetSourceDir() string
- func (s *AppStaticSiteSpec) GetType() AppComponentType
- type AppStringMatch
- type AppTier
- type AppUpdateRequest
- type AppVariableDefinition
- type AppVariableScope
- type AppVariableType
- type AppWorkerSpec
- func (a *AppWorkerSpec) GetAlerts() []*AppAlertSpec
- func (a *AppWorkerSpec) GetAutoscaling() *AppAutoscalingSpec
- func (a *AppWorkerSpec) GetBitbucket() *BitbucketSourceSpec
- func (a *AppWorkerSpec) GetBuildCommand() string
- func (a *AppWorkerSpec) GetDockerfilePath() string
- func (a *AppWorkerSpec) GetEnvironmentSlug() string
- func (a *AppWorkerSpec) GetEnvs() []*AppVariableDefinition
- func (a *AppWorkerSpec) GetGit() *GitSourceSpec
- func (a *AppWorkerSpec) GetGitHub() *GitHubSourceSpec
- func (a *AppWorkerSpec) GetGitLab() *GitLabSourceSpec
- func (a *AppWorkerSpec) GetImage() *ImageSourceSpec
- func (a *AppWorkerSpec) GetInstanceCount() int64
- func (a *AppWorkerSpec) GetInstanceSizeSlug() string
- func (a *AppWorkerSpec) GetLogDestinations() []*AppLogDestinationSpec
- func (a *AppWorkerSpec) GetName() string
- func (a *AppWorkerSpec) GetRunCommand() string
- func (a *AppWorkerSpec) GetSourceDir() string
- func (a *AppWorkerSpec) GetTermination() *AppWorkerSpecTermination
- func (s *AppWorkerSpec) GetType() AppComponentType
- type AppWorkerSpecTermination
- type AppsService
- type AppsServiceOp
- func (s *AppsServiceOp) Create(ctx context.Context, create *AppCreateRequest) (*App, *Response, error)
- func (s *AppsServiceOp) CreateDeployment(ctx context.Context, appID string, create ...*DeploymentCreateRequest) (*Deployment, *Response, error)
- func (s *AppsServiceOp) Delete(ctx context.Context, appID string) (*Response, error)
- func (s *AppsServiceOp) Detect(ctx context.Context, detect *DetectRequest) (*DetectResponse, *Response, error)
- func (s *AppsServiceOp) Get(ctx context.Context, appID string) (*App, *Response, error)
- func (s *AppsServiceOp) GetAppDatabaseConnectionDetails(ctx context.Context, appID string) ([]*GetDatabaseConnectionDetailsResponse, *Response, error)
- func (s *AppsServiceOp) GetDeployment(ctx context.Context, appID, deploymentID string) (*Deployment, *Response, error)
- func (s *AppsServiceOp) GetExec(ctx context.Context, appID, deploymentID, component string) (*AppExec, *Response, error)
- func (s *AppsServiceOp) GetInstanceSize(ctx context.Context, slug string) (*AppInstanceSize, *Response, error)
- func (s *AppsServiceOp) GetLogs(ctx context.Context, appID, deploymentID, component string, logType AppLogType, ...) (*AppLogs, *Response, error)
- func (s *AppsServiceOp) GetTier(ctx context.Context, slug string) (*AppTier, *Response, error)deprecated
- func (s *AppsServiceOp) List(ctx context.Context, opts *ListOptions) ([]*App, *Response, error)
- func (s *AppsServiceOp) ListAlerts(ctx context.Context, appID string) ([]*AppAlert, *Response, error)
- func (s *AppsServiceOp) ListBuildpacks(ctx context.Context) ([]*Buildpack, *Response, error)
- func (s *AppsServiceOp) ListDeployments(ctx context.Context, appID string, opts *ListOptions) ([]*Deployment, *Response, error)
- func (s *AppsServiceOp) ListInstanceSizes(ctx context.Context) ([]*AppInstanceSize, *Response, error)
- func (s *AppsServiceOp) ListRegions(ctx context.Context) ([]*AppRegion, *Response, error)
- func (s *AppsServiceOp) ListTiers(ctx context.Context) ([]*AppTier, *Response, error)deprecated
- func (s *AppsServiceOp) Propose(ctx context.Context, propose *AppProposeRequest) (*AppProposeResponse, *Response, error)
- func (s *AppsServiceOp) ResetDatabasePassword(ctx context.Context, appID string, component string) (*Deployment, *Response, error)
- func (s *AppsServiceOp) Restart(ctx context.Context, appID string, opts *AppRestartRequest) (*Deployment, *Response, error)
- func (s *AppsServiceOp) ToggleDatabaseTrustedSource(ctx context.Context, appID string, component string, ...) (*ToggleDatabaseTrustedSourceResponse, *Response, error)
- func (s *AppsServiceOp) Update(ctx context.Context, appID string, update *AppUpdateRequest) (*App, *Response, error)
- func (s *AppsServiceOp) UpdateAlertDestinations(ctx context.Context, appID, alertID string, ...) (*AppAlert, *Response, error)
- func (s *AppsServiceOp) UpgradeBuildpack(ctx context.Context, appID string, opts UpgradeBuildpackOptions) (*UpgradeBuildpackResponse, *Response, error)
- type ArgError
- type AssociatedResource
- type BGP
- type BackupWindow
- type Balance
- type BalanceService
- type BalanceServiceOp
- type BillingHistory
- type BillingHistoryEntry
- type BillingHistoryService
- type BillingHistoryServiceOp
- type BitbucketSourceSpec
- type Blob
- type Buildpack
- type CDN
- type CDNCreateRequest
- type CDNFlushCacheRequest
- type CDNService
- type CDNServiceOp
- func (c CDNServiceOp) Create(ctx context.Context, createRequest *CDNCreateRequest) (*CDN, *Response, error)
- func (c CDNServiceOp) Delete(ctx context.Context, id string) (*Response, error)
- func (c CDNServiceOp) FlushCache(ctx context.Context, id string, flushCacheRequest *CDNFlushCacheRequest) (*Response, error)
- func (c CDNServiceOp) Get(ctx context.Context, id string) (*CDN, *Response, error)
- func (c CDNServiceOp) List(ctx context.Context, opt *ListOptions) ([]CDN, *Response, error)
- func (c CDNServiceOp) UpdateCustomDomain(ctx context.Context, id string, updateRequest *CDNUpdateCustomDomainRequest) (*CDN, *Response, error)
- func (c CDNServiceOp) UpdateTTL(ctx context.Context, id string, updateRequest *CDNUpdateTTLRequest) (*CDN, *Response, error)
- type CDNSettings
- type CDNUpdateCustomDomainRequest
- type CDNUpdateTTLRequest
- type Certificate
- type CertificateRequest
- type CertificatesService
- type CertificatesServiceOp
- func (c *CertificatesServiceOp) Create(ctx context.Context, cr *CertificateRequest) (*Certificate, *Response, error)
- func (c *CertificatesServiceOp) Delete(ctx context.Context, cID string) (*Response, error)
- func (c *CertificatesServiceOp) Get(ctx context.Context, cID string) (*Certificate, *Response, error)
- func (c *CertificatesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Certificate, *Response, error)
- func (c *CertificatesServiceOp) ListByName(ctx context.Context, name string, opt *ListOptions) ([]Certificate, *Response, error)
- type Client
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error)
- func (c *Client) GetRate() Rate
- func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error)
- func (c *Client) OnRequestCompleted(rc RequestCompletionCallback)
- type ClientOpt
- type ClusterlintDiagnostic
- type ClusterlintObject
- type ClusterlintOwner
- type CreateProjectRequest
- type CreateUptimeAlertRequest
- type CreateUptimeCheckRequest
- type CustomImageCreateRequest
- type Database
- type DatabaseBackup
- type DatabaseBackupRestore
- type DatabaseCA
- type DatabaseConnection
- type DatabaseCreateDBRequest
- type DatabaseCreateFirewallRule
- type DatabaseCreateLogsinkRequest
- type DatabaseCreatePoolRequest
- type DatabaseCreateReplicaRequest
- type DatabaseCreateRequest
- type DatabaseCreateTopicRequest
- type DatabaseCreateUserRequest
- type DatabaseDB
- type DatabaseEngineOptions
- type DatabaseEvent
- type DatabaseFirewallRule
- type DatabaseIndex
- type DatabaseLayout
- type DatabaseLogsink
- type DatabaseLogsinkConfig
- type DatabaseMaintenanceWindow
- type DatabaseMetricsCredentials
- type DatabaseMigrateRequest
- type DatabaseMySQLUserSettings
- type DatabaseOnlineMigrationConfig
- type DatabaseOnlineMigrationStatus
- type DatabaseOptions
- type DatabasePool
- type DatabaseReplica
- type DatabaseResetUserAuthRequest
- type DatabaseResizeRequest
- type DatabaseStartOnlineMigrationRequest
- type DatabaseTopic
- type DatabaseUpdateFirewallRulesRequest
- type DatabaseUpdateLogsinkRequest
- type DatabaseUpdateMaintenanceRequest
- type DatabaseUpdateMetricsCredentialsRequest
- type DatabaseUpdatePoolRequest
- type DatabaseUpdateTopicRequest
- type DatabaseUpdateUserRequest
- type DatabaseUser
- type DatabaseUserSettings
- type DatabasesService
- type DatabasesServiceOp
- func (svc *DatabasesServiceOp) Create(ctx context.Context, create *DatabaseCreateRequest) (*Database, *Response, error)
- func (svc *DatabasesServiceOp) CreateDB(ctx context.Context, databaseID string, createDB *DatabaseCreateDBRequest) (*DatabaseDB, *Response, error)
- func (svc *DatabasesServiceOp) CreateLogsink(ctx context.Context, databaseID string, ...) (*DatabaseLogsink, *Response, error)
- func (svc *DatabasesServiceOp) CreatePool(ctx context.Context, databaseID string, createPool *DatabaseCreatePoolRequest) (*DatabasePool, *Response, error)
- func (svc *DatabasesServiceOp) CreateReplica(ctx context.Context, databaseID string, ...) (*DatabaseReplica, *Response, error)
- func (svc *DatabasesServiceOp) CreateTopic(ctx context.Context, databaseID string, ...) (*DatabaseTopic, *Response, error)
- func (svc *DatabasesServiceOp) CreateUser(ctx context.Context, databaseID string, createUser *DatabaseCreateUserRequest) (*DatabaseUser, *Response, error)
- func (svc *DatabasesServiceOp) Delete(ctx context.Context, databaseID string) (*Response, error)
- func (svc *DatabasesServiceOp) DeleteDB(ctx context.Context, databaseID, name string) (*Response, error)
- func (svc *DatabasesServiceOp) DeleteIndex(ctx context.Context, databaseID, name string) (*Response, error)
- func (svc *DatabasesServiceOp) DeleteLogsink(ctx context.Context, databaseID, logsinkID string) (*Response, error)
- func (svc *DatabasesServiceOp) DeletePool(ctx context.Context, databaseID, name string) (*Response, error)
- func (svc *DatabasesServiceOp) DeleteReplica(ctx context.Context, databaseID, name string) (*Response, error)
- func (svc *DatabasesServiceOp) DeleteTopic(ctx context.Context, databaseID, name string) (*Response, error)
- func (svc *DatabasesServiceOp) DeleteUser(ctx context.Context, databaseID, userID string) (*Response, error)
- func (svc *DatabasesServiceOp) Get(ctx context.Context, databaseID string) (*Database, *Response, error)
- func (svc *DatabasesServiceOp) GetCA(ctx context.Context, databaseID string) (*DatabaseCA, *Response, error)
- func (svc *DatabasesServiceOp) GetDB(ctx context.Context, databaseID, name string) (*DatabaseDB, *Response, error)
- func (svc *DatabasesServiceOp) GetEvictionPolicy(ctx context.Context, databaseID string) (string, *Response, error)
- func (svc *DatabasesServiceOp) GetFirewallRules(ctx context.Context, databaseID string) ([]DatabaseFirewallRule, *Response, error)
- func (svc *DatabasesServiceOp) GetKafkaConfig(ctx context.Context, databaseID string) (*KafkaConfig, *Response, error)
- func (svc *DatabasesServiceOp) GetLogsink(ctx context.Context, databaseID string, logsinkID string) (*DatabaseLogsink, *Response, error)
- func (svc *DatabasesServiceOp) GetMetricsCredentials(ctx context.Context) (*DatabaseMetricsCredentials, *Response, error)
- func (svc *DatabasesServiceOp) GetMongoDBConfig(ctx context.Context, databaseID string) (*MongoDBConfig, *Response, error)
- func (svc *DatabasesServiceOp) GetMySQLConfig(ctx context.Context, databaseID string) (*MySQLConfig, *Response, error)
- func (svc *DatabasesServiceOp) GetOnlineMigrationStatus(ctx context.Context, databaseID string) (*DatabaseOnlineMigrationStatus, *Response, error)
- func (svc *DatabasesServiceOp) GetOpensearchConfig(ctx context.Context, databaseID string) (*OpensearchConfig, *Response, error)
- func (svc *DatabasesServiceOp) GetPool(ctx context.Context, databaseID, name string) (*DatabasePool, *Response, error)
- func (svc *DatabasesServiceOp) GetPostgreSQLConfig(ctx context.Context, databaseID string) (*PostgreSQLConfig, *Response, error)
- func (svc *DatabasesServiceOp) GetRedisConfig(ctx context.Context, databaseID string) (*RedisConfig, *Response, error)
- func (svc *DatabasesServiceOp) GetReplica(ctx context.Context, databaseID, name string) (*DatabaseReplica, *Response, error)
- func (svc *DatabasesServiceOp) GetSQLMode(ctx context.Context, databaseID string) (string, *Response, error)
- func (svc *DatabasesServiceOp) GetTopic(ctx context.Context, databaseID, name string) (*DatabaseTopic, *Response, error)
- func (svc *DatabasesServiceOp) GetUser(ctx context.Context, databaseID, userID string) (*DatabaseUser, *Response, error)
- func (svc *DatabasesServiceOp) InstallUpdate(ctx context.Context, databaseID string) (*Response, error)
- func (svc *DatabasesServiceOp) List(ctx context.Context, opts *ListOptions) ([]Database, *Response, error)
- func (svc *DatabasesServiceOp) ListBackups(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseBackup, *Response, error)
- func (svc *DatabasesServiceOp) ListDBs(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseDB, *Response, error)
- func (svc *DatabasesServiceOp) ListDatabaseEvents(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseEvent, *Response, error)
- func (svc *DatabasesServiceOp) ListIndexes(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseIndex, *Response, error)
- func (svc *DatabasesServiceOp) ListLogsinks(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseLogsink, *Response, error)
- func (svc *DatabasesServiceOp) ListOptions(ctx context.Context) (*DatabaseOptions, *Response, error)
- func (svc *DatabasesServiceOp) ListPools(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabasePool, *Response, error)
- func (svc *DatabasesServiceOp) ListReplicas(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseReplica, *Response, error)
- func (svc *DatabasesServiceOp) ListTopics(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseTopic, *Response, error)
- func (svc *DatabasesServiceOp) ListUsers(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseUser, *Response, error)
- func (svc *DatabasesServiceOp) Migrate(ctx context.Context, databaseID string, migrate *DatabaseMigrateRequest) (*Response, error)
- func (svc *DatabasesServiceOp) PromoteReplicaToPrimary(ctx context.Context, databaseID, name string) (*Response, error)
- func (svc *DatabasesServiceOp) ResetUserAuth(ctx context.Context, databaseID, userID string, ...) (*DatabaseUser, *Response, error)
- func (svc *DatabasesServiceOp) Resize(ctx context.Context, databaseID string, resize *DatabaseResizeRequest) (*Response, error)
- func (svc *DatabasesServiceOp) SetEvictionPolicy(ctx context.Context, databaseID, policy string) (*Response, error)
- func (svc *DatabasesServiceOp) SetSQLMode(ctx context.Context, databaseID string, sqlModes ...string) (*Response, error)
- func (svc *DatabasesServiceOp) StartOnlineMigration(ctx context.Context, databaseID string, ...) (*DatabaseOnlineMigrationStatus, *Response, error)
- func (svc *DatabasesServiceOp) StopOnlineMigration(ctx context.Context, databaseID, migrationID string) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateFirewallRules(ctx context.Context, databaseID string, ...) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateKafkaConfig(ctx context.Context, databaseID string, config *KafkaConfig) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateLogsink(ctx context.Context, databaseID string, logsinkID string, ...) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateMaintenance(ctx context.Context, databaseID string, ...) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateMetricsCredentials(ctx context.Context, updateCreds *DatabaseUpdateMetricsCredentialsRequest) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateMongoDBConfig(ctx context.Context, databaseID string, config *MongoDBConfig) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateMySQLConfig(ctx context.Context, databaseID string, config *MySQLConfig) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateOpensearchConfig(ctx context.Context, databaseID string, config *OpensearchConfig) (*Response, error)
- func (svc *DatabasesServiceOp) UpdatePool(ctx context.Context, databaseID, name string, ...) (*Response, error)
- func (svc *DatabasesServiceOp) UpdatePostgreSQLConfig(ctx context.Context, databaseID string, config *PostgreSQLConfig) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateRedisConfig(ctx context.Context, databaseID string, config *RedisConfig) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateTopic(ctx context.Context, databaseID string, name string, ...) (*Response, error)
- func (svc *DatabasesServiceOp) UpdateUser(ctx context.Context, databaseID, userID string, ...) (*DatabaseUser, *Response, error)
- func (svc *DatabasesServiceOp) UpgradeMajorVersion(ctx context.Context, databaseID string, upgradeReq *UpgradeVersionRequest) (*Response, error)
- type DeployTemplate
- type Deployment
- func (d *Deployment) GetCause() string
- func (d *Deployment) GetCauseDetails() *DeploymentCauseDetails
- func (d *Deployment) GetClonedFrom() string
- func (d *Deployment) GetCreatedAt() time.Time
- func (d *Deployment) GetFunctions() []*DeploymentFunctions
- func (d *Deployment) GetID() string
- func (d *Deployment) GetJobs() []*DeploymentJob
- func (d *Deployment) GetLoadBalancerID() string
- func (d *Deployment) GetPhase() DeploymentPhase
- func (d *Deployment) GetPhaseLastUpdatedAt() time.Time
- func (d *Deployment) GetPreviousDeploymentID() string
- func (d *Deployment) GetProgress() *DeploymentProgress
- func (d *Deployment) GetServices() []*DeploymentService
- func (d *Deployment) GetSpec() *AppSpec
- func (d *Deployment) GetStaticSites() []*DeploymentStaticSite
- func (d *Deployment) GetTierSlug() string
- func (d *Deployment) GetTiming() *DeploymentTiming
- func (d *Deployment) GetUpdatedAt() time.Time
- func (d *Deployment) GetWorkers() []*DeploymentWorker
- type DeploymentCauseDetails
- func (d *DeploymentCauseDetails) GetAutoscaler() *DeploymentCauseDetailsAutoscalerAction
- func (d *DeploymentCauseDetails) GetDOCRPush() *DeploymentCauseDetailsDOCRPush
- func (d *DeploymentCauseDetails) GetDigitalOceanUserAction() *DeploymentCauseDetailsDigitalOceanUserAction
- func (d *DeploymentCauseDetails) GetGitPush() *DeploymentCauseDetailsGitPush
- func (d *DeploymentCauseDetails) GetInternal() bool
- func (d *DeploymentCauseDetails) GetType() DeploymentCauseDetailsType
- type DeploymentCauseDetailsAutoscalerAction
- type DeploymentCauseDetailsDOCRPush
- type DeploymentCauseDetailsDigitalOceanUser
- type DeploymentCauseDetailsDigitalOceanUserAction
- type DeploymentCauseDetailsDigitalOceanUserActionName
- type DeploymentCauseDetailsGitPush
- func (d *DeploymentCauseDetailsGitPush) GetBitbucket() *BitbucketSourceSpec
- func (d *DeploymentCauseDetailsGitPush) GetCommitAuthor() string
- func (d *DeploymentCauseDetailsGitPush) GetCommitMessage() string
- func (d *DeploymentCauseDetailsGitPush) GetCommitSHA() string
- func (d *DeploymentCauseDetailsGitPush) GetGitHub() *GitHubSourceSpec
- func (d *DeploymentCauseDetailsGitPush) GetGitLab() *GitLabSourceSpec
- func (d *DeploymentCauseDetailsGitPush) GetUsername() string
- type DeploymentCauseDetailsType
- type DeploymentCreateRequest
- type DeploymentFunctions
- type DeploymentJob
- type DeploymentPhase
- type DeploymentProgress
- func (d *DeploymentProgress) GetErrorSteps() int32
- func (d *DeploymentProgress) GetPendingSteps() int32
- func (d *DeploymentProgress) GetRunningSteps() int32
- func (d *DeploymentProgress) GetSteps() []*DeploymentProgressStep
- func (d *DeploymentProgress) GetSuccessSteps() int32
- func (d *DeploymentProgress) GetSummarySteps() []*DeploymentProgressStep
- func (d *DeploymentProgress) GetTotalSteps() int32
- type DeploymentProgressStep
- func (d *DeploymentProgressStep) GetComponentName() string
- func (d *DeploymentProgressStep) GetEndedAt() time.Time
- func (d *DeploymentProgressStep) GetMessageBase() string
- func (d *DeploymentProgressStep) GetName() string
- func (d *DeploymentProgressStep) GetReason() *DeploymentProgressStepReason
- func (d *DeploymentProgressStep) GetStartedAt() time.Time
- func (d *DeploymentProgressStep) GetStatus() DeploymentProgressStepStatus
- func (d *DeploymentProgressStep) GetSteps() []*DeploymentProgressStep
- type DeploymentProgressStepReason
- type DeploymentProgressStepStatus
- type DeploymentService
- type DeploymentStaticSite
- type DeploymentTiming
- func (d *DeploymentTiming) GetBuildBillable() string
- func (d *DeploymentTiming) GetBuildTotal() string
- func (d *DeploymentTiming) GetComponents() []*DeploymentTimingComponent
- func (d *DeploymentTiming) GetDatabaseProvision() string
- func (d *DeploymentTiming) GetDeploying() string
- func (d *DeploymentTiming) GetPending() string
- type DeploymentTimingComponent
- type DeploymentWorker
- type Destinations
- type DetectRequest
- func (d *DetectRequest) GetBitbucket() *BitbucketSourceSpec
- func (d *DetectRequest) GetCommitSHA() string
- func (d *DetectRequest) GetGit() *GitSourceSpec
- func (d *DetectRequest) GetGitHub() *GitHubSourceSpec
- func (d *DetectRequest) GetGitLab() *GitLabSourceSpec
- func (d *DetectRequest) GetSourceDir() string
- type DetectResponse
- func (d *DetectResponse) GetComponents() []*DetectResponseComponent
- func (d *DetectResponse) GetPending() bool
- func (d *DetectResponse) GetTemplate() *DeployTemplate
- func (d *DetectResponse) GetTemplateError() string
- func (d *DetectResponse) GetTemplateFound() bool
- func (d *DetectResponse) GetTemplateValid() bool
- type DetectResponseComponent
- func (d *DetectResponseComponent) GetBuildCommand() string
- func (d *DetectResponseComponent) GetBuildpacks() []*Buildpack
- func (d *DetectResponseComponent) GetDockerfiles() []string
- func (d *DetectResponseComponent) GetEnvVars() []*AppVariableDefinition
- func (d *DetectResponseComponent) GetEnvironmentSlug() string
- func (d *DetectResponseComponent) GetHTTPPorts() []int64
- func (d *DetectResponseComponent) GetRunCommand() string
- func (d *DetectResponseComponent) GetServerlessPackages() []*DetectResponseServerlessPackage
- func (d *DetectResponseComponent) GetSourceDir() string
- func (d *DetectResponseComponent) GetStrategy() DetectResponseType
- func (d *DetectResponseComponent) GetTypes() []string
- type DetectResponseServerlessFunction
- type DetectResponseServerlessFunctionLimits
- type DetectResponseServerlessPackage
- type DetectResponseType
- type DiskInfo
- type DiskSize
- type DockerCredentials
- type Domain
- type DomainCreateRequest
- type DomainRecord
- type DomainRecordEditRequest
- type DomainsService
- type DomainsServiceOp
- func (s *DomainsServiceOp) Create(ctx context.Context, createRequest *DomainCreateRequest) (*Domain, *Response, error)
- func (s *DomainsServiceOp) CreateRecord(ctx context.Context, domain string, createRequest *DomainRecordEditRequest) (*DomainRecord, *Response, error)
- func (s *DomainsServiceOp) Delete(ctx context.Context, name string) (*Response, error)
- func (s *DomainsServiceOp) DeleteRecord(ctx context.Context, domain string, id int) (*Response, error)
- func (s *DomainsServiceOp) EditRecord(ctx context.Context, domain string, id int, ...) (*DomainRecord, *Response, error)
- func (s *DomainsServiceOp) Get(ctx context.Context, name string) (*Domain, *Response, error)
- func (s DomainsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Domain, *Response, error)
- func (s *DomainsServiceOp) Record(ctx context.Context, domain string, id int) (*DomainRecord, *Response, error)
- func (s *DomainsServiceOp) Records(ctx context.Context, domain string, opt *ListOptions) ([]DomainRecord, *Response, error)
- func (s *DomainsServiceOp) RecordsByName(ctx context.Context, domain, name string, opt *ListOptions) ([]DomainRecord, *Response, error)
- func (s *DomainsServiceOp) RecordsByType(ctx context.Context, domain, ofType string, opt *ListOptions) ([]DomainRecord, *Response, error)
- func (s *DomainsServiceOp) RecordsByTypeAndName(ctx context.Context, domain, ofType, name string, opt *ListOptions) ([]DomainRecord, *Response, error)
- type Droplet
- type DropletActionsService
- type DropletActionsServiceOp
- func (s *DropletActionsServiceOp) ChangeBackupPolicy(ctx context.Context, id int, policy *DropletBackupPolicyRequest) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) ChangeKernel(ctx context.Context, id, kernelID int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) DisableBackups(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) DisableBackupsByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) EnableBackups(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) EnableBackupsByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) EnableBackupsWithPolicy(ctx context.Context, id int, policy *DropletBackupPolicyRequest) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) EnableIPv6(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) EnableIPv6ByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) EnablePrivateNetworking(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) EnablePrivateNetworkingByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) Get(ctx context.Context, dropletID, actionID int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) GetByURI(ctx context.Context, rawurl string) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) PasswordReset(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) PowerCycle(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) PowerCycleByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) PowerOff(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) PowerOffByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) PowerOn(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) PowerOnByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) Reboot(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) RebuildByImageID(ctx context.Context, id, imageID int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) RebuildByImageSlug(ctx context.Context, id int, slug string) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) Rename(ctx context.Context, id int, name string) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) Resize(ctx context.Context, id int, sizeSlug string, resizeDisk bool) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) Restore(ctx context.Context, id, imageID int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) Shutdown(ctx context.Context, id int) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) ShutdownByTag(ctx context.Context, tag string) ([]Action, *Response, error)
- func (s *DropletActionsServiceOp) Snapshot(ctx context.Context, id int, name string) (*Action, *Response, error)
- func (s *DropletActionsServiceOp) SnapshotByTag(ctx context.Context, tag string, name string) ([]Action, *Response, error)
- type DropletAutoscaleConfiguration
- type DropletAutoscaleHistoryEvent
- type DropletAutoscalePool
- type DropletAutoscalePoolRequest
- type DropletAutoscaleResource
- type DropletAutoscaleResourceTemplate
- type DropletAutoscaleResourceUtilization
- type DropletAutoscaleService
- type DropletAutoscaleServiceOp
- func (d *DropletAutoscaleServiceOp) Create(ctx context.Context, createReq *DropletAutoscalePoolRequest) (*DropletAutoscalePool, *Response, error)
- func (d *DropletAutoscaleServiceOp) Delete(ctx context.Context, id string) (*Response, error)
- func (d *DropletAutoscaleServiceOp) DeleteDangerous(ctx context.Context, id string) (*Response, error)
- func (d *DropletAutoscaleServiceOp) Get(ctx context.Context, id string) (*DropletAutoscalePool, *Response, error)
- func (d *DropletAutoscaleServiceOp) List(ctx context.Context, opts *ListOptions) ([]*DropletAutoscalePool, *Response, error)
- func (d *DropletAutoscaleServiceOp) ListHistory(ctx context.Context, id string, opts *ListOptions) ([]*DropletAutoscaleHistoryEvent, *Response, error)
- func (d *DropletAutoscaleServiceOp) ListMembers(ctx context.Context, id string, opts *ListOptions) ([]*DropletAutoscaleResource, *Response, error)
- func (d *DropletAutoscaleServiceOp) Update(ctx context.Context, id string, updateReq *DropletAutoscalePoolRequest) (*DropletAutoscalePool, *Response, error)
- type DropletBackupPolicy
- type DropletBackupPolicyConfig
- type DropletBackupPolicyRequest
- type DropletBandwidthMetricsRequest
- type DropletCreateImage
- type DropletCreateRequest
- type DropletCreateSSHKey
- type DropletCreateVolume
- type DropletMetricsRequest
- type DropletMultiCreateRequest
- type DropletsService
- type DropletsServiceOp
- func (s *DropletsServiceOp) Actions(ctx context.Context, dropletID int, opt *ListOptions) ([]Action, *Response, error)
- func (s *DropletsServiceOp) Backups(ctx context.Context, dropletID int, opt *ListOptions) ([]Image, *Response, error)
- func (s *DropletsServiceOp) Create(ctx context.Context, createRequest *DropletCreateRequest) (*Droplet, *Response, error)
- func (s *DropletsServiceOp) CreateMultiple(ctx context.Context, createRequest *DropletMultiCreateRequest) ([]Droplet, *Response, error)
- func (s *DropletsServiceOp) Delete(ctx context.Context, dropletID int) (*Response, error)
- func (s *DropletsServiceOp) DeleteByTag(ctx context.Context, tag string) (*Response, error)
- func (s *DropletsServiceOp) Get(ctx context.Context, dropletID int) (*Droplet, *Response, error)
- func (s *DropletsServiceOp) GetBackupPolicy(ctx context.Context, dropletID int) (*DropletBackupPolicy, *Response, error)
- func (s *DropletsServiceOp) Kernels(ctx context.Context, dropletID int, opt *ListOptions) ([]Kernel, *Response, error)
- func (s *DropletsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Droplet, *Response, error)
- func (s *DropletsServiceOp) ListBackupPolicies(ctx context.Context, opt *ListOptions) (map[int]*DropletBackupPolicy, *Response, error)
- func (s *DropletsServiceOp) ListByName(ctx context.Context, name string, opt *ListOptions) ([]Droplet, *Response, error)
- func (s *DropletsServiceOp) ListByTag(ctx context.Context, tag string, opt *ListOptions) ([]Droplet, *Response, error)
- func (s *DropletsServiceOp) ListSupportedBackupPolicies(ctx context.Context) ([]*SupportedBackupPolicy, *Response, error)
- func (s *DropletsServiceOp) ListWithGPUs(ctx context.Context, opt *ListOptions) ([]Droplet, *Response, error)
- func (s *DropletsServiceOp) Neighbors(ctx context.Context, dropletID int) ([]Droplet, *Response, error)
- func (s *DropletsServiceOp) Snapshots(ctx context.Context, dropletID int, opt *ListOptions) ([]Image, *Response, error)
- type ErrorResponse
- type Firewall
- type FirewallRequest
- type FirewallRulesRequest
- type FirewallsService
- type FirewallsServiceOp
- func (fw *FirewallsServiceOp) AddDroplets(ctx context.Context, fID string, dropletIDs ...int) (*Response, error)
- func (fw *FirewallsServiceOp) AddRules(ctx context.Context, fID string, rr *FirewallRulesRequest) (*Response, error)
- func (fw *FirewallsServiceOp) AddTags(ctx context.Context, fID string, tags ...string) (*Response, error)
- func (fw *FirewallsServiceOp) Create(ctx context.Context, fr *FirewallRequest) (*Firewall, *Response, error)
- func (fw *FirewallsServiceOp) Delete(ctx context.Context, fID string) (*Response, error)
- func (fw *FirewallsServiceOp) Get(ctx context.Context, fID string) (*Firewall, *Response, error)
- func (fw *FirewallsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Firewall, *Response, error)
- func (fw *FirewallsServiceOp) ListByDroplet(ctx context.Context, dID int, opt *ListOptions) ([]Firewall, *Response, error)
- func (fw *FirewallsServiceOp) RemoveDroplets(ctx context.Context, fID string, dropletIDs ...int) (*Response, error)
- func (fw *FirewallsServiceOp) RemoveRules(ctx context.Context, fID string, rr *FirewallRulesRequest) (*Response, error)
- func (fw *FirewallsServiceOp) RemoveTags(ctx context.Context, fID string, tags ...string) (*Response, error)
- func (fw *FirewallsServiceOp) Update(ctx context.Context, fID string, fr *FirewallRequest) (*Firewall, *Response, error)
- type FloatingIP
- type FloatingIPActionsService
- type FloatingIPActionsServiceOp
- func (s *FloatingIPActionsServiceOp) Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error)
- func (s *FloatingIPActionsServiceOp) Get(ctx context.Context, ip string, actionID int) (*Action, *Response, error)
- func (s *FloatingIPActionsServiceOp) List(ctx context.Context, ip string, opt *ListOptions) ([]Action, *Response, error)
- func (s *FloatingIPActionsServiceOp) Unassign(ctx context.Context, ip string) (*Action, *Response, error)
- type FloatingIPCreateRequest
- type FloatingIPsService
- type FloatingIPsServiceOp
- func (f *FloatingIPsServiceOp) Create(ctx context.Context, createRequest *FloatingIPCreateRequest) (*FloatingIP, *Response, error)
- func (f *FloatingIPsServiceOp) Delete(ctx context.Context, ip string) (*Response, error)
- func (f *FloatingIPsServiceOp) Get(ctx context.Context, ip string) (*FloatingIP, *Response, error)
- func (f *FloatingIPsServiceOp) List(ctx context.Context, opt *ListOptions) ([]FloatingIP, *Response, error)
- type ForwardingRule
- type FunctionsNamespace
- type FunctionsNamespaceCreateRequest
- type FunctionsService
- type FunctionsServiceOp
- func (s *FunctionsServiceOp) CreateNamespace(ctx context.Context, opts *FunctionsNamespaceCreateRequest) (*FunctionsNamespace, *Response, error)
- func (s *FunctionsServiceOp) CreateTrigger(ctx context.Context, namespace string, opts *FunctionsTriggerCreateRequest) (*FunctionsTrigger, *Response, error)
- func (s *FunctionsServiceOp) DeleteNamespace(ctx context.Context, namespace string) (*Response, error)
- func (s *FunctionsServiceOp) DeleteTrigger(ctx context.Context, namespace string, trigger string) (*Response, error)
- func (s *FunctionsServiceOp) GetNamespace(ctx context.Context, namespace string) (*FunctionsNamespace, *Response, error)
- func (s *FunctionsServiceOp) GetTrigger(ctx context.Context, namespace string, trigger string) (*FunctionsTrigger, *Response, error)
- func (s *FunctionsServiceOp) ListNamespaces(ctx context.Context) ([]FunctionsNamespace, *Response, error)
- func (s *FunctionsServiceOp) ListTriggers(ctx context.Context, namespace string) ([]FunctionsTrigger, *Response, error)
- func (s *FunctionsServiceOp) UpdateTrigger(ctx context.Context, namespace string, trigger string, ...) (*FunctionsTrigger, *Response, error)
- type FunctionsTrigger
- type FunctionsTriggerCreateRequest
- type FunctionsTriggerUpdateRequest
- type GLBSettings
- type GPUInfo
- type GarbageCollection
- type GarbageCollectionType
- type GetAppDatabaseConnectionDetailsResponse
- type GetDatabaseConnectionDetailsResponse
- func (g *GetDatabaseConnectionDetailsResponse) GetComponentName() string
- func (g *GetDatabaseConnectionDetailsResponse) GetDatabaseName() string
- func (g *GetDatabaseConnectionDetailsResponse) GetDatabaseURL() string
- func (g *GetDatabaseConnectionDetailsResponse) GetHost() string
- func (g *GetDatabaseConnectionDetailsResponse) GetPassword() string
- func (g *GetDatabaseConnectionDetailsResponse) GetPools() []*GetDatabaseConnectionDetailsResponsePool
- func (g *GetDatabaseConnectionDetailsResponse) GetPort() int64
- func (g *GetDatabaseConnectionDetailsResponse) GetSslMode() string
- func (g *GetDatabaseConnectionDetailsResponse) GetUsername() string
- type GetDatabaseConnectionDetailsResponsePool
- func (g *GetDatabaseConnectionDetailsResponsePool) GetDatabaseName() string
- func (g *GetDatabaseConnectionDetailsResponsePool) GetDatabaseURL() string
- func (g *GetDatabaseConnectionDetailsResponsePool) GetHost() string
- func (g *GetDatabaseConnectionDetailsResponsePool) GetPassword() string
- func (g *GetDatabaseConnectionDetailsResponsePool) GetPoolName() string
- func (g *GetDatabaseConnectionDetailsResponsePool) GetPort() int64
- func (g *GetDatabaseConnectionDetailsResponsePool) GetSslMode() string
- func (g *GetDatabaseConnectionDetailsResponsePool) GetUsername() string
- type GetDatabaseTrustedSourceResponse
- type GitHubSourceSpec
- type GitLabSourceSpec
- type GitSourceSpec
- type Grant
- type HealthCheck
- type Image
- type ImageActionsService
- type ImageActionsServiceOp
- func (i *ImageActionsServiceOp) Convert(ctx context.Context, imageID int) (*Action, *Response, error)
- func (i *ImageActionsServiceOp) Get(ctx context.Context, imageID, actionID int) (*Action, *Response, error)
- func (i *ImageActionsServiceOp) GetByURI(ctx context.Context, rawurl string) (*Action, *Response, error)
- func (i *ImageActionsServiceOp) Transfer(ctx context.Context, imageID int, transferRequest *ActionRequest) (*Action, *Response, error)
- type ImageSourceSpec
- func (i *ImageSourceSpec) GetDeployOnPush() *ImageSourceSpecDeployOnPush
- func (i *ImageSourceSpec) GetDigest() string
- func (i *ImageSourceSpec) GetRegistry() string
- func (i *ImageSourceSpec) GetRegistryCredentials() string
- func (i *ImageSourceSpec) GetRegistryType() ImageSourceSpecRegistryType
- func (i *ImageSourceSpec) GetRepository() string
- func (i *ImageSourceSpec) GetTag() string
- func (s *ImageSourceSpec) GetType() AppSourceType
- type ImageSourceSpecDeployOnPush
- type ImageSourceSpecRegistryType
- type ImageUpdateRequest
- type ImagesService
- type ImagesServiceOp
- func (s *ImagesServiceOp) Create(ctx context.Context, createRequest *CustomImageCreateRequest) (*Image, *Response, error)
- func (s *ImagesServiceOp) Delete(ctx context.Context, imageID int) (*Response, error)
- func (s *ImagesServiceOp) GetByID(ctx context.Context, imageID int) (*Image, *Response, error)
- func (s *ImagesServiceOp) GetBySlug(ctx context.Context, slug string) (*Image, *Response, error)
- func (s *ImagesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
- func (s *ImagesServiceOp) ListApplication(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
- func (s *ImagesServiceOp) ListByTag(ctx context.Context, tag string, opt *ListOptions) ([]Image, *Response, error)
- func (s *ImagesServiceOp) ListDistribution(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
- func (s *ImagesServiceOp) ListUser(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
- func (s *ImagesServiceOp) Update(ctx context.Context, imageID int, updateRequest *ImageUpdateRequest) (*Image, *Response, error)
- type InboundRule
- type IndexReplication
- type InstallKubernetesAppsRequest
- type InstallKubernetesAppsResponse
- type Invoice
- type InvoiceItem
- type InvoiceList
- type InvoiceListItem
- type InvoiceSummary
- type InvoiceSummaryBreakdown
- type InvoiceSummaryBreakdownItem
- type InvoicesService
- type InvoicesServiceOp
- func (s *InvoicesServiceOp) Get(ctx context.Context, invoiceUUID string, opt *ListOptions) (*Invoice, *Response, error)
- func (s *InvoicesServiceOp) GetCSV(ctx context.Context, invoiceUUID string) ([]byte, *Response, error)
- func (s *InvoicesServiceOp) GetPDF(ctx context.Context, invoiceUUID string) ([]byte, *Response, error)
- func (s *InvoicesServiceOp) GetSummary(ctx context.Context, invoiceUUID string) (*InvoiceSummary, *Response, error)
- func (s *InvoicesServiceOp) List(ctx context.Context, opt *ListOptions) (*InvoiceList, *Response, error)
- type KafkaACL
- type KafkaConfig
- type Kernel
- type Key
- type KeyCreateRequest
- type KeyUpdateRequest
- type KeysService
- type KeysServiceOp
- func (s *KeysServiceOp) Create(ctx context.Context, createRequest *KeyCreateRequest) (*Key, *Response, error)
- func (s *KeysServiceOp) DeleteByFingerprint(ctx context.Context, fingerprint string) (*Response, error)
- func (s *KeysServiceOp) DeleteByID(ctx context.Context, keyID int) (*Response, error)
- func (s *KeysServiceOp) GetByFingerprint(ctx context.Context, fingerprint string) (*Key, *Response, error)
- func (s *KeysServiceOp) GetByID(ctx context.Context, keyID int) (*Key, *Response, error)
- func (s *KeysServiceOp) List(ctx context.Context, opt *ListOptions) ([]Key, *Response, error)
- func (s *KeysServiceOp) UpdateByFingerprint(ctx context.Context, fingerprint string, updateRequest *KeyUpdateRequest) (*Key, *Response, error)
- func (s *KeysServiceOp) UpdateByID(ctx context.Context, keyID int, updateRequest *KeyUpdateRequest) (*Key, *Response, error)
- type KubernetesAssociatedResources
- type KubernetesCluster
- type KubernetesClusterAutoscalerConfiguration
- type KubernetesClusterConfig
- type KubernetesClusterCreateRequest
- type KubernetesClusterCredentials
- type KubernetesClusterCredentialsGetRequest
- type KubernetesClusterDeleteSelectiveRequest
- type KubernetesClusterRegistryRequest
- type KubernetesClusterStatus
- type KubernetesClusterStatusState
- type KubernetesClusterUpdateRequest
- type KubernetesClusterUpgradeRequest
- type KubernetesClusterUser
- type KubernetesControlPlaneFirewall
- type KubernetesGetClusterlintRequest
- type KubernetesMaintenancePolicy
- type KubernetesMaintenancePolicyDay
- type KubernetesNode
- type KubernetesNodeDeleteRequest
- type KubernetesNodePool
- type KubernetesNodePoolCreateRequest
- type KubernetesNodePoolRecycleNodesRequest
- type KubernetesNodePoolUpdateRequest
- type KubernetesNodeSize
- type KubernetesNodeStatus
- type KubernetesOptions
- type KubernetesRegion
- type KubernetesRunClusterlintRequest
- type KubernetesService
- type KubernetesServiceOp
- func (svc *KubernetesServiceOp) AddRegistry(ctx context.Context, req *KubernetesClusterRegistryRequest) (*Response, error)
- func (svc *KubernetesServiceOp) Create(ctx context.Context, create *KubernetesClusterCreateRequest) (*KubernetesCluster, *Response, error)
- func (svc *KubernetesServiceOp) CreateNodePool(ctx context.Context, clusterID string, create *KubernetesNodePoolCreateRequest) (*KubernetesNodePool, *Response, error)
- func (svc *KubernetesServiceOp) Delete(ctx context.Context, clusterID string) (*Response, error)
- func (svc *KubernetesServiceOp) DeleteDangerous(ctx context.Context, clusterID string) (*Response, error)
- func (svc *KubernetesServiceOp) DeleteNode(ctx context.Context, clusterID, poolID, nodeID string, ...) (*Response, error)
- func (svc *KubernetesServiceOp) DeleteNodePool(ctx context.Context, clusterID, poolID string) (*Response, error)
- func (svc *KubernetesServiceOp) DeleteSelective(ctx context.Context, clusterID string, ...) (*Response, error)
- func (svc *KubernetesServiceOp) Get(ctx context.Context, clusterID string) (*KubernetesCluster, *Response, error)
- func (svc *KubernetesServiceOp) GetClusterlintResults(ctx context.Context, clusterID string, req *KubernetesGetClusterlintRequest) ([]*ClusterlintDiagnostic, *Response, error)
- func (svc *KubernetesServiceOp) GetCredentials(ctx context.Context, clusterID string, ...) (*KubernetesClusterCredentials, *Response, error)
- func (svc *KubernetesServiceOp) GetKubeConfig(ctx context.Context, clusterID string) (*KubernetesClusterConfig, *Response, error)
- func (svc *KubernetesServiceOp) GetKubeConfigWithExpiry(ctx context.Context, clusterID string, expirySeconds int64) (*KubernetesClusterConfig, *Response, error)
- func (svc *KubernetesServiceOp) GetNodePool(ctx context.Context, clusterID, poolID string) (*KubernetesNodePool, *Response, error)
- func (svc *KubernetesServiceOp) GetOptions(ctx context.Context) (*KubernetesOptions, *Response, error)
- func (svc *KubernetesServiceOp) GetUpgrades(ctx context.Context, clusterID string) ([]*KubernetesVersion, *Response, error)
- func (svc *KubernetesServiceOp) GetUser(ctx context.Context, clusterID string) (*KubernetesClusterUser, *Response, error)
- func (svc *KubernetesServiceOp) List(ctx context.Context, opts *ListOptions) ([]*KubernetesCluster, *Response, error)
- func (svc *KubernetesServiceOp) ListAssociatedResourcesForDeletion(ctx context.Context, clusterID string) (*KubernetesAssociatedResources, *Response, error)
- func (svc *KubernetesServiceOp) ListNodePools(ctx context.Context, clusterID string, opts *ListOptions) ([]*KubernetesNodePool, *Response, error)
- func (svc *KubernetesServiceOp) RecycleNodePoolNodes(ctx context.Context, clusterID, poolID string, ...) (*Response, error)
- func (svc *KubernetesServiceOp) RemoveRegistry(ctx context.Context, req *KubernetesClusterRegistryRequest) (*Response, error)
- func (svc *KubernetesServiceOp) RunClusterlint(ctx context.Context, clusterID string, req *KubernetesRunClusterlintRequest) (string, *Response, error)
- func (svc *KubernetesServiceOp) Update(ctx context.Context, clusterID string, update *KubernetesClusterUpdateRequest) (*KubernetesCluster, *Response, error)
- func (svc *KubernetesServiceOp) UpdateNodePool(ctx context.Context, clusterID, poolID string, ...) (*KubernetesNodePool, *Response, error)
- func (svc *KubernetesServiceOp) Upgrade(ctx context.Context, clusterID string, ...) (*Response, error)
- type KubernetesVersion
- type LBDomain
- type LBFirewall
- type LinkAction
- type Links
- type ListBuildpacksResponse
- type ListDatabaseEvents
- type ListDatabaseEventsRoot
- type ListOptions
- type ListVolumeParams
- type LoadBalancer
- type LoadBalancerMetricsRequest
- type LoadBalancerRequest
- type LoadBalancersService
- type LoadBalancersServiceOp
- func (l *LoadBalancersServiceOp) AddDroplets(ctx context.Context, lbID string, dropletIDs ...int) (*Response, error)
- func (l *LoadBalancersServiceOp) AddForwardingRules(ctx context.Context, lbID string, rules ...ForwardingRule) (*Response, error)
- func (l *LoadBalancersServiceOp) Create(ctx context.Context, lbr *LoadBalancerRequest) (*LoadBalancer, *Response, error)
- func (l *LoadBalancersServiceOp) Delete(ctx context.Context, ldID string) (*Response, error)
- func (l *LoadBalancersServiceOp) Get(ctx context.Context, lbID string) (*LoadBalancer, *Response, error)
- func (l *LoadBalancersServiceOp) List(ctx context.Context, opt *ListOptions) ([]LoadBalancer, *Response, error)
- func (l *LoadBalancersServiceOp) PurgeCache(ctx context.Context, ldID string) (*Response, error)
- func (l *LoadBalancersServiceOp) RemoveDroplets(ctx context.Context, lbID string, dropletIDs ...int) (*Response, error)
- func (l *LoadBalancersServiceOp) RemoveForwardingRules(ctx context.Context, lbID string, rules ...ForwardingRule) (*Response, error)
- func (l *LoadBalancersServiceOp) Update(ctx context.Context, lbID string, lbr *LoadBalancerRequest) (*LoadBalancer, *Response, error)
- type Meta
- type MetricsData
- type MetricsResponse
- type MongoDBConfig
- type MonitoringService
- type MonitoringServiceOp
- func (s *MonitoringServiceOp) CreateAlertPolicy(ctx context.Context, createRequest *AlertPolicyCreateRequest) (*AlertPolicy, *Response, error)
- func (s *MonitoringServiceOp) DeleteAlertPolicy(ctx context.Context, uuid string) (*Response, error)
- func (s *MonitoringServiceOp) GetAlertPolicy(ctx context.Context, uuid string) (*AlertPolicy, *Response, error)
- func (s *MonitoringServiceOp) GetDropletAvailableMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletBandwidth(ctx context.Context, args *DropletBandwidthMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletCPU(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletCachedMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletFilesystemFree(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletFilesystemSize(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletFreeMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletLoad1(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletLoad15(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletLoad5(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetDropletTotalMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsConnections(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsDowntime(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHealthChecks(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime50P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime95P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime99P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTimeAvg(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponses(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDuration50P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDuration95P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDurationAvg(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerDropletsQueueSize(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendConnectionsCurrent(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendConnectionsLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendCpuUtilization(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendFirewallDroppedBytes(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendFirewallDroppedPackets(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendHttpRequestsPerSecond(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendHttpResponses(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputHttp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputTcp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputUdp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendNlbTcpNetworkThroughput(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendNlbUdpNetworkThroughput(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsCurrent(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsExceedingRateLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
- func (s *MonitoringServiceOp) ListAlertPolicies(ctx context.Context, opt *ListOptions) ([]AlertPolicy, *Response, error)
- func (s *MonitoringServiceOp) UpdateAlertPolicy(ctx context.Context, uuid string, updateRequest *AlertPolicyUpdateRequest) (*AlertPolicy, *Response, error)
- type MySQLConfig
- type NetworkV4
- type NetworkV6
- type Networks
- type Notifications
- type OneClick
- type OneClickService
- type OneClickServiceOp
- type OneClicksRoot
- type OpenSearchACL
- type OpenSearchBasicAuth
- type OpensearchConfig
- type OutboundRule
- type Pages
- type PartnerInterconnectAttachment
- type PartnerInterconnectAttachmentCreateRequest
- type PartnerInterconnectAttachmentSetRoutesRequest
- type PartnerInterconnectAttachmentUpdateRequest
- type PartnerInterconnectAttachmentsService
- type PartnerInterconnectAttachmentsServiceOp
- func (s *PartnerInterconnectAttachmentsServiceOp) Create(ctx context.Context, create *PartnerInterconnectAttachmentCreateRequest) (*PartnerInterconnectAttachment, *Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) Delete(ctx context.Context, id string) (*Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) Get(ctx context.Context, id string) (*PartnerInterconnectAttachment, *Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) GetServiceKey(ctx context.Context, id string) (*ServiceKey, *Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]*PartnerInterconnectAttachment, *Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) ListRoutes(ctx context.Context, id string, opt *ListOptions) ([]*RemoteRoute, *Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) SetRoutes(ctx context.Context, id string, ...) (*PartnerInterconnectAttachment, *Response, error)
- func (s *PartnerInterconnectAttachmentsServiceOp) Update(ctx context.Context, id string, ...) (*PartnerInterconnectAttachment, *Response, error)
- type PendingChange
- type PostgreSQLBouncerConfig
- type PostgreSQLConfig
- type PostgreSQLTimeScaleDBConfig
- type Project
- type ProjectResource
- type ProjectResourceLinks
- type ProjectsService
- type ProjectsServiceOp
- func (p *ProjectsServiceOp) AssignResources(ctx context.Context, projectID string, resources ...interface{}) ([]ProjectResource, *Response, error)
- func (p *ProjectsServiceOp) Create(ctx context.Context, cr *CreateProjectRequest) (*Project, *Response, error)
- func (p *ProjectsServiceOp) Delete(ctx context.Context, projectID string) (*Response, error)
- func (p *ProjectsServiceOp) Get(ctx context.Context, projectID string) (*Project, *Response, error)
- func (p *ProjectsServiceOp) GetDefault(ctx context.Context) (*Project, *Response, error)
- func (p *ProjectsServiceOp) List(ctx context.Context, opts *ListOptions) ([]Project, *Response, error)
- func (p *ProjectsServiceOp) ListResources(ctx context.Context, projectID string, opts *ListOptions) ([]ProjectResource, *Response, error)
- func (p *ProjectsServiceOp) Update(ctx context.Context, projectID string, ur *UpdateProjectRequest) (*Project, *Response, error)
- type Rate
- type RedisConfig
- type Region
- type RegionsService
- type RegionsServiceOp
- type RegistriesCreateRequest
- type RegistriesService
- type RegistriesServiceOp
- func (svc *RegistriesServiceOp) Create(ctx context.Context, create *RegistriesCreateRequest) (*Registry, *Response, error)
- func (svc *RegistriesServiceOp) Delete(ctx context.Context, registry string) (*Response, error)
- func (svc *RegistriesServiceOp) DockerCredentials(ctx context.Context, registry string, ...) (*DockerCredentials, *Response, error)
- func (svc *RegistriesServiceOp) Get(ctx context.Context, registry string) (*Registry, *Response, error)
- func (svc *RegistriesServiceOp) List(ctx context.Context) ([]*Registry, *Response, error)
- type Registry
- type RegistryCreateRequest
- type RegistryDockerCredentialsRequest
- type RegistryOptions
- type RegistryService
- type RegistryServiceOp
- func (svc *RegistryServiceOp) Create(ctx context.Context, create *RegistryCreateRequest) (*Registry, *Response, error)
- func (svc *RegistryServiceOp) Delete(ctx context.Context) (*Response, error)
- func (svc *RegistryServiceOp) DeleteManifest(ctx context.Context, registry, repository, digest string) (*Response, error)
- func (svc *RegistryServiceOp) DeleteTag(ctx context.Context, registry, repository, tag string) (*Response, error)
- func (svc *RegistryServiceOp) DockerCredentials(ctx context.Context, request *RegistryDockerCredentialsRequest) (*DockerCredentials, *Response, error)
- func (svc *RegistryServiceOp) Get(ctx context.Context) (*Registry, *Response, error)
- func (svc *RegistryServiceOp) GetGarbageCollection(ctx context.Context, registry string) (*GarbageCollection, *Response, error)
- func (svc *RegistryServiceOp) GetOptions(ctx context.Context) (*RegistryOptions, *Response, error)
- func (svc *RegistryServiceOp) GetSubscription(ctx context.Context) (*RegistrySubscription, *Response, error)
- func (svc *RegistryServiceOp) ListGarbageCollections(ctx context.Context, registry string, opts *ListOptions) ([]*GarbageCollection, *Response, error)
- func (svc *RegistryServiceOp) ListRepositories(ctx context.Context, registry string, opts *ListOptions) ([]*Repository, *Response, error)
- func (svc *RegistryServiceOp) ListRepositoriesV2(ctx context.Context, registry string, opts *TokenListOptions) ([]*RepositoryV2, *Response, error)
- func (svc *RegistryServiceOp) ListRepositoryManifests(ctx context.Context, registry, repository string, opts *ListOptions) ([]*RepositoryManifest, *Response, error)
- func (svc *RegistryServiceOp) ListRepositoryTags(ctx context.Context, registry, repository string, opts *ListOptions) ([]*RepositoryTag, *Response, error)
- func (svc *RegistryServiceOp) StartGarbageCollection(ctx context.Context, registry string, ...) (*GarbageCollection, *Response, error)
- func (svc *RegistryServiceOp) UpdateGarbageCollection(ctx context.Context, registry, gcUUID string, ...) (*GarbageCollection, *Response, error)
- func (svc *RegistryServiceOp) UpdateSubscription(ctx context.Context, request *RegistrySubscriptionUpdateRequest) (*RegistrySubscription, *Response, error)
- func (svc *RegistryServiceOp) ValidateName(ctx context.Context, request *RegistryValidateNameRequest) (*Response, error)
- type RegistrySubscription
- type RegistrySubscriptionTier
- type RegistrySubscriptionUpdateRequest
- type RegistryValidateNameRequest
- type RemoteRoute
- type Repository
- type RepositoryManifest
- type RepositoryTag
- type RepositoryV2
- type RequestCompletionCallback
- type ReservedIP
- type ReservedIPActionsService
- type ReservedIPActionsServiceOp
- func (s *ReservedIPActionsServiceOp) Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error)
- func (s *ReservedIPActionsServiceOp) Get(ctx context.Context, ip string, actionID int) (*Action, *Response, error)
- func (s *ReservedIPActionsServiceOp) List(ctx context.Context, ip string, opt *ListOptions) ([]Action, *Response, error)
- func (s *ReservedIPActionsServiceOp) Unassign(ctx context.Context, ip string) (*Action, *Response, error)
- type ReservedIPCreateRequest
- type ReservedIPV6
- type ReservedIPV6ActionsService
- type ReservedIPV6ActionsServiceOp
- type ReservedIPV6CreateRequest
- type ReservedIPV6sService
- type ReservedIPV6sServiceOp
- func (r *ReservedIPV6sServiceOp) Create(ctx context.Context, reserveRequest *ReservedIPV6CreateRequest) (*ReservedIPV6, *Response, error)
- func (r *ReservedIPV6sServiceOp) Delete(ctx context.Context, ip string) (*Response, error)
- func (r *ReservedIPV6sServiceOp) Get(ctx context.Context, ip string) (*ReservedIPV6, *Response, error)
- func (r *ReservedIPV6sServiceOp) List(ctx context.Context, opt *ListOptions) ([]ReservedIPV6, *Response, error)
- type ReservedIPsService
- type ReservedIPsServiceOp
- func (r *ReservedIPsServiceOp) Create(ctx context.Context, createRequest *ReservedIPCreateRequest) (*ReservedIP, *Response, error)
- func (r *ReservedIPsServiceOp) Delete(ctx context.Context, ip string) (*Response, error)
- func (r *ReservedIPsServiceOp) Get(ctx context.Context, ip string) (*ReservedIP, *Response, error)
- func (r *ReservedIPsServiceOp) List(ctx context.Context, opt *ListOptions) ([]ReservedIP, *Response, error)
- type ResetDatabasePasswordRequest
- type ResetDatabasePasswordResponse
- type Resource
- type ResourceType
- type ResourceWithURN
- type Response
- type RetryConfig
- type ServiceAddress
- type ServiceKey
- type ServingProtocol
- type Size
- type SizesService
- type SizesServiceOp
- type SlackDetails
- type Snapshot
- type SnapshotCreateRequest
- type SnapshotsService
- type SnapshotsServiceOp
- func (s *SnapshotsServiceOp) Delete(ctx context.Context, snapshotID string) (*Response, error)
- func (s *SnapshotsServiceOp) Get(ctx context.Context, snapshotID string) (*Snapshot, *Response, error)
- func (s *SnapshotsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Snapshot, *Response, error)
- func (s *SnapshotsServiceOp) ListDroplet(ctx context.Context, opt *ListOptions) ([]Snapshot, *Response, error)
- func (s *SnapshotsServiceOp) ListVolume(ctx context.Context, opt *ListOptions) ([]Snapshot, *Response, error)
- type SourceSpec
- type Sources
- type SpacesKey
- type SpacesKeyCreateRequest
- type SpacesKeyPermission
- type SpacesKeyUpdateRequest
- type SpacesKeysService
- type SpacesKeysServiceOp
- func (s *SpacesKeysServiceOp) Create(ctx context.Context, createRequest *SpacesKeyCreateRequest) (*SpacesKey, *Response, error)
- func (s *SpacesKeysServiceOp) Delete(ctx context.Context, accessKey string) (*Response, error)
- func (s *SpacesKeysServiceOp) List(ctx context.Context, opts *ListOptions) ([]*SpacesKey, *Response, error)
- func (s *SpacesKeysServiceOp) Update(ctx context.Context, accessKey string, updateRequest *SpacesKeyUpdateRequest) (*SpacesKey, *Response, error)
- type StartGarbageCollectionRequest
- type StickySessions
- type StorageActionsService
- type StorageActionsServiceOp
- func (s *StorageActionsServiceOp) Attach(ctx context.Context, volumeID string, dropletID int) (*Action, *Response, error)
- func (s *StorageActionsServiceOp) DetachByDropletID(ctx context.Context, volumeID string, dropletID int) (*Action, *Response, error)
- func (s *StorageActionsServiceOp) Get(ctx context.Context, volumeID string, actionID int) (*Action, *Response, error)
- func (s *StorageActionsServiceOp) List(ctx context.Context, volumeID string, opt *ListOptions) ([]Action, *Response, error)
- func (s *StorageActionsServiceOp) Resize(ctx context.Context, volumeID string, sizeGigabytes int, regionSlug string) (*Action, *Response, error)
- type StorageAttachment
- type StorageService
- type StorageServiceOp
- func (svc *StorageServiceOp) CreateSnapshot(ctx context.Context, createRequest *SnapshotCreateRequest) (*Snapshot, *Response, error)
- func (svc *StorageServiceOp) CreateVolume(ctx context.Context, createRequest *VolumeCreateRequest) (*Volume, *Response, error)
- func (svc *StorageServiceOp) DeleteSnapshot(ctx context.Context, id string) (*Response, error)
- func (svc *StorageServiceOp) DeleteVolume(ctx context.Context, id string) (*Response, error)
- func (svc *StorageServiceOp) GetSnapshot(ctx context.Context, id string) (*Snapshot, *Response, error)
- func (svc *StorageServiceOp) GetVolume(ctx context.Context, id string) (*Volume, *Response, error)
- func (svc *StorageServiceOp) ListSnapshots(ctx context.Context, volumeID string, opt *ListOptions) ([]Snapshot, *Response, error)
- func (svc *StorageServiceOp) ListVolumes(ctx context.Context, params *ListVolumeParams) ([]Volume, *Response, error)
- type SupportedBackupPolicy
- type Tag
- type TagCreateRequest
- type TagResourcesRequest
- type TaggedDatabasesResources
- type TaggedDropletsResources
- type TaggedImagesResources
- type TaggedResources
- type TaggedResourcesData
- type TaggedVolumeSnapshotsResources
- type TaggedVolumesResources
- type TagsService
- type TagsServiceOp
- func (s *TagsServiceOp) Create(ctx context.Context, createRequest *TagCreateRequest) (*Tag, *Response, error)
- func (s *TagsServiceOp) Delete(ctx context.Context, name string) (*Response, error)
- func (s *TagsServiceOp) Get(ctx context.Context, name string) (*Tag, *Response, error)
- func (s *TagsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Tag, *Response, error)
- func (s *TagsServiceOp) TagResources(ctx context.Context, name string, tagRequest *TagResourcesRequest) (*Response, error)
- func (s *TagsServiceOp) UntagResources(ctx context.Context, name string, untagRequest *UntagResourcesRequest) (*Response, error)
- type Taint
- type TeamInfo
- type Timestamp
- type ToggleDatabaseTrustedSourceOptions
- type ToggleDatabaseTrustedSourceRequest
- type ToggleDatabaseTrustedSourceResponse
- type TokenListOptions
- type TopicConfig
- type TopicConsumerGroup
- type TopicPartition
- type TriggerScheduledDetails
- type TriggerScheduledRuns
- type UntagResourcesRequest
- type UpdateGarbageCollectionRequest
- type UpdateProjectRequest
- type UpdateUptimeAlertRequest
- type UpdateUptimeCheckRequest
- type UpgradeBuildpackOptions
- type UpgradeBuildpackResponse
- type UpgradeVersionRequest
- type UptimeAlert
- type UptimeAlertComp
- type UptimeCheck
- type UptimeCheckState
- type UptimeChecksService
- type UptimeChecksServiceOp
- func (p *UptimeChecksServiceOp) Create(ctx context.Context, cr *CreateUptimeCheckRequest) (*UptimeCheck, *Response, error)
- func (p *UptimeChecksServiceOp) CreateAlert(ctx context.Context, uptimeCheckID string, cr *CreateUptimeAlertRequest) (*UptimeAlert, *Response, error)
- func (p *UptimeChecksServiceOp) Delete(ctx context.Context, uptimeCheckID string) (*Response, error)
- func (p *UptimeChecksServiceOp) DeleteAlert(ctx context.Context, uptimeCheckID string, alertID string) (*Response, error)
- func (p *UptimeChecksServiceOp) Get(ctx context.Context, uptimeCheckID string) (*UptimeCheck, *Response, error)
- func (p *UptimeChecksServiceOp) GetAlert(ctx context.Context, uptimeCheckID string, alertID string) (*UptimeAlert, *Response, error)
- func (p *UptimeChecksServiceOp) GetState(ctx context.Context, uptimeCheckID string) (*UptimeCheckState, *Response, error)
- func (p *UptimeChecksServiceOp) List(ctx context.Context, opts *ListOptions) ([]UptimeCheck, *Response, error)
- func (p *UptimeChecksServiceOp) ListAlerts(ctx context.Context, uptimeCheckID string, opts *ListOptions) ([]UptimeAlert, *Response, error)
- func (p *UptimeChecksServiceOp) Update(ctx context.Context, uptimeCheckID string, ur *UpdateUptimeCheckRequest) (*UptimeCheck, *Response, error)
- func (p *UptimeChecksServiceOp) UpdateAlert(ctx context.Context, uptimeCheckID string, alertID string, ...) (*UptimeAlert, *Response, error)
- type UptimePreviousOutage
- type UptimeRegion
- type VCSSourceSpec
- type VPC
- type VPCCreateRequest
- type VPCListMembersRequest
- type VPCMember
- type VPCPeering
- type VPCPeeringCreateRequest
- type VPCPeeringCreateRequestByVPCID
- type VPCPeeringUpdateRequest
- type VPCSetDescription
- type VPCSetField
- type VPCSetName
- type VPCUpdateRequest
- type VPCsService
- type VPCsServiceOp
- func (v *VPCsServiceOp) Create(ctx context.Context, create *VPCCreateRequest) (*VPC, *Response, error)
- func (v *VPCsServiceOp) CreateVPCPeering(ctx context.Context, create *VPCPeeringCreateRequest) (*VPCPeering, *Response, error)
- func (v *VPCsServiceOp) CreateVPCPeeringByVPCID(ctx context.Context, id string, create *VPCPeeringCreateRequestByVPCID) (*VPCPeering, *Response, error)
- func (v *VPCsServiceOp) Delete(ctx context.Context, id string) (*Response, error)
- func (v *VPCsServiceOp) DeleteVPCPeering(ctx context.Context, id string) (*Response, error)
- func (v *VPCsServiceOp) Get(ctx context.Context, id string) (*VPC, *Response, error)
- func (v *VPCsServiceOp) GetVPCPeering(ctx context.Context, id string) (*VPCPeering, *Response, error)
- func (v *VPCsServiceOp) List(ctx context.Context, opt *ListOptions) ([]*VPC, *Response, error)
- func (v *VPCsServiceOp) ListMembers(ctx context.Context, id string, request *VPCListMembersRequest, ...) ([]*VPCMember, *Response, error)
- func (v *VPCsServiceOp) ListVPCPeerings(ctx context.Context, opt *ListOptions) ([]*VPCPeering, *Response, error)
- func (v *VPCsServiceOp) ListVPCPeeringsByVPCID(ctx context.Context, id string, opt *ListOptions) ([]*VPCPeering, *Response, error)
- func (v *VPCsServiceOp) Set(ctx context.Context, id string, fields ...VPCSetField) (*VPC, *Response, error)
- func (v *VPCsServiceOp) Update(ctx context.Context, id string, update *VPCUpdateRequest) (*VPC, *Response, error)
- func (v *VPCsServiceOp) UpdateVPCPeering(ctx context.Context, id string, update *VPCPeeringUpdateRequest) (*VPCPeering, *Response, error)
- func (v *VPCsServiceOp) UpdateVPCPeeringByVPCID(ctx context.Context, vpcID, peerID string, update *VPCPeeringUpdateRequest) (*VPCPeering, *Response, error)
- type VRAM
- type Volume
- type VolumeCreateRequest
Constants ¶
const ( // ActionInProgress is an in progress action status ActionInProgress = "in-progress" //ActionCompleted is a completed action status ActionCompleted = "completed" )
const ( SQLModeAllowInvalidDates = "ALLOW_INVALID_DATES" SQLModeANSIQuotes = "ANSI_QUOTES" SQLModeHighNotPrecedence = "HIGH_NOT_PRECEDENCE" SQLModeIgnoreSpace = "IGNORE_SPACE" SQLModeNoAuthCreateUser = "NO_AUTO_CREATE_USER" SQLModeNoAutoValueOnZero = "NO_AUTO_VALUE_ON_ZERO" SQLModeNoBackslashEscapes = "NO_BACKSLASH_ESCAPES" SQLModeNoDirInCreate = "NO_DIR_IN_CREATE" SQLModeNoEngineSubstitution = "NO_ENGINE_SUBSTITUTION" SQLModeNoFieldOptions = "NO_FIELD_OPTIONS" SQLModeNoKeyOptions = "NO_KEY_OPTIONS" SQLModeNoTableOptions = "NO_TABLE_OPTIONS" SQLModeNoUnsignedSubtraction = "NO_UNSIGNED_SUBTRACTION" SQLModeNoZeroDate = "NO_ZERO_DATE" SQLModeNoZeroInDate = "NO_ZERO_IN_DATE" SQLModeOnlyFullGroupBy = "ONLY_FULL_GROUP_BY" SQLModePadCharToFullLength = "PAD_CHAR_TO_FULL_LENGTH" SQLModePipesAsConcat = "PIPES_AS_CONCAT" SQLModeRealAsFloat = "REAL_AS_FLOAT" SQLModeStrictAllTables = "STRICT_ALL_TABLES" SQLModeStrictTransTables = "STRICT_TRANS_TABLES" SQLModeANSI = "ANSI" SQLModeDB2 = "DB2" SQLModeMaxDB = "MAXDB" SQLModeMSSQL = "MSSQL" SQLModeMYSQL323 = "MYSQL323" SQLModeMYSQL40 = "MYSQL40" SQLModeOracle = "ORACLE" SQLModePostgreSQL = "POSTGRESQL" SQLModeTraditional = "TRADITIONAL" )
SQL Mode constants allow for MySQL-specific SQL flavor configuration.
const ( SQLAuthPluginNative = "mysql_native_password" SQLAuthPluginCachingSHA2 = "caching_sha2_password" )
SQL Auth constants allow for MySQL-specific user auth plugins
const ( EvictionPolicyNoEviction = "noeviction" EvictionPolicyAllKeysLRU = "allkeys_lru" EvictionPolicyAllKeysRandom = "allkeys_random" EvictionPolicyVolatileLRU = "volatile_lru" EvictionPolicyVolatileRandom = "volatile_random" EvictionPolicyVolatileTTL = "volatile_ttl" )
Redis eviction policies supported by the managed Redis product.
const ( KubernetesClusterStatusProvisioning = KubernetesClusterStatusState("provisioning") KubernetesClusterStatusRunning = KubernetesClusterStatusState("running") KubernetesClusterStatusDegraded = KubernetesClusterStatusState("degraded") KubernetesClusterStatusError = KubernetesClusterStatusState("error") KubernetesClusterStatusDeleted = KubernetesClusterStatusState("deleted") KubernetesClusterStatusUpgrading = KubernetesClusterStatusState("upgrading") KubernetesClusterStatusInvalid = KubernetesClusterStatusState("invalid") )
Possible states for a cluster.
const ( // Load Balancer types LoadBalancerTypeGlobal = "GLOBAL" LoadBalancerTypeRegional = "REGIONAL" LoadBalancerTypeRegionalNetwork = "REGIONAL_NETWORK" // Load Balancer network types LoadBalancerNetworkTypeExternal = "EXTERNAL" LoadBalancerNetworkTypeInternal = "INTERNAL" // Load Balancer network_stack types LoadBalancerNetworkStackIPv4 = "IPV4" LoadBalancerNetworkStackDualstack = "DUALSTACK" )
const ( DropletCPUUtilizationPercent = "v1/insights/droplet/cpu" DropletMemoryUtilizationPercent = "v1/insights/droplet/memory_utilization_percent" DropletDiskUtilizationPercent = "v1/insights/droplet/disk_utilization_percent" DropletPublicOutboundBandwidthRate = "v1/insights/droplet/public_outbound_bandwidth" DropletPublicInboundBandwidthRate = "v1/insights/droplet/public_inbound_bandwidth" DropletPrivateOutboundBandwidthRate = "v1/insights/droplet/private_outbound_bandwidth" DropletPrivateInboundBandwidthRate = "v1/insights/droplet/private_inbound_bandwidth" DropletDiskReadRate = "v1/insights/droplet/disk_read" DropletDiskWriteRate = "v1/insights/droplet/disk_write" DropletOneMinuteLoadAverage = "v1/insights/droplet/load_1" DropletFiveMinuteLoadAverage = "v1/insights/droplet/load_5" DropletFifteenMinuteLoadAverage = "v1/insights/droplet/load_15" LoadBalancerCPUUtilizationPercent = "v1/insights/lbaas/avg_cpu_utilization_percent" LoadBalancerConnectionUtilizationPercent = "v1/insights/lbaas/connection_utilization_percent" LoadBalancerDropletHealth = "v1/insights/lbaas/droplet_health" LoadBalancerTLSUtilizationPercent = "v1/insights/lbaas/tls_connections_per_second_utilization_percent" LoadBalancerIncreaseInHTTPErrorRatePercentage5xx = "v1/insights/lbaas/increase_in_http_error_rate_percentage_5xx" LoadBalancerIncreaseInHTTPErrorRatePercentage4xx = "v1/insights/lbaas/increase_in_http_error_rate_percentage_4xx" LoadBalancerIncreaseInHTTPErrorRateCount5xx = "v1/insights/lbaas/increase_in_http_error_rate_count_5xx" LoadBalancerIncreaseInHTTPErrorRateCount4xx = "v1/insights/lbaas/increase_in_http_error_rate_count_4xx" LoadBalancerHighHttpResponseTime = "v1/insights/lbaas/high_http_request_response_time" LoadBalancerHighHttpResponseTime50P = "v1/insights/lbaas/high_http_request_response_time_50p" LoadBalancerHighHttpResponseTime95P = "v1/insights/lbaas/high_http_request_response_time_95p" LoadBalancerHighHttpResponseTime99P = "v1/insights/lbaas/high_http_request_response_time_99p" DbaasFifteenMinuteLoadAverage = "v1/dbaas/alerts/load_15_alerts" DbaasMemoryUtilizationPercent = "v1/dbaas/alerts/memory_utilization_alerts" DbaasDiskUtilizationPercent = "v1/dbaas/alerts/disk_utilization_alerts" DbaasCPUUtilizationPercent = "v1/dbaas/alerts/cpu_alerts" )
const ( // GCTypeUntaggedManifestsOnly indicates that a garbage collection should // only delete untagged manifests. GCTypeUntaggedManifestsOnly = GarbageCollectionType("untagged manifests only") // GCTypeUnreferencedBlobsOnly indicates that a garbage collection should // only delete unreferenced blobs. GCTypeUnreferencedBlobsOnly = GarbageCollectionType("unreferenced blobs only") // GCTypeUntaggedManifestsAndUnreferencedBlobs indicates that a garbage // collection should delete both untagged manifests and unreferenced blobs. GCTypeUntaggedManifestsAndUnreferencedBlobs = GarbageCollectionType("untagged manifests and unreferenced blobs") )
const ( // DefaultProject is the ID you should use if you are working with your // default project. DefaultProject = "default" )
const (
// RegistryServer is the hostname of the DigitalOcean registry service
RegistryServer = "registry.digitalocean.com"
)
Variables ¶
This section is empty.
Functions ¶
func CIDRSourceFirewall ¶ added in v1.92.0
CIDRSourceFirewall takes a CIDR notation IP address and prefix length string like "192.0.2.0/24" and returns a formatted cidr source firewall rule
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse. Any other response body will be silently ignored. If the API error response does not include the request ID in its body, the one from its header will be used.
func DoRequestWithClient ¶ added in v1.2.0
func DoRequestWithClient( ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
DoRequestWithClient submits an HTTP request using the specified client.
func ForEachAppSpecComponent ¶ added in v1.85.0
ForEachAppSpecComponent loops over each component spec that matches the provided interface type. The type constraint is intentionally set to `any` to allow use of arbitrary interfaces to match the desired component types.
Examples:
- interface constraint godo.ForEachAppSpecComponent(spec, func(component godo.AppBuildableComponentSpec) error { ... })
- struct type constraint godo.ForEachAppSpecComponent(spec, func(component *godo.AppStaticSiteSpec) error { ... })
func GetAppSpecComponent ¶ added in v1.85.0
GetAppSpecComponent returns an app spec component by type and name.
Examples:
- interface constraint godo.GetAppSpecComponent[godo.AppBuildableComponentSpec](spec, "component-name")
- struct type constraint godo.GetAppSpecComponent[*godo.AppServiceSpec](spec, "component-name")
func IPSourceFirewall ¶ added in v1.92.0
IPSourceFirewall takes an IP (string) and returns a formatted ip source firewall rule
func PtrTo ¶ added in v1.90.0
func PtrTo[T any](v T) *T
PtrTo returns a pointer to the provided input.
func StreamToString ¶
StreamToString converts a reader to a string
Types ¶
type Account ¶ added in v0.9.0
type Account struct { DropletLimit int `json:"droplet_limit,omitempty"` FloatingIPLimit int `json:"floating_ip_limit,omitempty"` ReservedIPLimit int `json:"reserved_ip_limit,omitempty"` VolumeLimit int `json:"volume_limit,omitempty"` Email string `json:"email,omitempty"` Name string `json:"name,omitempty"` UUID string `json:"uuid,omitempty"` EmailVerified bool `json:"email_verified,omitempty"` Status string `json:"status,omitempty"` StatusMessage string `json:"status_message,omitempty"` Team *TeamInfo `json:"team,omitempty"` }
Account represents a DigitalOcean Account
type AccountService ¶ added in v0.9.0
AccountService is an interface for interfacing with the Account endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Account
type AccountServiceOp ¶ added in v0.9.0
type AccountServiceOp struct {
// contains filtered or unexported fields
}
AccountServiceOp handles communication with the Account related methods of the DigitalOcean API.
type Action ¶
type Action struct { ID int `json:"id"` Status string `json:"status"` Type string `json:"type"` StartedAt *Timestamp `json:"started_at"` CompletedAt *Timestamp `json:"completed_at"` ResourceID int `json:"resource_id"` ResourceType string `json:"resource_type"` Region *Region `json:"region,omitempty"` RegionSlug string `json:"region_slug,omitempty"` }
Action represents a DigitalOcean Action
type ActionRequest ¶
type ActionRequest map[string]interface{}
ActionRequest represents DigitalOcean Action Request
type ActionsService ¶
type ActionsService interface { List(context.Context, *ListOptions) ([]Action, *Response, error) Get(context.Context, int) (*Action, *Response, error) }
ActionsService handles communication with action related methods of the DigitalOcean API: https://docs.digitalocean.com/reference/api/api-reference/#tag/Actions
type ActionsServiceOp ¶ added in v0.3.0
type ActionsServiceOp struct {
// contains filtered or unexported fields
}
ActionsServiceOp handles communication with the image action related methods of the DigitalOcean API.
func (*ActionsServiceOp) List ¶ added in v0.3.0
func (s *ActionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Action, *Response, error)
List all actions
type Address ¶ added in v1.31.0
type Address struct { AddressLine1 string `json:"address_line1"` AddressLine2 string `json:"address_line2"` City string `json:"city"` Region string `json:"region"` PostalCode string `json:"postal_code"` CountryISO2Code string `json:"country_iso2_code"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Address represents the billing address of a customer
type AlertDestinationUpdateRequest ¶ added in v1.65.0
type AlertDestinationUpdateRequest struct { Emails []string `json:"emails"` SlackWebhooks []*AppAlertSlackWebhook `json:"slack_webhooks"` }
AlertDestinationUpdateRequest represents a request to update alert destinations.
type AlertPolicy ¶ added in v1.64.0
type AlertPolicy struct { UUID string `json:"uuid"` Type string `json:"type"` Description string `json:"description"` Compare AlertPolicyComp `json:"compare"` Value float32 `json:"value"` Window string `json:"window"` Entities []string `json:"entities"` Tags []string `json:"tags"` Alerts Alerts `json:"alerts"` Enabled bool `json:"enabled"` }
AlertPolicy represents a DigitalOcean alert policy
type AlertPolicyComp ¶ added in v1.64.0
type AlertPolicyComp string
AlertPolicyComp represents an alert policy comparison operation
const ( // GreaterThan is the comparison > GreaterThan AlertPolicyComp = "GreaterThan" // LessThan is the comparison < LessThan AlertPolicyComp = "LessThan" )
type AlertPolicyCreateRequest ¶ added in v1.64.0
type AlertPolicyCreateRequest struct { Type string `json:"type"` Description string `json:"description"` Compare AlertPolicyComp `json:"compare"` Value float32 `json:"value"` Window string `json:"window"` Entities []string `json:"entities"` Tags []string `json:"tags"` Alerts Alerts `json:"alerts"` Enabled *bool `json:"enabled"` }
AlertPolicyCreateRequest holds the info for creating a new alert policy
type AlertPolicyUpdateRequest ¶ added in v1.64.0
type AlertPolicyUpdateRequest struct { Type string `json:"type"` Description string `json:"description"` Compare AlertPolicyComp `json:"compare"` Value float32 `json:"value"` Window string `json:"window"` Entities []string `json:"entities"` Tags []string `json:"tags"` Alerts Alerts `json:"alerts"` Enabled *bool `json:"enabled"` }
AlertPolicyUpdateRequest holds the info for updating an existing alert policy
type Alerts ¶ added in v1.64.0
type Alerts struct { Slack []SlackDetails `json:"slack"` Email []string `json:"email"` }
Alerts represents the alerts section of an alert policy
type App ¶ added in v1.39.0
type App struct { ID string `json:"id,omitempty"` OwnerUUID string `json:"owner_uuid,omitempty"` Spec *AppSpec `json:"spec"` LastDeploymentActiveAt time.Time `json:"last_deployment_active_at,omitempty"` DefaultIngress string `json:"default_ingress,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` ActiveDeployment *Deployment `json:"active_deployment,omitempty"` InProgressDeployment *Deployment `json:"in_progress_deployment,omitempty"` PendingDeployment *Deployment `json:"pending_deployment,omitempty"` LastDeploymentCreatedAt time.Time `json:"last_deployment_created_at,omitempty"` LiveURL string `json:"live_url,omitempty"` Region *AppRegion `json:"region,omitempty"` TierSlug string `json:"tier_slug,omitempty"` LiveURLBase string `json:"live_url_base,omitempty"` LiveDomain string `json:"live_domain,omitempty"` Domains []*AppDomain `json:"domains,omitempty"` PinnedDeployment *Deployment `json:"pinned_deployment,omitempty"` BuildConfig *AppBuildConfig `json:"build_config,omitempty"` // The id of the project for the app. This will be empty if there is a fleet (project) lookup failure. ProjectID string `json:"project_id,omitempty"` // The dedicated egress ip addresses associated with the app. DedicatedIps []*AppDedicatedIp `json:"dedicated_ips,omitempty"` }
App An application's configuration and status.
func (*App) GetActiveDeployment ¶ added in v1.85.0
func (a *App) GetActiveDeployment() *Deployment
GetActiveDeployment returns the ActiveDeployment field.
func (*App) GetBuildConfig ¶ added in v1.85.0
func (a *App) GetBuildConfig() *AppBuildConfig
GetBuildConfig returns the BuildConfig field.
func (*App) GetCreatedAt ¶ added in v1.85.0
GetCreatedAt returns the CreatedAt field.
func (*App) GetDedicatedIps ¶ added in v1.109.0
func (a *App) GetDedicatedIps() []*AppDedicatedIp
GetDedicatedIps returns the DedicatedIps field.
func (*App) GetDefaultIngress ¶ added in v1.85.0
GetDefaultIngress returns the DefaultIngress field.
func (*App) GetDomains ¶ added in v1.85.0
GetDomains returns the Domains field.
func (*App) GetInProgressDeployment ¶ added in v1.85.0
func (a *App) GetInProgressDeployment() *Deployment
GetInProgressDeployment returns the InProgressDeployment field.
func (*App) GetLastDeploymentActiveAt ¶ added in v1.85.0
GetLastDeploymentActiveAt returns the LastDeploymentActiveAt field.
func (*App) GetLastDeploymentCreatedAt ¶ added in v1.85.0
GetLastDeploymentCreatedAt returns the LastDeploymentCreatedAt field.
func (*App) GetLiveDomain ¶ added in v1.85.0
GetLiveDomain returns the LiveDomain field.
func (*App) GetLiveURL ¶ added in v1.85.0
GetLiveURL returns the LiveURL field.
func (*App) GetLiveURLBase ¶ added in v1.85.0
GetLiveURLBase returns the LiveURLBase field.
func (*App) GetOwnerUUID ¶ added in v1.85.0
GetOwnerUUID returns the OwnerUUID field.
func (*App) GetPendingDeployment ¶ added in v1.97.0
func (a *App) GetPendingDeployment() *Deployment
GetPendingDeployment returns the PendingDeployment field.
func (*App) GetPinnedDeployment ¶ added in v1.85.0
func (a *App) GetPinnedDeployment() *Deployment
GetPinnedDeployment returns the PinnedDeployment field.
func (*App) GetProjectID ¶ added in v1.88.0
GetProjectID returns the ProjectID field.
func (*App) GetTierSlug ¶ added in v1.85.0
GetTierSlug returns the TierSlug field.
func (*App) GetUpdatedAt ¶ added in v1.85.0
GetUpdatedAt returns the UpdatedAt field.
type AppAlert ¶ added in v1.65.0
type AppAlert struct { // The ID of the alert. This will be auto-generated by App Platform once the spec is submitted. ID string `json:"id,omitempty"` // Name of the component this alert applies to. ComponentName string `json:"component_name,omitempty"` Spec *AppAlertSpec `json:"spec,omitempty"` // Email destinations for the alert when triggered. Emails []string `json:"emails,omitempty"` // Slack webhook destinations for the alert when triggered. SlackWebhooks []*AppAlertSlackWebhook `json:"slack_webhooks,omitempty"` Phase AppAlertPhase `json:"phase,omitempty"` Progress *AppAlertProgress `json:"progress,omitempty"` }
AppAlert Represents an alert configured for an app or component.
func (*AppAlert) GetComponentName ¶ added in v1.85.0
GetComponentName returns the ComponentName field.
func (*AppAlert) GetPhase ¶ added in v1.85.0
func (a *AppAlert) GetPhase() AppAlertPhase
GetPhase returns the Phase field.
func (*AppAlert) GetProgress ¶ added in v1.85.0
func (a *AppAlert) GetProgress() *AppAlertProgress
GetProgress returns the Progress field.
func (*AppAlert) GetSlackWebhooks ¶ added in v1.85.0
func (a *AppAlert) GetSlackWebhooks() []*AppAlertSlackWebhook
GetSlackWebhooks returns the SlackWebhooks field.
func (*AppAlert) GetSpec ¶ added in v1.85.0
func (a *AppAlert) GetSpec() *AppAlertSpec
GetSpec returns the Spec field.
type AppAlertPhase ¶ added in v1.65.0
type AppAlertPhase string
AppAlertPhase the model 'AppAlertPhase'
const ( AppAlertPhase_Unknown AppAlertPhase = "UNKNOWN" AppAlertPhase_Pending AppAlertPhase = "PENDING" AppAlertPhase_Configuring AppAlertPhase = "CONFIGURING" AppAlertPhase_Active AppAlertPhase = "ACTIVE" AppAlertPhase_Error AppAlertPhase = "ERROR" )
List of AppAlertPhase
type AppAlertProgress ¶ added in v1.65.0
type AppAlertProgress struct {
Steps []*AppAlertProgressStep `json:"steps,omitempty"`
}
AppAlertProgress struct for AppAlertProgress
func (*AppAlertProgress) GetSteps ¶ added in v1.85.0
func (a *AppAlertProgress) GetSteps() []*AppAlertProgressStep
GetSteps returns the Steps field.
type AppAlertProgressStep ¶ added in v1.65.0
type AppAlertProgressStep struct { Name string `json:"name,omitempty"` Status AppAlertProgressStepStatus `json:"status,omitempty"` Steps []*AppAlertProgressStep `json:"steps,omitempty"` StartedAt time.Time `json:"started_at,omitempty"` EndedAt time.Time `json:"ended_at,omitempty"` Reason *AppAlertProgressStepReason `json:"reason,omitempty"` }
AppAlertProgressStep struct for AppAlertProgressStep
func (*AppAlertProgressStep) GetEndedAt ¶ added in v1.85.0
func (a *AppAlertProgressStep) GetEndedAt() time.Time
GetEndedAt returns the EndedAt field.
func (*AppAlertProgressStep) GetName ¶ added in v1.85.0
func (a *AppAlertProgressStep) GetName() string
GetName returns the Name field.
func (*AppAlertProgressStep) GetReason ¶ added in v1.85.0
func (a *AppAlertProgressStep) GetReason() *AppAlertProgressStepReason
GetReason returns the Reason field.
func (*AppAlertProgressStep) GetStartedAt ¶ added in v1.85.0
func (a *AppAlertProgressStep) GetStartedAt() time.Time
GetStartedAt returns the StartedAt field.
func (*AppAlertProgressStep) GetStatus ¶ added in v1.85.0
func (a *AppAlertProgressStep) GetStatus() AppAlertProgressStepStatus
GetStatus returns the Status field.
func (*AppAlertProgressStep) GetSteps ¶ added in v1.85.0
func (a *AppAlertProgressStep) GetSteps() []*AppAlertProgressStep
GetSteps returns the Steps field.
type AppAlertProgressStepReason ¶ added in v1.65.0
type AppAlertProgressStepReason struct { Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` }
AppAlertProgressStepReason struct for AppAlertProgressStepReason
func (*AppAlertProgressStepReason) GetCode ¶ added in v1.85.0
func (a *AppAlertProgressStepReason) GetCode() string
GetCode returns the Code field.
func (*AppAlertProgressStepReason) GetMessage ¶ added in v1.85.0
func (a *AppAlertProgressStepReason) GetMessage() string
GetMessage returns the Message field.
type AppAlertProgressStepStatus ¶ added in v1.65.0
type AppAlertProgressStepStatus string
AppAlertProgressStepStatus the model 'AppAlertProgressStepStatus'
const ( AppAlertProgressStepStatus_Unknown AppAlertProgressStepStatus = "UNKNOWN" AppAlertProgressStepStatus_Pending AppAlertProgressStepStatus = "PENDING" AppAlertProgressStepStatus_Running AppAlertProgressStepStatus = "RUNNING" AppAlertProgressStepStatus_Error AppAlertProgressStepStatus = "ERROR" AppAlertProgressStepStatus_Success AppAlertProgressStepStatus = "SUCCESS" )
List of AppAlertProgressStepStatus
type AppAlertSlackWebhook ¶ added in v1.65.0
type AppAlertSlackWebhook struct { // URL for the Slack webhook. URL string `json:"url,omitempty"` // Name of the Slack channel. Channel string `json:"channel,omitempty"` }
AppAlertSlackWebhook Configuration of a Slack alerting destination.
func (*AppAlertSlackWebhook) GetChannel ¶ added in v1.85.0
func (a *AppAlertSlackWebhook) GetChannel() string
GetChannel returns the Channel field.
func (*AppAlertSlackWebhook) GetURL ¶ added in v1.85.0
func (a *AppAlertSlackWebhook) GetURL() string
GetURL returns the URL field.
type AppAlertSpec ¶ added in v1.65.0
type AppAlertSpec struct { Rule AppAlertSpecRule `json:"rule,omitempty"` // Determines whether or not the alert is disabled. Disabled bool `json:"disabled,omitempty"` Operator AppAlertSpecOperator `json:"operator,omitempty"` // The meaning is dependent upon the rule. It is used in conjunction with the operator and window to determine when an alert should trigger. Value float32 `json:"value,omitempty"` Window AppAlertSpecWindow `json:"window,omitempty"` }
AppAlertSpec Configuration of an alert for the app or a individual component.
func (*AppAlertSpec) GetDisabled ¶ added in v1.85.0
func (a *AppAlertSpec) GetDisabled() bool
GetDisabled returns the Disabled field.
func (*AppAlertSpec) GetOperator ¶ added in v1.85.0
func (a *AppAlertSpec) GetOperator() AppAlertSpecOperator
GetOperator returns the Operator field.
func (*AppAlertSpec) GetRule ¶ added in v1.85.0
func (a *AppAlertSpec) GetRule() AppAlertSpecRule
GetRule returns the Rule field.
func (*AppAlertSpec) GetValue ¶ added in v1.85.0
func (a *AppAlertSpec) GetValue() float32
GetValue returns the Value field.
func (*AppAlertSpec) GetWindow ¶ added in v1.85.0
func (a *AppAlertSpec) GetWindow() AppAlertSpecWindow
GetWindow returns the Window field.
type AppAlertSpecOperator ¶ added in v1.65.0
type AppAlertSpecOperator string
AppAlertSpecOperator the model 'AppAlertSpecOperator'
const ( AppAlertSpecOperator_UnspecifiedOperator AppAlertSpecOperator = "UNSPECIFIED_OPERATOR" AppAlertSpecOperator_GreaterThan AppAlertSpecOperator = "GREATER_THAN" AppAlertSpecOperator_LessThan AppAlertSpecOperator = "LESS_THAN" )
List of AppAlertSpecOperator
type AppAlertSpecRule ¶ added in v1.65.0
type AppAlertSpecRule string
AppAlertSpecRule - CPU_UTILIZATION: Represents CPU for a given container instance. Only applicable at the component level. - MEM_UTILIZATION: Represents RAM for a given container instance. Only applicable at the component level. - RESTART_COUNT: Represents restart count for a given container instance. Only applicable at the component level. - DEPLOYMENT_FAILED: Represents whether a deployment has failed. Only applicable at the app level. - DEPLOYMENT_LIVE: Represents whether a deployment has succeeded. Only applicable at the app level. - DEPLOYMENT_STARTED: Represents whether a deployment has started. Only applicable at the app level. - DEPLOYMENT_CANCELED: Represents whether a deployment has been canceled. Only applicable at the app level. - DOMAIN_FAILED: Represents whether a domain configuration has failed. Only applicable at the app level. - DOMAIN_LIVE: Represents whether a domain configuration has succeeded. Only applicable at the app level. - FUNCTIONS_ACTIVATION_COUNT: Represents an activation count for a given functions instance. Only applicable to functions components. - FUNCTIONS_AVERAGE_DURATION_MS: Represents the average duration for function runtimes. Only applicable to functions components. - FUNCTIONS_ERROR_RATE_PER_MINUTE: Represents an error rate per minute for a given functions instance. Only applicable to functions components. - FUNCTIONS_AVERAGE_WAIT_TIME_MS: Represents the average wait time for functions. Only applicable to functions components. - FUNCTIONS_ERROR_COUNT: Represents an error count for a given functions instance. Only applicable to functions components. - FUNCTIONS_GB_RATE_PER_SECOND: Represents the rate of memory consumption (GB x seconds) for functions. Only applicable to functions components.
const ( AppAlertSpecRule_UnspecifiedRule AppAlertSpecRule = "UNSPECIFIED_RULE" AppAlertSpecRule_CPUUtilization AppAlertSpecRule = "CPU_UTILIZATION" AppAlertSpecRule_MemUtilization AppAlertSpecRule = "MEM_UTILIZATION" AppAlertSpecRule_RestartCount AppAlertSpecRule = "RESTART_COUNT" AppAlertSpecRule_DeploymentFailed AppAlertSpecRule = "DEPLOYMENT_FAILED" AppAlertSpecRule_DeploymentLive AppAlertSpecRule = "DEPLOYMENT_LIVE" AppAlertSpecRule_DeploymentStarted AppAlertSpecRule = "DEPLOYMENT_STARTED" AppAlertSpecRule_DeploymentCanceled AppAlertSpecRule = "DEPLOYMENT_CANCELED" AppAlertSpecRule_DomainFailed AppAlertSpecRule = "DOMAIN_FAILED" AppAlertSpecRule_DomainLive AppAlertSpecRule = "DOMAIN_LIVE" AppAlertSpecRule_FunctionsActivationCount AppAlertSpecRule = "FUNCTIONS_ACTIVATION_COUNT" AppAlertSpecRule_FunctionsAverageDurationMS AppAlertSpecRule = "FUNCTIONS_AVERAGE_DURATION_MS" AppAlertSpecRule_FunctionsErrorRatePerMinute AppAlertSpecRule = "FUNCTIONS_ERROR_RATE_PER_MINUTE" AppAlertSpecRule_FunctionsAverageWaitTimeMs AppAlertSpecRule = "FUNCTIONS_AVERAGE_WAIT_TIME_MS" AppAlertSpecRule_FunctionsErrorCount AppAlertSpecRule = "FUNCTIONS_ERROR_COUNT" AppAlertSpecRule_FunctionsGBRatePerSecond AppAlertSpecRule = "FUNCTIONS_GB_RATE_PER_SECOND" )
List of AppAlertSpecRule
type AppAlertSpecWindow ¶ added in v1.65.0
type AppAlertSpecWindow string
AppAlertSpecWindow the model 'AppAlertSpecWindow'
const ( AppAlertSpecWindow_UnspecifiedWindow AppAlertSpecWindow = "UNSPECIFIED_WINDOW" AppAlertSpecWindow_FiveMinutes AppAlertSpecWindow = "FIVE_MINUTES" AppAlertSpecWindow_TenMinutes AppAlertSpecWindow = "TEN_MINUTES" AppAlertSpecWindow_ThirtyMinutes AppAlertSpecWindow = "THIRTY_MINUTES" AppAlertSpecWindow_OneHour AppAlertSpecWindow = "ONE_HOUR" )
List of AppAlertSpecWindow
type AppAutoscalingSpec ¶ added in v1.105.0
type AppAutoscalingSpec struct { // The minimum amount of instances for this component. MinInstanceCount int64 `json:"min_instance_count,omitempty"` // The maximum amount of instances for this component. MaxInstanceCount int64 `json:"max_instance_count,omitempty"` Metrics *AppAutoscalingSpecMetrics `json:"metrics,omitempty"` }
AppAutoscalingSpec struct for AppAutoscalingSpec
func (*AppAutoscalingSpec) GetMaxInstanceCount ¶ added in v1.105.0
func (a *AppAutoscalingSpec) GetMaxInstanceCount() int64
GetMaxInstanceCount returns the MaxInstanceCount field.
func (*AppAutoscalingSpec) GetMetrics ¶ added in v1.105.0
func (a *AppAutoscalingSpec) GetMetrics() *AppAutoscalingSpecMetrics
GetMetrics returns the Metrics field.
func (*AppAutoscalingSpec) GetMinInstanceCount ¶ added in v1.105.0
func (a *AppAutoscalingSpec) GetMinInstanceCount() int64
GetMinInstanceCount returns the MinInstanceCount field.
type AppAutoscalingSpecMetricCPU ¶ added in v1.105.0
type AppAutoscalingSpecMetricCPU struct { // The average target CPU utilization for the component. Percent int64 `json:"percent,omitempty"` }
AppAutoscalingSpecMetricCPU struct for AppAutoscalingSpecMetricCPU
func (*AppAutoscalingSpecMetricCPU) GetPercent ¶ added in v1.105.0
func (a *AppAutoscalingSpecMetricCPU) GetPercent() int64
GetPercent returns the Percent field.
type AppAutoscalingSpecMetrics ¶ added in v1.105.0
type AppAutoscalingSpecMetrics struct {
CPU *AppAutoscalingSpecMetricCPU `json:"cpu,omitempty"`
}
AppAutoscalingSpecMetrics struct for AppAutoscalingSpecMetrics
func (*AppAutoscalingSpecMetrics) GetCPU ¶ added in v1.105.0
func (a *AppAutoscalingSpecMetrics) GetCPU() *AppAutoscalingSpecMetricCPU
GetCPU returns the CPU field.
type AppBuildConfig ¶ added in v1.85.0
type AppBuildConfig struct {
CNBVersioning *AppBuildConfigCNBVersioning `json:"cnb_versioning,omitempty"`
}
AppBuildConfig struct for AppBuildConfig
func (*AppBuildConfig) GetCNBVersioning ¶ added in v1.85.0
func (a *AppBuildConfig) GetCNBVersioning() *AppBuildConfigCNBVersioning
GetCNBVersioning returns the CNBVersioning field.
type AppBuildConfigCNBVersioning ¶ added in v1.85.0
type AppBuildConfigCNBVersioning struct { // List of versioned buildpacks used for the application. Buildpacks are only versioned based on the major semver version, therefore exact versions will not be available at the app build config. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` // A version id that represents the underlying CNB stack. The version of the stack indicates what buildpacks are supported. StackID string `json:"stack_id,omitempty"` }
AppBuildConfigCNBVersioning struct for AppBuildConfigCNBVersioning
func (*AppBuildConfigCNBVersioning) GetBuildpacks ¶ added in v1.85.0
func (a *AppBuildConfigCNBVersioning) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
func (*AppBuildConfigCNBVersioning) GetStackID ¶ added in v1.98.0
func (a *AppBuildConfigCNBVersioning) GetStackID() string
GetStackID returns the StackID field.
type AppBuildableComponentSpec ¶ added in v1.85.0
type AppBuildableComponentSpec interface { AppComponentSpec GetGit() *GitSourceSpec GetGitHub() *GitHubSourceSpec GetGitLab() *GitLabSourceSpec GetBitbucket() *BitbucketSourceSpec GetSourceDir() string GetEnvs() []*AppVariableDefinition }
AppBuildableComponentSpec is a component that is buildable from source.
type AppCNBBuildableComponentSpec ¶ added in v1.85.0
type AppCNBBuildableComponentSpec interface { AppBuildableComponentSpec GetBuildCommand() string }
AppCNBBuildableComponentSpec is a component that is buildable from source using cloud native buildpacks.
type AppCORSPolicy ¶ added in v1.48.0
type AppCORSPolicy struct { // The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. AllowOrigins []*AppStringMatch `json:"allow_origins,omitempty"` // The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header. AllowMethods []string `json:"allow_methods,omitempty"` // The set of allowed HTTP request headers. This configures the Access-Control-Allow-Headers header. AllowHeaders []string `json:"allow_headers,omitempty"` // The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header. ExposeHeaders []string `json:"expose_headers,omitempty"` // An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: `5h30m`. MaxAge string `json:"max_age,omitempty"` // Whether browsers should expose the response to the client-side JavaScript code when the request's credentials mode is `include`. This configures the Access-Control-Allow-Credentials header. AllowCredentials bool `json:"allow_credentials,omitempty"` }
AppCORSPolicy struct for AppCORSPolicy
func (*AppCORSPolicy) GetAllowCredentials ¶ added in v1.85.0
func (a *AppCORSPolicy) GetAllowCredentials() bool
GetAllowCredentials returns the AllowCredentials field.
func (*AppCORSPolicy) GetAllowHeaders ¶ added in v1.85.0
func (a *AppCORSPolicy) GetAllowHeaders() []string
GetAllowHeaders returns the AllowHeaders field.
func (*AppCORSPolicy) GetAllowMethods ¶ added in v1.85.0
func (a *AppCORSPolicy) GetAllowMethods() []string
GetAllowMethods returns the AllowMethods field.
func (*AppCORSPolicy) GetAllowOrigins ¶ added in v1.85.0
func (a *AppCORSPolicy) GetAllowOrigins() []*AppStringMatch
GetAllowOrigins returns the AllowOrigins field.
func (*AppCORSPolicy) GetExposeHeaders ¶ added in v1.85.0
func (a *AppCORSPolicy) GetExposeHeaders() []string
GetExposeHeaders returns the ExposeHeaders field.
func (*AppCORSPolicy) GetMaxAge ¶ added in v1.85.0
func (a *AppCORSPolicy) GetMaxAge() string
GetMaxAge returns the MaxAge field.
type AppComponentSpec ¶ added in v1.85.0
type AppComponentSpec interface { GetName() string GetType() AppComponentType }
AppComponentSpec represents a component's spec.
type AppComponentType ¶ added in v1.85.0
type AppComponentType string
AppComponentType is an app component type.
const ( // AppComponentTypeService is the type for a service component. AppComponentTypeService AppComponentType = "service" // AppComponentTypeWorker is the type for a worker component. AppComponentTypeWorker AppComponentType = "worker" // AppComponentTypeJob is the type for a job component. AppComponentTypeJob AppComponentType = "job" // AppComponentTypeStaticSite is the type for a static site component. AppComponentTypeStaticSite AppComponentType = "static_site" // AppComponentTypeDatabase is the type for a database component. AppComponentTypeDatabase AppComponentType = "database" // AppComponentTypeFunctions is the type for a functions component. AppComponentTypeFunctions AppComponentType = "functions" )
type AppContainerComponentSpec ¶ added in v1.85.0
type AppContainerComponentSpec interface { AppBuildableComponentSpec GetImage() *ImageSourceSpec GetRunCommand() string GetInstanceSizeSlug() string GetInstanceCount() int64 }
AppContainerComponentSpec is a component that runs in a cluster.
type AppCreateRequest ¶ added in v1.39.0
type AppCreateRequest struct { Spec *AppSpec `json:"spec"` // Optional. The UUID of the project the app should be assigned. ProjectID string `json:"project_id,omitempty"` }
AppCreateRequest struct for AppCreateRequest
func (*AppCreateRequest) GetProjectID ¶ added in v1.88.0
func (a *AppCreateRequest) GetProjectID() string
GetProjectID returns the ProjectID field.
func (*AppCreateRequest) GetSpec ¶ added in v1.85.0
func (a *AppCreateRequest) GetSpec() *AppSpec
GetSpec returns the Spec field.
type AppDatabaseSpec ¶ added in v1.39.0
type AppDatabaseSpec struct { // The database's name. The name must be unique across all components within the same app and cannot use capital letters. Name string `json:"name"` Engine AppDatabaseSpecEngine `json:"engine,omitempty"` Version string `json:"version,omitempty"` // Deprecated. Size string `json:"size,omitempty"` // Deprecated. NumNodes int64 `json:"num_nodes,omitempty"` // Whether this is a production or dev database. Production bool `json:"production,omitempty"` // The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if cluster_name is not set, a new cluster will be provisioned. ClusterName string `json:"cluster_name,omitempty"` // The name of the MySQL or PostgreSQL database to configure. DBName string `json:"db_name,omitempty"` // The name of the MySQL or PostgreSQL user to configure. DBUser string `json:"db_user,omitempty"` }
AppDatabaseSpec struct for AppDatabaseSpec
func (*AppDatabaseSpec) GetClusterName ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetClusterName() string
GetClusterName returns the ClusterName field.
func (*AppDatabaseSpec) GetDBName ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetDBName() string
GetDBName returns the DBName field.
func (*AppDatabaseSpec) GetDBUser ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetDBUser() string
GetDBUser returns the DBUser field.
func (*AppDatabaseSpec) GetEngine ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetEngine() AppDatabaseSpecEngine
GetEngine returns the Engine field.
func (*AppDatabaseSpec) GetName ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetName() string
GetName returns the Name field.
func (*AppDatabaseSpec) GetNumNodes ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetNumNodes() int64
GetNumNodes returns the NumNodes field.
func (*AppDatabaseSpec) GetProduction ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetProduction() bool
GetProduction returns the Production field.
func (*AppDatabaseSpec) GetSize ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetSize() string
GetSize returns the Size field.
func (*AppDatabaseSpec) GetType ¶ added in v1.85.0
func (s *AppDatabaseSpec) GetType() AppComponentType
GetType returns the Database component type.
func (*AppDatabaseSpec) GetVersion ¶ added in v1.85.0
func (a *AppDatabaseSpec) GetVersion() string
GetVersion returns the Version field.
type AppDatabaseSpecEngine ¶ added in v1.39.0
type AppDatabaseSpecEngine string
AppDatabaseSpecEngine the model 'AppDatabaseSpecEngine'
const ( AppDatabaseSpecEngine_Unset AppDatabaseSpecEngine = "UNSET" AppDatabaseSpecEngine_MySQL AppDatabaseSpecEngine = "MYSQL" AppDatabaseSpecEngine_PG AppDatabaseSpecEngine = "PG" AppDatabaseSpecEngine_Redis AppDatabaseSpecEngine = "REDIS" AppDatabaseSpecEngine_MongoDB AppDatabaseSpecEngine = "MONGODB" AppDatabaseSpecEngine_Kafka AppDatabaseSpecEngine = "KAFKA" AppDatabaseSpecEngine_Opensearch AppDatabaseSpecEngine = "OPENSEARCH" )
List of AppDatabaseSpecEngine
type AppDedicatedIp ¶ added in v1.109.0
type AppDedicatedIp struct { // The ip address of the dedicated egress ip. Ip string `json:"ip,omitempty"` // The id of the dedictated egress ip. ID string `json:"id,omitempty"` Status AppDedicatedIpStatus `json:"status,omitempty"` }
AppDedicatedIp Represents a dedicated egress ip.
func (*AppDedicatedIp) GetID ¶ added in v1.109.0
func (a *AppDedicatedIp) GetID() string
GetID returns the ID field.
func (*AppDedicatedIp) GetIp ¶ added in v1.109.0
func (a *AppDedicatedIp) GetIp() string
GetIp returns the Ip field.
func (*AppDedicatedIp) GetStatus ¶ added in v1.109.0
func (a *AppDedicatedIp) GetStatus() AppDedicatedIpStatus
GetStatus returns the Status field.
type AppDedicatedIpStatus ¶ added in v1.109.0
type AppDedicatedIpStatus string
AppDedicatedIpStatus the model 'AppDedicatedIpStatus'
const ( APPDEDICATEDIPSTATUS_Unknown AppDedicatedIpStatus = "UNKNOWN" APPDEDICATEDIPSTATUS_Assigning AppDedicatedIpStatus = "ASSIGNING" APPDEDICATEDIPSTATUS_Assigned AppDedicatedIpStatus = "ASSIGNED" APPDEDICATEDIPSTATUS_Removed AppDedicatedIpStatus = "REMOVED" )
List of AppDedicatedIPStatus
type AppDockerBuildableComponentSpec ¶ added in v1.85.0
type AppDockerBuildableComponentSpec interface { AppBuildableComponentSpec GetDockerfilePath() string }
AppDockerBuildableComponentSpec is a component that is buildable from source using Docker.
type AppDomain ¶ added in v1.56.0
type AppDomain struct { ID string `json:"id,omitempty"` Spec *AppDomainSpec `json:"spec,omitempty"` Phase AppDomainPhase `json:"phase,omitempty"` Progress *AppDomainProgress `json:"progress,omitempty"` Validation *AppDomainValidation `json:"validation,omitempty"` Validations []*AppDomainValidation `json:"validations,omitempty"` RotateValidationRecords bool `json:"rotate_validation_records,omitempty"` CertificateExpiresAt time.Time `json:"certificate_expires_at,omitempty"` }
AppDomain struct for AppDomain
func (*AppDomain) GetCertificateExpiresAt ¶ added in v1.85.0
GetCertificateExpiresAt returns the CertificateExpiresAt field.
func (*AppDomain) GetPhase ¶ added in v1.85.0
func (a *AppDomain) GetPhase() AppDomainPhase
GetPhase returns the Phase field.
func (*AppDomain) GetProgress ¶ added in v1.85.0
func (a *AppDomain) GetProgress() *AppDomainProgress
GetProgress returns the Progress field.
func (*AppDomain) GetRotateValidationRecords ¶ added in v1.85.0
GetRotateValidationRecords returns the RotateValidationRecords field.
func (*AppDomain) GetSpec ¶ added in v1.85.0
func (a *AppDomain) GetSpec() *AppDomainSpec
GetSpec returns the Spec field.
func (*AppDomain) GetValidation ¶ added in v1.85.0
func (a *AppDomain) GetValidation() *AppDomainValidation
GetValidation returns the Validation field.
func (*AppDomain) GetValidations ¶ added in v1.85.0
func (a *AppDomain) GetValidations() []*AppDomainValidation
GetValidations returns the Validations field.
type AppDomainPhase ¶ added in v1.56.0
type AppDomainPhase string
AppDomainPhase the model 'AppDomainPhase'
const ( AppJobSpecKindPHASE_Unknown AppDomainPhase = "UNKNOWN" AppJobSpecKindPHASE_Pending AppDomainPhase = "PENDING" AppJobSpecKindPHASE_Configuring AppDomainPhase = "CONFIGURING" AppJobSpecKindPHASE_Active AppDomainPhase = "ACTIVE" AppJobSpecKindPHASE_Error AppDomainPhase = "ERROR" )
List of AppDomainPhase
type AppDomainProgress ¶ added in v1.56.0
type AppDomainProgress struct {
Steps []*AppDomainProgressStep `json:"steps,omitempty"`
}
AppDomainProgress struct for AppDomainProgress
func (*AppDomainProgress) GetSteps ¶ added in v1.85.0
func (a *AppDomainProgress) GetSteps() []*AppDomainProgressStep
GetSteps returns the Steps field.
type AppDomainProgressStep ¶ added in v1.56.0
type AppDomainProgressStep struct { Name string `json:"name,omitempty"` Status AppDomainProgressStepStatus `json:"status,omitempty"` Steps []*AppDomainProgressStep `json:"steps,omitempty"` StartedAt time.Time `json:"started_at,omitempty"` EndedAt time.Time `json:"ended_at,omitempty"` Reason *AppDomainProgressStepReason `json:"reason,omitempty"` }
AppDomainProgressStep struct for AppDomainProgressStep
func (*AppDomainProgressStep) GetEndedAt ¶ added in v1.85.0
func (a *AppDomainProgressStep) GetEndedAt() time.Time
GetEndedAt returns the EndedAt field.
func (*AppDomainProgressStep) GetName ¶ added in v1.85.0
func (a *AppDomainProgressStep) GetName() string
GetName returns the Name field.
func (*AppDomainProgressStep) GetReason ¶ added in v1.85.0
func (a *AppDomainProgressStep) GetReason() *AppDomainProgressStepReason
GetReason returns the Reason field.
func (*AppDomainProgressStep) GetStartedAt ¶ added in v1.85.0
func (a *AppDomainProgressStep) GetStartedAt() time.Time
GetStartedAt returns the StartedAt field.
func (*AppDomainProgressStep) GetStatus ¶ added in v1.85.0
func (a *AppDomainProgressStep) GetStatus() AppDomainProgressStepStatus
GetStatus returns the Status field.
func (*AppDomainProgressStep) GetSteps ¶ added in v1.85.0
func (a *AppDomainProgressStep) GetSteps() []*AppDomainProgressStep
GetSteps returns the Steps field.
type AppDomainProgressStepReason ¶ added in v1.56.0
type AppDomainProgressStepReason struct { Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` }
AppDomainProgressStepReason struct for AppDomainProgressStepReason
func (*AppDomainProgressStepReason) GetCode ¶ added in v1.85.0
func (a *AppDomainProgressStepReason) GetCode() string
GetCode returns the Code field.
func (*AppDomainProgressStepReason) GetMessage ¶ added in v1.85.0
func (a *AppDomainProgressStepReason) GetMessage() string
GetMessage returns the Message field.
type AppDomainProgressStepStatus ¶ added in v1.56.0
type AppDomainProgressStepStatus string
AppDomainProgressStepStatus the model 'AppDomainProgressStepStatus'
const ( AppJobSpecKindProgressStepStatus_Unknown AppDomainProgressStepStatus = "UNKNOWN" AppJobSpecKindProgressStepStatus_Pending AppDomainProgressStepStatus = "PENDING" AppJobSpecKindProgressStepStatus_Running AppDomainProgressStepStatus = "RUNNING" AppJobSpecKindProgressStepStatus_Error AppDomainProgressStepStatus = "ERROR" AppJobSpecKindProgressStepStatus_Success AppDomainProgressStepStatus = "SUCCESS" )
List of AppDomainProgressStepStatus
type AppDomainSpec ¶ added in v1.39.0
type AppDomainSpec struct { Domain string `json:"domain"` Type AppDomainSpecType `json:"type,omitempty"` Wildcard bool `json:"wildcard,omitempty"` // Optional. If the domain uses DigitalOcean DNS and you would like App Platform to automatically manage it for you, set this to the name of the domain on your account. For example, If the domain you are adding is `app.domain.com`, the zone could be `domain.com`. Zone string `json:"zone,omitempty"` Certificate string `json:"certificate,omitempty"` // Optional. The minimum version of TLS a client application can use to access resources for the domain. Must be one of the following values wrapped within quotations: `\"1.2\"` or `\"1.3\"`. MinimumTLSVersion string `json:"minimum_tls_version,omitempty"` }
AppDomainSpec struct for AppDomainSpec
func (*AppDomainSpec) GetCertificate ¶ added in v1.85.0
func (a *AppDomainSpec) GetCertificate() string
GetCertificate returns the Certificate field.
func (*AppDomainSpec) GetDomain ¶ added in v1.85.0
func (a *AppDomainSpec) GetDomain() string
GetDomain returns the Domain field.
func (*AppDomainSpec) GetMinimumTLSVersion ¶ added in v1.85.0
func (a *AppDomainSpec) GetMinimumTLSVersion() string
GetMinimumTLSVersion returns the MinimumTLSVersion field.
func (*AppDomainSpec) GetType ¶ added in v1.85.0
func (a *AppDomainSpec) GetType() AppDomainSpecType
GetType returns the Type field.
func (*AppDomainSpec) GetWildcard ¶ added in v1.85.0
func (a *AppDomainSpec) GetWildcard() bool
GetWildcard returns the Wildcard field.
func (*AppDomainSpec) GetZone ¶ added in v1.85.0
func (a *AppDomainSpec) GetZone() string
GetZone returns the Zone field.
type AppDomainSpecType ¶ added in v1.43.0
type AppDomainSpecType string
AppDomainSpecType the model 'AppDomainSpecType'
const ( AppDomainSpecType_Unspecified AppDomainSpecType = "UNSPECIFIED" AppDomainSpecType_Default AppDomainSpecType = "DEFAULT" AppDomainSpecType_Primary AppDomainSpecType = "PRIMARY" AppDomainSpecType_Alias AppDomainSpecType = "ALIAS" )
List of AppDomainSpecType
type AppDomainValidation ¶ added in v1.75.0
type AppDomainValidation struct { TXTName string `json:"txt_name,omitempty"` TXTValue string `json:"txt_value,omitempty"` }
AppDomainValidation struct for AppDomainValidation
func (*AppDomainValidation) GetTXTName ¶ added in v1.85.0
func (a *AppDomainValidation) GetTXTName() string
GetTXTName returns the TXTName field.
func (*AppDomainValidation) GetTXTValue ¶ added in v1.85.0
func (a *AppDomainValidation) GetTXTValue() string
GetTXTValue returns the TXTValue field.
type AppEgressSpec ¶ added in v1.107.0
type AppEgressSpec struct {
Type AppEgressSpecType `json:"type,omitempty"`
}
AppEgressSpec Specification for app egress configurations.
func (*AppEgressSpec) GetType ¶ added in v1.107.0
func (a *AppEgressSpec) GetType() AppEgressSpecType
GetType returns the Type field.
type AppEgressSpecType ¶ added in v1.107.0
type AppEgressSpecType string
AppEgressSpecType the model 'AppEgressSpecType'
const ( APPEGRESSSPECTYPE_Autoassign AppEgressSpecType = "AUTOASSIGN" APPEGRESSSPECTYPE_DedicatedIp AppEgressSpecType = "DEDICATED_IP" )
List of AppEgressSpecType
type AppExec ¶ added in v1.130.0
type AppExec struct {
URL string `json:"url"`
}
AppExec represents the websocket URL used for sending/receiving console input and output.
type AppFunctionsSpec ¶ added in v1.74.0
type AppFunctionsSpec struct { // The name. Must be unique across all components within the same app. Name string `json:"name"` Git *GitSourceSpec `json:"git,omitempty"` GitHub *GitHubSourceSpec `json:"github,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` // An optional path to the working directory to use for the build. Must be relative to the root of the repo. SourceDir string `json:"source_dir,omitempty"` // A list of environment variables made available to the component. Envs []*AppVariableDefinition `json:"envs,omitempty"` // (Deprecated) A list of HTTP routes that should be routed to this component. Routes []*AppRouteSpec `json:"routes,omitempty"` // A list of configured alerts the user has enabled. Alerts []*AppAlertSpec `json:"alerts,omitempty"` // A list of configured log forwarding destinations. LogDestinations []*AppLogDestinationSpec `json:"log_destinations,omitempty"` CORS *AppCORSPolicy `json:"cors,omitempty"` }
AppFunctionsSpec struct for AppFunctionsSpec
func (*AppFunctionsSpec) GetAlerts ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetAlerts() []*AppAlertSpec
GetAlerts returns the Alerts field.
func (*AppFunctionsSpec) GetBitbucket ¶ added in v1.132.0
func (a *AppFunctionsSpec) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*AppFunctionsSpec) GetCORS ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetCORS() *AppCORSPolicy
GetCORS returns the CORS field.
func (*AppFunctionsSpec) GetEnvs ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetEnvs() []*AppVariableDefinition
GetEnvs returns the Envs field.
func (*AppFunctionsSpec) GetGit ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetGit() *GitSourceSpec
GetGit returns the Git field.
func (*AppFunctionsSpec) GetGitHub ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*AppFunctionsSpec) GetGitLab ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*AppFunctionsSpec) GetLogDestinations ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetLogDestinations() []*AppLogDestinationSpec
GetLogDestinations returns the LogDestinations field.
func (*AppFunctionsSpec) GetName ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetName() string
GetName returns the Name field.
func (*AppFunctionsSpec) GetRoutes ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetRoutes() []*AppRouteSpec
GetRoutes returns the Routes field.
func (*AppFunctionsSpec) GetSourceDir ¶ added in v1.85.0
func (a *AppFunctionsSpec) GetSourceDir() string
GetSourceDir returns the SourceDir field.
func (*AppFunctionsSpec) GetType ¶ added in v1.85.0
func (s *AppFunctionsSpec) GetType() AppComponentType
GetType returns the Functions component type.
type AppIngressSpec ¶ added in v1.77.0
type AppIngressSpec struct { LoadBalancer AppIngressSpecLoadBalancer `json:"load_balancer,omitempty"` LoadBalancerSize int64 `json:"load_balancer_size,omitempty"` // Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects. Rules []*AppIngressSpecRule `json:"rules,omitempty"` }
AppIngressSpec Specification for app ingress configurations.
func (*AppIngressSpec) GetLoadBalancer ¶ added in v1.85.0
func (a *AppIngressSpec) GetLoadBalancer() AppIngressSpecLoadBalancer
GetLoadBalancer returns the LoadBalancer field.
func (*AppIngressSpec) GetLoadBalancerSize ¶ added in v1.85.0
func (a *AppIngressSpec) GetLoadBalancerSize() int64
GetLoadBalancerSize returns the LoadBalancerSize field.
func (*AppIngressSpec) GetRules ¶ added in v1.98.0
func (a *AppIngressSpec) GetRules() []*AppIngressSpecRule
GetRules returns the Rules field.
type AppIngressSpecLoadBalancer ¶ added in v1.77.0
type AppIngressSpecLoadBalancer string
AppIngressSpecLoadBalancer the model 'AppIngressSpecLoadBalancer'
const ( AppIngressSpecLoadBalancer_Unknown AppIngressSpecLoadBalancer = "UNKNOWN" AppIngressSpecLoadBalancer_DigitalOcean AppIngressSpecLoadBalancer = "DIGITALOCEAN" )
List of AppIngressSpecLoadBalancer
type AppIngressSpecRule ¶ added in v1.98.0
type AppIngressSpecRule struct { Match *AppIngressSpecRuleMatch `json:"match,omitempty"` Component *AppIngressSpecRuleRoutingComponent `json:"component,omitempty"` Redirect *AppIngressSpecRuleRoutingRedirect `json:"redirect,omitempty"` CORS *AppCORSPolicy `json:"cors,omitempty"` }
AppIngressSpecRule A rule that configures component routes, rewrites, redirects and cors.
func (*AppIngressSpecRule) GetCORS ¶ added in v1.98.0
func (a *AppIngressSpecRule) GetCORS() *AppCORSPolicy
GetCORS returns the CORS field.
func (*AppIngressSpecRule) GetComponent ¶ added in v1.98.0
func (a *AppIngressSpecRule) GetComponent() *AppIngressSpecRuleRoutingComponent
GetComponent returns the Component field.
func (*AppIngressSpecRule) GetMatch ¶ added in v1.98.0
func (a *AppIngressSpecRule) GetMatch() *AppIngressSpecRuleMatch
GetMatch returns the Match field.
func (*AppIngressSpecRule) GetRedirect ¶ added in v1.98.0
func (a *AppIngressSpecRule) GetRedirect() *AppIngressSpecRuleRoutingRedirect
GetRedirect returns the Redirect field.
type AppIngressSpecRuleMatch ¶ added in v1.98.0
type AppIngressSpecRuleMatch struct {
Path *AppIngressSpecRuleStringMatch `json:"path,omitempty"`
}
AppIngressSpecRuleMatch The match configuration for a rule.
func (*AppIngressSpecRuleMatch) GetPath ¶ added in v1.98.0
func (a *AppIngressSpecRuleMatch) GetPath() *AppIngressSpecRuleStringMatch
GetPath returns the Path field.
type AppIngressSpecRuleRoutingComponent ¶ added in v1.98.0
type AppIngressSpecRuleRoutingComponent struct { // The name of the component to route to. Name string `json:"name,omitempty"` // An optional flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. For example, a component with `path=/api` will have requests to `/api/list` trimmed to `/list`. If this value is `true`, the path will remain `/api/list`. Note: this is not applicable for Functions Components and is mutually exclusive with `rewrite`. PreservePathPrefix bool `json:"preserve_path_prefix,omitempty"` // An optional field that will rewrite the path of the component to be what is specified here. By default, the HTTP request path will be trimmed from the left when forwarded to the component. For example, a component with `path=/api` will have requests to `/api/list` trimmed to `/list`. If you specified the rewrite to be `/v1/`, requests to `/api/list` would be rewritten to `/v1/list`. Note: this is mutually exclusive with `preserve_path_prefix`. Rewrite string `json:"rewrite,omitempty"` }
AppIngressSpecRuleRoutingComponent The component routing configuration.
func (*AppIngressSpecRuleRoutingComponent) GetName ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingComponent) GetName() string
GetName returns the Name field.
func (*AppIngressSpecRuleRoutingComponent) GetPreservePathPrefix ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingComponent) GetPreservePathPrefix() bool
GetPreservePathPrefix returns the PreservePathPrefix field.
func (*AppIngressSpecRuleRoutingComponent) GetRewrite ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingComponent) GetRewrite() string
GetRewrite returns the Rewrite field.
type AppIngressSpecRuleRoutingRedirect ¶ added in v1.98.0
type AppIngressSpecRuleRoutingRedirect struct { // An optional URI path to redirect to. Note: if this is specified the whole URI of the original request will be overwritten to this value, irrespective of the original request URI being matched. Uri string `json:"uri,omitempty"` // The authority/host to redirect to. This can be a hostname or IP address. Note: use `port` to set the port. Authority string `json:"authority,omitempty"` // The port to redirect to. Port int64 `json:"port,omitempty"` // The scheme to redirect to. Supported values are `http` or `https`. Default: `https`. Scheme string `json:"scheme,omitempty"` // The redirect code to use. Defaults to `302`. Supported values are 300, 301, 302, 303, 304, 307, 308. RedirectCode int64 `json:"redirect_code,omitempty"` }
AppIngressSpecRuleRoutingRedirect The redirect routing configuration.
func (*AppIngressSpecRuleRoutingRedirect) GetAuthority ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingRedirect) GetAuthority() string
GetAuthority returns the Authority field.
func (*AppIngressSpecRuleRoutingRedirect) GetPort ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingRedirect) GetPort() int64
GetPort returns the Port field.
func (*AppIngressSpecRuleRoutingRedirect) GetRedirectCode ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingRedirect) GetRedirectCode() int64
GetRedirectCode returns the RedirectCode field.
func (*AppIngressSpecRuleRoutingRedirect) GetScheme ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingRedirect) GetScheme() string
GetScheme returns the Scheme field.
func (*AppIngressSpecRuleRoutingRedirect) GetUri ¶ added in v1.98.0
func (a *AppIngressSpecRuleRoutingRedirect) GetUri() string
GetUri returns the Uri field.
type AppIngressSpecRuleStringMatch ¶ added in v1.98.0
type AppIngressSpecRuleStringMatch struct { // Prefix-based match. For example, `/api` will match `/api`, `/api/`, and any nested paths such as `/api/v1/endpoint`. Prefix string `json:"prefix,omitempty"` }
AppIngressSpecRuleStringMatch The string match configuration.
func (*AppIngressSpecRuleStringMatch) GetPrefix ¶ added in v1.98.0
func (a *AppIngressSpecRuleStringMatch) GetPrefix() string
GetPrefix returns the Prefix field.
type AppInstanceSize ¶ added in v1.48.0
type AppInstanceSize struct { Name string `json:"name,omitempty"` Slug string `json:"slug,omitempty"` CPUType AppInstanceSizeCPUType `json:"cpu_type,omitempty"` CPUs string `json:"cpus,omitempty"` MemoryBytes string `json:"memory_bytes,omitempty"` USDPerMonth string `json:"usd_per_month,omitempty"` USDPerSecond string `json:"usd_per_second,omitempty"` TierSlug string `json:"tier_slug,omitempty"` // (Deprecated) The slug of the corresponding upgradable instance size on the higher tier. TierUpgradeTo string `json:"tier_upgrade_to,omitempty"` // (Deprecated) The slug of the corresponding downgradable instance size on the lower tier. TierDowngradeTo string `json:"tier_downgrade_to,omitempty"` // Indicates if the tier instance size can enable autoscaling. Scalable bool `json:"scalable,omitempty"` // (Deprecated) Indicates if the tier instance size is in feature preview state. FeaturePreview bool `json:"feature_preview,omitempty"` // Indicates if the tier instance size allows more than one instance. SingleInstanceOnly bool `json:"single_instance_only,omitempty"` // Indicates if the tier instance size is intended for deprecation. DeprecationIntent bool `json:"deprecation_intent,omitempty"` // The bandwidth allowance in GiB for the tier instance size. BandwidthAllowanceGib string `json:"bandwidth_allowance_gib,omitempty"` }
AppInstanceSize struct for AppInstanceSize
func (*AppInstanceSize) GetBandwidthAllowanceGib ¶ added in v1.110.0
func (a *AppInstanceSize) GetBandwidthAllowanceGib() string
GetBandwidthAllowanceGib returns the BandwidthAllowanceGib field.
func (*AppInstanceSize) GetCPUType ¶ added in v1.85.0
func (a *AppInstanceSize) GetCPUType() AppInstanceSizeCPUType
GetCPUType returns the CPUType field.
func (*AppInstanceSize) GetCPUs ¶ added in v1.85.0
func (a *AppInstanceSize) GetCPUs() string
GetCPUs returns the CPUs field.
func (*AppInstanceSize) GetDeprecationIntent ¶ added in v1.110.0
func (a *AppInstanceSize) GetDeprecationIntent() bool
GetDeprecationIntent returns the DeprecationIntent field.
func (*AppInstanceSize) GetFeaturePreview ¶ added in v1.109.0
func (a *AppInstanceSize) GetFeaturePreview() bool
GetFeaturePreview returns the FeaturePreview field.
func (*AppInstanceSize) GetMemoryBytes ¶ added in v1.85.0
func (a *AppInstanceSize) GetMemoryBytes() string
GetMemoryBytes returns the MemoryBytes field.
func (*AppInstanceSize) GetName ¶ added in v1.85.0
func (a *AppInstanceSize) GetName() string
GetName returns the Name field.
func (*AppInstanceSize) GetScalable ¶ added in v1.109.0
func (a *AppInstanceSize) GetScalable() bool
GetScalable returns the Scalable field.
func (*AppInstanceSize) GetSingleInstanceOnly ¶ added in v1.109.0
func (a *AppInstanceSize) GetSingleInstanceOnly() bool
GetSingleInstanceOnly returns the SingleInstanceOnly field.
func (*AppInstanceSize) GetSlug ¶ added in v1.85.0
func (a *AppInstanceSize) GetSlug() string
GetSlug returns the Slug field.
func (*AppInstanceSize) GetTierDowngradeTo ¶ added in v1.85.0
func (a *AppInstanceSize) GetTierDowngradeTo() string
GetTierDowngradeTo returns the TierDowngradeTo field.
func (*AppInstanceSize) GetTierSlug ¶ added in v1.85.0
func (a *AppInstanceSize) GetTierSlug() string
GetTierSlug returns the TierSlug field.
func (*AppInstanceSize) GetTierUpgradeTo ¶ added in v1.85.0
func (a *AppInstanceSize) GetTierUpgradeTo() string
GetTierUpgradeTo returns the TierUpgradeTo field.
func (*AppInstanceSize) GetUSDPerMonth ¶ added in v1.85.0
func (a *AppInstanceSize) GetUSDPerMonth() string
GetUSDPerMonth returns the USDPerMonth field.
func (*AppInstanceSize) GetUSDPerSecond ¶ added in v1.85.0
func (a *AppInstanceSize) GetUSDPerSecond() string
GetUSDPerSecond returns the USDPerSecond field.
type AppInstanceSizeCPUType ¶ added in v1.48.0
type AppInstanceSizeCPUType string
AppInstanceSizeCPUType the model 'AppInstanceSizeCPUType'
const ( AppInstanceSizeCPUType_Unspecified AppInstanceSizeCPUType = "UNSPECIFIED" AppInstanceSizeCPUType_Dedicated AppInstanceSizeCPUType = "DEDICATED" )
List of AppInstanceSizeCPUType
type AppJobSpec ¶ added in v1.43.0
type AppJobSpec struct { // The name. Must be unique across all components within the same app. Name string `json:"name"` Git *GitSourceSpec `json:"git,omitempty"` GitHub *GitHubSourceSpec `json:"github,omitempty"` Image *ImageSourceSpec `json:"image,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` // The path to the Dockerfile relative to the root of the repo. If set, it will be used to build this component. Otherwise, App Platform will attempt to build it using buildpacks. DockerfilePath string `json:"dockerfile_path,omitempty"` // An optional build command to run while building this component from source. BuildCommand string `json:"build_command,omitempty"` // An optional run command to override the component's default. RunCommand string `json:"run_command,omitempty"` // An optional path to the working directory to use for the build. For Dockerfile builds, this will be used as the build context. Must be relative to the root of the repo. SourceDir string `json:"source_dir,omitempty"` // An environment slug describing the type of this app. For a full list, please refer to [the product documentation](https://www.digitalocean.com/docs/app-platform/). EnvironmentSlug string `json:"environment_slug,omitempty"` // A list of environment variables made available to the component. Envs []*AppVariableDefinition `json:"envs,omitempty"` // The instance size to use for this component. InstanceSizeSlug string `json:"instance_size_slug,omitempty"` InstanceCount int64 `json:"instance_count,omitempty"` Kind AppJobSpecKind `json:"kind,omitempty"` // A list of configured alerts which apply to the component. Alerts []*AppAlertSpec `json:"alerts,omitempty"` // A list of configured log forwarding destinations. LogDestinations []*AppLogDestinationSpec `json:"log_destinations,omitempty"` Termination *AppJobSpecTermination `json:"termination,omitempty"` }
AppJobSpec struct for AppJobSpec
func (*AppJobSpec) GetAlerts ¶ added in v1.85.0
func (a *AppJobSpec) GetAlerts() []*AppAlertSpec
GetAlerts returns the Alerts field.
func (*AppJobSpec) GetBitbucket ¶ added in v1.132.0
func (a *AppJobSpec) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*AppJobSpec) GetBuildCommand ¶ added in v1.85.0
func (a *AppJobSpec) GetBuildCommand() string
GetBuildCommand returns the BuildCommand field.
func (*AppJobSpec) GetDockerfilePath ¶ added in v1.85.0
func (a *AppJobSpec) GetDockerfilePath() string
GetDockerfilePath returns the DockerfilePath field.
func (*AppJobSpec) GetEnvironmentSlug ¶ added in v1.98.0
func (a *AppJobSpec) GetEnvironmentSlug() string
GetEnvironmentSlug returns the EnvironmentSlug field.
func (*AppJobSpec) GetEnvs ¶ added in v1.85.0
func (a *AppJobSpec) GetEnvs() []*AppVariableDefinition
GetEnvs returns the Envs field.
func (*AppJobSpec) GetGit ¶ added in v1.85.0
func (a *AppJobSpec) GetGit() *GitSourceSpec
GetGit returns the Git field.
func (*AppJobSpec) GetGitHub ¶ added in v1.85.0
func (a *AppJobSpec) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*AppJobSpec) GetGitLab ¶ added in v1.85.0
func (a *AppJobSpec) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*AppJobSpec) GetImage ¶ added in v1.85.0
func (a *AppJobSpec) GetImage() *ImageSourceSpec
GetImage returns the Image field.
func (*AppJobSpec) GetInstanceCount ¶ added in v1.85.0
func (a *AppJobSpec) GetInstanceCount() int64
GetInstanceCount returns the InstanceCount field.
func (*AppJobSpec) GetInstanceSizeSlug ¶ added in v1.85.0
func (a *AppJobSpec) GetInstanceSizeSlug() string
GetInstanceSizeSlug returns the InstanceSizeSlug field.
func (*AppJobSpec) GetKind ¶ added in v1.85.0
func (a *AppJobSpec) GetKind() AppJobSpecKind
GetKind returns the Kind field.
func (*AppJobSpec) GetLogDestinations ¶ added in v1.85.0
func (a *AppJobSpec) GetLogDestinations() []*AppLogDestinationSpec
GetLogDestinations returns the LogDestinations field.
func (*AppJobSpec) GetName ¶ added in v1.85.0
func (a *AppJobSpec) GetName() string
GetName returns the Name field.
func (*AppJobSpec) GetRunCommand ¶ added in v1.85.0
func (a *AppJobSpec) GetRunCommand() string
GetRunCommand returns the RunCommand field.
func (*AppJobSpec) GetSourceDir ¶ added in v1.85.0
func (a *AppJobSpec) GetSourceDir() string
GetSourceDir returns the SourceDir field.
func (*AppJobSpec) GetTermination ¶ added in v1.114.0
func (a *AppJobSpec) GetTermination() *AppJobSpecTermination
GetTermination returns the Termination field.
func (*AppJobSpec) GetType ¶ added in v1.85.0
func (s *AppJobSpec) GetType() AppComponentType
GetType returns the Job component type.
type AppJobSpecKind ¶ added in v1.48.0
type AppJobSpecKind string
AppJobSpecKind - UNSPECIFIED: Default job type, will auto-complete to POST_DEPLOY kind. - PRE_DEPLOY: Indicates a job that runs before an app deployment. - POST_DEPLOY: Indicates a job that runs after an app deployment. - FAILED_DEPLOY: Indicates a job that runs after a component fails to deploy.
const ( AppJobSpecKind_Unspecified AppJobSpecKind = "UNSPECIFIED" AppJobSpecKind_PreDeploy AppJobSpecKind = "PRE_DEPLOY" AppJobSpecKind_PostDeploy AppJobSpecKind = "POST_DEPLOY" AppJobSpecKind_FailedDeploy AppJobSpecKind = "FAILED_DEPLOY" )
List of AppJobSpecKind
type AppJobSpecTermination ¶ added in v1.114.0
type AppJobSpecTermination struct { // The number of seconds to wait between sending a TERM signal to a container and issuing a KILL which causes immediate shutdown. Default: 120, Minimum 1, Maximum 600. GracePeriodSeconds int32 `json:"grace_period_seconds,omitempty"` }
AppJobSpecTermination struct for AppJobSpecTermination
func (*AppJobSpecTermination) GetGracePeriodSeconds ¶ added in v1.114.0
func (a *AppJobSpecTermination) GetGracePeriodSeconds() int32
GetGracePeriodSeconds returns the GracePeriodSeconds field.
type AppLogDestinationSpec ¶ added in v1.71.0
type AppLogDestinationSpec struct { // Name of the log destination. Name string `json:"name"` Papertrail *AppLogDestinationSpecPapertrail `json:"papertrail,omitempty"` Datadog *AppLogDestinationSpecDataDog `json:"datadog,omitempty"` Logtail *AppLogDestinationSpecLogtail `json:"logtail,omitempty"` OpenSearch *AppLogDestinationSpecOpenSearch `json:"open_search,omitempty"` Endpoint string `json:"endpoint,omitempty"` TLSInsecure bool `json:"tls_insecure,omitempty"` Headers []*AppLogDestinationSpecHeader `json:"headers,omitempty"` }
AppLogDestinationSpec struct for AppLogDestinationSpec
func (*AppLogDestinationSpec) GetDatadog ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetDatadog() *AppLogDestinationSpecDataDog
GetDatadog returns the Datadog field.
func (*AppLogDestinationSpec) GetEndpoint ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetEndpoint() string
GetEndpoint returns the Endpoint field.
func (*AppLogDestinationSpec) GetHeaders ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetHeaders() []*AppLogDestinationSpecHeader
GetHeaders returns the Headers field.
func (*AppLogDestinationSpec) GetLogtail ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetLogtail() *AppLogDestinationSpecLogtail
GetLogtail returns the Logtail field.
func (*AppLogDestinationSpec) GetName ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetName() string
GetName returns the Name field.
func (*AppLogDestinationSpec) GetOpenSearch ¶ added in v1.117.0
func (a *AppLogDestinationSpec) GetOpenSearch() *AppLogDestinationSpecOpenSearch
GetOpenSearch returns the OpenSearch field.
func (*AppLogDestinationSpec) GetPapertrail ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetPapertrail() *AppLogDestinationSpecPapertrail
GetPapertrail returns the Papertrail field.
func (*AppLogDestinationSpec) GetTLSInsecure ¶ added in v1.85.0
func (a *AppLogDestinationSpec) GetTLSInsecure() bool
GetTLSInsecure returns the TLSInsecure field.
type AppLogDestinationSpecDataDog ¶ added in v1.71.0
type AppLogDestinationSpecDataDog struct { // Datadog HTTP log intake endpoint. Endpoint string `json:"endpoint,omitempty"` // Datadog API key. ApiKey string `json:"api_key"` }
AppLogDestinationSpecDataDog DataDog configuration.
func (*AppLogDestinationSpecDataDog) GetApiKey ¶ added in v1.85.0
func (a *AppLogDestinationSpecDataDog) GetApiKey() string
GetApiKey returns the ApiKey field.
func (*AppLogDestinationSpecDataDog) GetEndpoint ¶ added in v1.85.0
func (a *AppLogDestinationSpecDataDog) GetEndpoint() string
GetEndpoint returns the Endpoint field.
type AppLogDestinationSpecHeader ¶ added in v1.75.0
type AppLogDestinationSpecHeader struct { // The name Key string `json:"key"` // The header value. Value string `json:"value,omitempty"` }
AppLogDestinationSpecHeader struct for AppLogDestinationSpecHeader
func (*AppLogDestinationSpecHeader) GetKey ¶ added in v1.85.0
func (a *AppLogDestinationSpecHeader) GetKey() string
GetKey returns the Key field.
func (*AppLogDestinationSpecHeader) GetValue ¶ added in v1.85.0
func (a *AppLogDestinationSpecHeader) GetValue() string
GetValue returns the Value field.
type AppLogDestinationSpecLogtail ¶ added in v1.71.0
type AppLogDestinationSpecLogtail struct { // Logtail token. Token string `json:"token"` }
AppLogDestinationSpecLogtail Logtail configuration.
func (*AppLogDestinationSpecLogtail) GetToken ¶ added in v1.85.0
func (a *AppLogDestinationSpecLogtail) GetToken() string
GetToken returns the Token field.
type AppLogDestinationSpecOpenSearch ¶ added in v1.117.0
type AppLogDestinationSpecOpenSearch struct { // OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>. Cannot be specified if `cluster_name` is also specified. Endpoint string `json:"endpoint,omitempty"` BasicAuth *OpenSearchBasicAuth `json:"basic_auth,omitempty"` // The index name to use for the logs. If not set, the default index name is \"logs\". IndexName string `json:"index_name,omitempty"` // The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if `endpoint` is also specified. ClusterName string `json:"cluster_name,omitempty"` }
AppLogDestinationSpecOpenSearch OpenSearch configuration.
func (*AppLogDestinationSpecOpenSearch) GetBasicAuth ¶ added in v1.117.0
func (a *AppLogDestinationSpecOpenSearch) GetBasicAuth() *OpenSearchBasicAuth
GetBasicAuth returns the BasicAuth field.
func (*AppLogDestinationSpecOpenSearch) GetClusterName ¶ added in v1.119.0
func (a *AppLogDestinationSpecOpenSearch) GetClusterName() string
GetClusterName returns the ClusterName field.
func (*AppLogDestinationSpecOpenSearch) GetEndpoint ¶ added in v1.117.0
func (a *AppLogDestinationSpecOpenSearch) GetEndpoint() string
GetEndpoint returns the Endpoint field.
func (*AppLogDestinationSpecOpenSearch) GetIndexName ¶ added in v1.117.0
func (a *AppLogDestinationSpecOpenSearch) GetIndexName() string
GetIndexName returns the IndexName field.
type AppLogDestinationSpecPapertrail ¶ added in v1.71.0
type AppLogDestinationSpecPapertrail struct { // Papertrail syslog endpoint. Endpoint string `json:"endpoint"` }
AppLogDestinationSpecPapertrail Papertrail configuration.
func (*AppLogDestinationSpecPapertrail) GetEndpoint ¶ added in v1.85.0
func (a *AppLogDestinationSpecPapertrail) GetEndpoint() string
GetEndpoint returns the Endpoint field.
type AppLogType ¶ added in v1.39.0
type AppLogType string
AppLogType is the type of app logs.
const ( // AppLogTypeBuild represents build logs. AppLogTypeBuild AppLogType = "BUILD" // AppLogTypeDeploy represents deploy logs. AppLogTypeDeploy AppLogType = "DEPLOY" // AppLogTypeRun represents run logs. AppLogTypeRun AppLogType = "RUN" // AppLogTypeRunRestarted represents logs of crashed/restarted instances during runtime. AppLogTypeRunRestarted AppLogType = "RUN_RESTARTED" )
type AppLogs ¶ added in v1.39.0
type AppLogs struct { LiveURL string `json:"live_url"` HistoricURLs []string `json:"historic_urls"` }
AppLogs represent app logs.
type AppMaintenanceSpec ¶ added in v1.128.0
type AppMaintenanceSpec struct { // Indicates whether maintenance mode should be enabled for the app. Enabled bool `json:"enabled,omitempty"` // Indicates whether the app should be archived. Setting this to true implies that enabled is set to true. Note that this feature is currently in closed beta. Archive bool `json:"archive,omitempty"` // A custom offline page to display when maintenance mode is enabled or the app is archived. OfflinePageURL string `json:"offline_page_url,omitempty"` }
AppMaintenanceSpec struct for AppMaintenanceSpec
func (*AppMaintenanceSpec) GetArchive ¶ added in v1.128.0
func (a *AppMaintenanceSpec) GetArchive() bool
GetArchive returns the Archive field.
func (*AppMaintenanceSpec) GetEnabled ¶ added in v1.128.0
func (a *AppMaintenanceSpec) GetEnabled() bool
GetEnabled returns the Enabled field.
func (*AppMaintenanceSpec) GetOfflinePageURL ¶ added in v1.135.0
func (a *AppMaintenanceSpec) GetOfflinePageURL() string
GetOfflinePageURL returns the OfflinePageURL field.
type AppProposeRequest ¶ added in v1.56.0
type AppProposeRequest struct { Spec *AppSpec `json:"spec"` // An optional ID of an existing app. If set, the spec will be treated as a proposed update to the specified app. The existing app is not modified using this method. AppID string `json:"app_id,omitempty"` }
AppProposeRequest struct for AppProposeRequest
func (*AppProposeRequest) GetAppID ¶ added in v1.85.0
func (a *AppProposeRequest) GetAppID() string
GetAppID returns the AppID field.
func (*AppProposeRequest) GetSpec ¶ added in v1.85.0
func (a *AppProposeRequest) GetSpec() *AppSpec
GetSpec returns the Spec field.
type AppProposeResponse ¶ added in v1.56.0
type AppProposeResponse struct { // Deprecated. Please use app_is_starter instead. AppIsStatic bool `json:"app_is_static,omitempty"` // Indicates whether the app name is available. AppNameAvailable bool `json:"app_name_available,omitempty"` // If the app name is unavailable, this will be set to a suggested available name. AppNameSuggestion string `json:"app_name_suggestion,omitempty"` // Deprecated. Please use existing_starter_apps instead. ExistingStaticApps string `json:"existing_static_apps,omitempty"` // Deprecated. Please use max_free_starter_apps instead. MaxFreeStaticApps string `json:"max_free_static_apps,omitempty"` Spec *AppSpec `json:"spec,omitempty"` // The monthly cost of the proposed app in USD. AppCost float32 `json:"app_cost,omitempty"` // (Deprecated) The monthly cost of the proposed app in USD using the next pricing plan tier. For example, if you propose an app that uses the Basic tier, the `app_tier_upgrade_cost` field displays the monthly cost of the app if it were to use the Professional tier. If the proposed app already uses the most expensive tier, the field is empty. AppTierUpgradeCost float32 `json:"app_tier_upgrade_cost,omitempty"` // (Deprecated) The monthly cost of the proposed app in USD using the previous pricing plan tier. For example, if you propose an app that uses the Professional tier, the `app_tier_downgrade_cost` field displays the monthly cost of the app if it were to use the Basic tier. If the proposed app already uses the lest expensive tier, the field is empty. AppTierDowngradeCost float32 `json:"app_tier_downgrade_cost,omitempty"` // The number of existing starter tier apps the account has. ExistingStarterApps string `json:"existing_starter_apps,omitempty"` // The maximum number of free starter apps the account can have. Any additional starter apps will be charged for. These include apps with only static sites, functions, and databases. MaxFreeStarterApps string `json:"max_free_starter_apps,omitempty"` // Indicates whether the app is a starter tier app. AppIsStarter bool `json:"app_is_starter,omitempty"` }
AppProposeResponse struct for AppProposeResponse
func (*AppProposeResponse) GetAppCost ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppCost() float32
GetAppCost returns the AppCost field.
func (*AppProposeResponse) GetAppIsStarter ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppIsStarter() bool
GetAppIsStarter returns the AppIsStarter field.
func (*AppProposeResponse) GetAppIsStatic ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppIsStatic() bool
GetAppIsStatic returns the AppIsStatic field.
func (*AppProposeResponse) GetAppNameAvailable ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppNameAvailable() bool
GetAppNameAvailable returns the AppNameAvailable field.
func (*AppProposeResponse) GetAppNameSuggestion ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppNameSuggestion() string
GetAppNameSuggestion returns the AppNameSuggestion field.
func (*AppProposeResponse) GetAppTierDowngradeCost ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppTierDowngradeCost() float32
GetAppTierDowngradeCost returns the AppTierDowngradeCost field.
func (*AppProposeResponse) GetAppTierUpgradeCost ¶ added in v1.85.0
func (a *AppProposeResponse) GetAppTierUpgradeCost() float32
GetAppTierUpgradeCost returns the AppTierUpgradeCost field.
func (*AppProposeResponse) GetExistingStarterApps ¶ added in v1.85.0
func (a *AppProposeResponse) GetExistingStarterApps() string
GetExistingStarterApps returns the ExistingStarterApps field.
func (*AppProposeResponse) GetExistingStaticApps ¶ added in v1.85.0
func (a *AppProposeResponse) GetExistingStaticApps() string
GetExistingStaticApps returns the ExistingStaticApps field.
func (*AppProposeResponse) GetMaxFreeStarterApps ¶ added in v1.85.0
func (a *AppProposeResponse) GetMaxFreeStarterApps() string
GetMaxFreeStarterApps returns the MaxFreeStarterApps field.
func (*AppProposeResponse) GetMaxFreeStaticApps ¶ added in v1.85.0
func (a *AppProposeResponse) GetMaxFreeStaticApps() string
GetMaxFreeStaticApps returns the MaxFreeStaticApps field.
func (*AppProposeResponse) GetSpec ¶ added in v1.85.0
func (a *AppProposeResponse) GetSpec() *AppSpec
GetSpec returns the Spec field.
type AppRegion ¶ added in v1.45.0
type AppRegion struct { Slug string `json:"slug,omitempty"` Label string `json:"label,omitempty"` Flag string `json:"flag,omitempty"` Continent string `json:"continent,omitempty"` Disabled bool `json:"disabled,omitempty"` DataCenters []string `json:"data_centers,omitempty"` Reason string `json:"reason,omitempty"` // Whether or not the region is presented as the default. Default bool `json:"default,omitempty"` }
AppRegion struct for AppRegion
func (*AppRegion) GetContinent ¶ added in v1.85.0
GetContinent returns the Continent field.
func (*AppRegion) GetDataCenters ¶ added in v1.85.0
GetDataCenters returns the DataCenters field.
func (*AppRegion) GetDefault ¶ added in v1.85.0
GetDefault returns the Default field.
func (*AppRegion) GetDisabled ¶ added in v1.85.0
GetDisabled returns the Disabled field.
type AppRestartRequest ¶ added in v1.131.0
type AppRestartRequest struct {
Components []string `json:"components"`
}
AppRestartRequest represents a request to restart an app.
type AppRoutableComponentSpec ¶ added in v1.85.0
type AppRoutableComponentSpec interface { AppComponentSpec GetRoutes() []*AppRouteSpec GetCORS() *AppCORSPolicy }
AppRoutableComponentSpec is a component that defines routes.
type AppRouteSpec ¶ added in v1.39.0
type AppRouteSpec struct { // (Deprecated) An HTTP path prefix. Paths must start with / and must be unique across all components within an app. Path string `json:"path,omitempty"` // (Deprecated) An optional flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. For example, a component with `path=/api` will have requests to `/api/list` trimmed to `/list`. If this value is `true`, the path will remain `/api/list`. Note: this is not applicable for Functions Components. PreservePathPrefix bool `json:"preserve_path_prefix,omitempty"` }
AppRouteSpec struct for AppRouteSpec
func (*AppRouteSpec) GetPath ¶ added in v1.85.0
func (a *AppRouteSpec) GetPath() string
GetPath returns the Path field.
func (*AppRouteSpec) GetPreservePathPrefix ¶ added in v1.85.0
func (a *AppRouteSpec) GetPreservePathPrefix() bool
GetPreservePathPrefix returns the PreservePathPrefix field.
type AppServiceSpec ¶ added in v1.39.0
type AppServiceSpec struct { // The name. Must be unique across all components within the same app. Name string `json:"name"` Git *GitSourceSpec `json:"git,omitempty"` GitHub *GitHubSourceSpec `json:"github,omitempty"` Image *ImageSourceSpec `json:"image,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` // The path to the Dockerfile relative to the root of the repo. If set, it will be used to build this component. Otherwise, App Platform will attempt to build it using buildpacks. DockerfilePath string `json:"dockerfile_path,omitempty"` // An optional build command to run while building this component from source. BuildCommand string `json:"build_command,omitempty"` // An optional run command to override the component's default. RunCommand string `json:"run_command,omitempty"` // An optional path to the working directory to use for the build. For Dockerfile builds, this will be used as the build context. Must be relative to the root of the repo. SourceDir string `json:"source_dir,omitempty"` // An environment slug describing the type of this app. For a full list, please refer to [the product documentation](https://www.digitalocean.com/docs/app-platform/). EnvironmentSlug string `json:"environment_slug,omitempty"` // A list of environment variables made available to the component. Envs []*AppVariableDefinition `json:"envs,omitempty"` InstanceSizeSlug string `json:"instance_size_slug,omitempty"` // The amount of instances that this component should be scaled to. InstanceCount int64 `json:"instance_count,omitempty"` Autoscaling *AppAutoscalingSpec `json:"autoscaling,omitempty"` // The internal port on which this service's run command will listen. Default: 8080 If there is not an environment variable with the name `PORT`, one will be automatically added with its value set to the value of this field. HTTPPort int64 `json:"http_port,omitempty"` Protocol ServingProtocol `json:"protocol,omitempty"` // (Deprecated) A list of HTTP routes that should be routed to this component. Routes []*AppRouteSpec `json:"routes,omitempty"` HealthCheck *AppServiceSpecHealthCheck `json:"health_check,omitempty"` CORS *AppCORSPolicy `json:"cors,omitempty"` // The ports on which this service will listen for internal traffic. InternalPorts []int64 `json:"internal_ports,omitempty"` // A list of configured alerts which apply to the component. Alerts []*AppAlertSpec `json:"alerts,omitempty"` // A list of configured log forwarding destinations. LogDestinations []*AppLogDestinationSpec `json:"log_destinations,omitempty"` Termination *AppServiceSpecTermination `json:"termination,omitempty"` }
AppServiceSpec struct for AppServiceSpec
func (*AppServiceSpec) GetAlerts ¶ added in v1.85.0
func (a *AppServiceSpec) GetAlerts() []*AppAlertSpec
GetAlerts returns the Alerts field.
func (*AppServiceSpec) GetAutoscaling ¶ added in v1.105.0
func (a *AppServiceSpec) GetAutoscaling() *AppAutoscalingSpec
GetAutoscaling returns the Autoscaling field.
func (*AppServiceSpec) GetBitbucket ¶ added in v1.132.0
func (a *AppServiceSpec) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*AppServiceSpec) GetBuildCommand ¶ added in v1.85.0
func (a *AppServiceSpec) GetBuildCommand() string
GetBuildCommand returns the BuildCommand field.
func (*AppServiceSpec) GetCORS ¶ added in v1.85.0
func (a *AppServiceSpec) GetCORS() *AppCORSPolicy
GetCORS returns the CORS field.
func (*AppServiceSpec) GetDockerfilePath ¶ added in v1.85.0
func (a *AppServiceSpec) GetDockerfilePath() string
GetDockerfilePath returns the DockerfilePath field.
func (*AppServiceSpec) GetEnvironmentSlug ¶ added in v1.98.0
func (a *AppServiceSpec) GetEnvironmentSlug() string
GetEnvironmentSlug returns the EnvironmentSlug field.
func (*AppServiceSpec) GetEnvs ¶ added in v1.85.0
func (a *AppServiceSpec) GetEnvs() []*AppVariableDefinition
GetEnvs returns the Envs field.
func (*AppServiceSpec) GetGit ¶ added in v1.85.0
func (a *AppServiceSpec) GetGit() *GitSourceSpec
GetGit returns the Git field.
func (*AppServiceSpec) GetGitHub ¶ added in v1.85.0
func (a *AppServiceSpec) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*AppServiceSpec) GetGitLab ¶ added in v1.85.0
func (a *AppServiceSpec) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*AppServiceSpec) GetHTTPPort ¶ added in v1.85.0
func (a *AppServiceSpec) GetHTTPPort() int64
GetHTTPPort returns the HTTPPort field.
func (*AppServiceSpec) GetHealthCheck ¶ added in v1.85.0
func (a *AppServiceSpec) GetHealthCheck() *AppServiceSpecHealthCheck
GetHealthCheck returns the HealthCheck field.
func (*AppServiceSpec) GetImage ¶ added in v1.85.0
func (a *AppServiceSpec) GetImage() *ImageSourceSpec
GetImage returns the Image field.
func (*AppServiceSpec) GetInstanceCount ¶ added in v1.85.0
func (a *AppServiceSpec) GetInstanceCount() int64
GetInstanceCount returns the InstanceCount field.
func (*AppServiceSpec) GetInstanceSizeSlug ¶ added in v1.85.0
func (a *AppServiceSpec) GetInstanceSizeSlug() string
GetInstanceSizeSlug returns the InstanceSizeSlug field.
func (*AppServiceSpec) GetInternalPorts ¶ added in v1.85.0
func (a *AppServiceSpec) GetInternalPorts() []int64
GetInternalPorts returns the InternalPorts field.
func (*AppServiceSpec) GetLogDestinations ¶ added in v1.85.0
func (a *AppServiceSpec) GetLogDestinations() []*AppLogDestinationSpec
GetLogDestinations returns the LogDestinations field.
func (*AppServiceSpec) GetName ¶ added in v1.85.0
func (a *AppServiceSpec) GetName() string
GetName returns the Name field.
func (*AppServiceSpec) GetProtocol ¶ added in v1.128.0
func (a *AppServiceSpec) GetProtocol() ServingProtocol
GetProtocol returns the Protocol field.
func (*AppServiceSpec) GetRoutes ¶ added in v1.85.0
func (a *AppServiceSpec) GetRoutes() []*AppRouteSpec
GetRoutes returns the Routes field.
func (*AppServiceSpec) GetRunCommand ¶ added in v1.85.0
func (a *AppServiceSpec) GetRunCommand() string
GetRunCommand returns the RunCommand field.
func (*AppServiceSpec) GetSourceDir ¶ added in v1.85.0
func (a *AppServiceSpec) GetSourceDir() string
GetSourceDir returns the SourceDir field.
func (*AppServiceSpec) GetTermination ¶ added in v1.114.0
func (a *AppServiceSpec) GetTermination() *AppServiceSpecTermination
GetTermination returns the Termination field.
func (*AppServiceSpec) GetType ¶ added in v1.85.0
func (s *AppServiceSpec) GetType() AppComponentType
GetType returns the Service component type.
type AppServiceSpecHealthCheck ¶ added in v1.43.0
type AppServiceSpecHealthCheck struct { // Deprecated. Use http_path instead. Path string `json:"path,omitempty"` // The number of seconds to wait before beginning health checks. Default: 0 seconds, Minimum 0, Maximum 3600. InitialDelaySeconds int32 `json:"initial_delay_seconds,omitempty"` // The number of seconds to wait between health checks. Default: 10 seconds, Minimum 1, Maximum 300. PeriodSeconds int32 `json:"period_seconds,omitempty"` // The number of seconds after which the check times out. Default: 1 second, Minimum 1, Maximum 120. TimeoutSeconds int32 `json:"timeout_seconds,omitempty"` // The number of successful health checks before considered healthy. Default: 1, Minimum 1, Maximum 50. SuccessThreshold int32 `json:"success_threshold,omitempty"` // The number of failed health checks before considered unhealthy. Default: 9, Minimum 1, Maximum 50. FailureThreshold int32 `json:"failure_threshold,omitempty"` // The route path used for the HTTP health check ping. If not set, the HTTP health check will be disabled and a TCP health check used instead. HTTPPath string `json:"http_path,omitempty"` // The port on which the health check will be performed. If not set, the health check will be performed on the component's http_port. Port int64 `json:"port,omitempty"` }
AppServiceSpecHealthCheck struct for AppServiceSpecHealthCheck
func (*AppServiceSpecHealthCheck) GetFailureThreshold ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetFailureThreshold() int32
GetFailureThreshold returns the FailureThreshold field.
func (*AppServiceSpecHealthCheck) GetHTTPPath ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetHTTPPath() string
GetHTTPPath returns the HTTPPath field.
func (*AppServiceSpecHealthCheck) GetInitialDelaySeconds ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetInitialDelaySeconds() int32
GetInitialDelaySeconds returns the InitialDelaySeconds field.
func (*AppServiceSpecHealthCheck) GetPath ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetPath() string
GetPath returns the Path field.
func (*AppServiceSpecHealthCheck) GetPeriodSeconds ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetPeriodSeconds() int32
GetPeriodSeconds returns the PeriodSeconds field.
func (*AppServiceSpecHealthCheck) GetPort ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetPort() int64
GetPort returns the Port field.
func (*AppServiceSpecHealthCheck) GetSuccessThreshold ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetSuccessThreshold() int32
GetSuccessThreshold returns the SuccessThreshold field.
func (*AppServiceSpecHealthCheck) GetTimeoutSeconds ¶ added in v1.85.0
func (a *AppServiceSpecHealthCheck) GetTimeoutSeconds() int32
GetTimeoutSeconds returns the TimeoutSeconds field.
type AppServiceSpecTermination ¶ added in v1.114.0
type AppServiceSpecTermination struct { // The number of seconds to wait between selecting a container instance for termination and issuing the TERM signal. Selecting a container instance for termination begins an asynchronous drain of new requests on upstream load-balancers. Default: 15 seconds, Minimum 1, Maximum 110. DrainSeconds int32 `json:"drain_seconds,omitempty"` // The number of seconds to wait between sending a TERM signal to a container and issuing a KILL which causes immediate shutdown. Default: 120, Minimum 1, Maximum 600. GracePeriodSeconds int32 `json:"grace_period_seconds,omitempty"` }
AppServiceSpecTermination struct for AppServiceSpecTermination
func (*AppServiceSpecTermination) GetDrainSeconds ¶ added in v1.114.0
func (a *AppServiceSpecTermination) GetDrainSeconds() int32
GetDrainSeconds returns the DrainSeconds field.
func (*AppServiceSpecTermination) GetGracePeriodSeconds ¶ added in v1.114.0
func (a *AppServiceSpecTermination) GetGracePeriodSeconds() int32
GetGracePeriodSeconds returns the GracePeriodSeconds field.
type AppSourceType ¶ added in v1.85.0
type AppSourceType string
AppSourceType is an app source type.
const ( AppSourceTypeBitbucket AppSourceType = "bitbucket" AppSourceTypeGitHub AppSourceType = "github" AppSourceTypeGitLab AppSourceType = "gitlab" AppSourceTypeGit AppSourceType = "git" AppSourceTypeImage AppSourceType = "image" )
type AppSpec ¶ added in v1.39.0
type AppSpec struct { // The name of the app. Must be unique across all apps in the same account. Name string `json:"name"` // Workloads which expose publicly-accessible HTTP services. Services []*AppServiceSpec `json:"services,omitempty"` // Content which can be rendered to static web assets. StaticSites []*AppStaticSiteSpec `json:"static_sites,omitempty"` // Workloads which do not expose publicly-accessible HTTP services. Workers []*AppWorkerSpec `json:"workers,omitempty"` // Pre and post deployment workloads which do not expose publicly-accessible HTTP routes. Jobs []*AppJobSpec `json:"jobs,omitempty"` // Workloads which expose publicly-accessible HTTP services via Functions Components. Functions []*AppFunctionsSpec `json:"functions,omitempty"` // Database instances which can provide persistence to workloads within the application. Databases []*AppDatabaseSpec `json:"databases,omitempty"` // A set of hostnames where the application will be available. Domains []*AppDomainSpec `json:"domains,omitempty"` Region string `json:"region,omitempty"` // A list of environment variables made available to all components in the app. Envs []*AppVariableDefinition `json:"envs,omitempty"` // A list of alerts which apply to the app. Alerts []*AppAlertSpec `json:"alerts,omitempty"` Ingress *AppIngressSpec `json:"ingress,omitempty"` Egress *AppEgressSpec `json:"egress,omitempty"` Features []string `json:"features,omitempty"` Maintenance *AppMaintenanceSpec `json:"maintenance,omitempty"` }
AppSpec The desired configuration of an application.
func (*AppSpec) ForEachAppComponentSpec ¶ added in v1.85.0
func (s *AppSpec) ForEachAppComponentSpec(fn func(component AppComponentSpec) error) error
ForEachAppComponentSpec iterates over each component spec in an app.
func (*AppSpec) GetAlerts ¶ added in v1.85.0
func (a *AppSpec) GetAlerts() []*AppAlertSpec
GetAlerts returns the Alerts field.
func (*AppSpec) GetDatabases ¶ added in v1.85.0
func (a *AppSpec) GetDatabases() []*AppDatabaseSpec
GetDatabases returns the Databases field.
func (*AppSpec) GetDomains ¶ added in v1.85.0
func (a *AppSpec) GetDomains() []*AppDomainSpec
GetDomains returns the Domains field.
func (*AppSpec) GetEgress ¶ added in v1.107.0
func (a *AppSpec) GetEgress() *AppEgressSpec
GetEgress returns the Egress field.
func (*AppSpec) GetEnvs ¶ added in v1.85.0
func (a *AppSpec) GetEnvs() []*AppVariableDefinition
GetEnvs returns the Envs field.
func (*AppSpec) GetFeatures ¶ added in v1.85.0
GetFeatures returns the Features field.
func (*AppSpec) GetFunctions ¶ added in v1.85.0
func (a *AppSpec) GetFunctions() []*AppFunctionsSpec
GetFunctions returns the Functions field.
func (*AppSpec) GetIngress ¶ added in v1.85.0
func (a *AppSpec) GetIngress() *AppIngressSpec
GetIngress returns the Ingress field.
func (*AppSpec) GetJobs ¶ added in v1.85.0
func (a *AppSpec) GetJobs() []*AppJobSpec
GetJobs returns the Jobs field.
func (*AppSpec) GetMaintenance ¶ added in v1.128.0
func (a *AppSpec) GetMaintenance() *AppMaintenanceSpec
GetMaintenance returns the Maintenance field.
func (*AppSpec) GetServices ¶ added in v1.85.0
func (a *AppSpec) GetServices() []*AppServiceSpec
GetServices returns the Services field.
func (*AppSpec) GetStaticSites ¶ added in v1.85.0
func (a *AppSpec) GetStaticSites() []*AppStaticSiteSpec
GetStaticSites returns the StaticSites field.
func (*AppSpec) GetWorkers ¶ added in v1.85.0
func (a *AppSpec) GetWorkers() []*AppWorkerSpec
GetWorkers returns the Workers field.
type AppStaticSiteSpec ¶ added in v1.39.0
type AppStaticSiteSpec struct { // The name. Must be unique across all components within the same app. Name string `json:"name"` Git *GitSourceSpec `json:"git,omitempty"` GitHub *GitHubSourceSpec `json:"github,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` // The path to the Dockerfile relative to the root of the repo. If set, it will be used to build this component. Otherwise, App Platform will attempt to build it using buildpacks. DockerfilePath string `json:"dockerfile_path,omitempty"` // An optional build command to run while building this component from source. BuildCommand string `json:"build_command,omitempty"` // An optional path to the working directory to use for the build. For Dockerfile builds, this will be used as the build context. Must be relative to the root of the repo. SourceDir string `json:"source_dir,omitempty"` // An environment slug describing the type of this app. For a full list, please refer to [the product documentation](https://www.digitalocean.com/docs/app-platform/). EnvironmentSlug string `json:"environment_slug,omitempty"` // An optional path to where the built assets will be located, relative to the build context. If not set, App Platform will automatically scan for these directory names: `_static`, `dist`, `public`, `build`. OutputDir string `json:"output_dir,omitempty"` IndexDocument string `json:"index_document,omitempty"` // The name of the error document to use when serving this static site. Default: 404.html. If no such file exists within the built assets, App Platform will supply one. ErrorDocument string `json:"error_document,omitempty"` // A list of environment variables made available to the component. Envs []*AppVariableDefinition `json:"envs,omitempty"` // (Deprecated) A list of HTTP routes that should be routed to this component. Routes []*AppRouteSpec `json:"routes,omitempty"` CORS *AppCORSPolicy `json:"cors,omitempty"` // The name of the document to use as the fallback for any requests to documents that are not found when serving this static site. Only 1 of `catchall_document` or `error_document` can be set. CatchallDocument string `json:"catchall_document,omitempty"` }
AppStaticSiteSpec struct for AppStaticSiteSpec
func (*AppStaticSiteSpec) GetBitbucket ¶ added in v1.132.0
func (a *AppStaticSiteSpec) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*AppStaticSiteSpec) GetBuildCommand ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetBuildCommand() string
GetBuildCommand returns the BuildCommand field.
func (*AppStaticSiteSpec) GetCORS ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetCORS() *AppCORSPolicy
GetCORS returns the CORS field.
func (*AppStaticSiteSpec) GetCatchallDocument ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetCatchallDocument() string
GetCatchallDocument returns the CatchallDocument field.
func (*AppStaticSiteSpec) GetDockerfilePath ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetDockerfilePath() string
GetDockerfilePath returns the DockerfilePath field.
func (*AppStaticSiteSpec) GetEnvironmentSlug ¶ added in v1.98.0
func (a *AppStaticSiteSpec) GetEnvironmentSlug() string
GetEnvironmentSlug returns the EnvironmentSlug field.
func (*AppStaticSiteSpec) GetEnvs ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetEnvs() []*AppVariableDefinition
GetEnvs returns the Envs field.
func (*AppStaticSiteSpec) GetErrorDocument ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetErrorDocument() string
GetErrorDocument returns the ErrorDocument field.
func (*AppStaticSiteSpec) GetGit ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetGit() *GitSourceSpec
GetGit returns the Git field.
func (*AppStaticSiteSpec) GetGitHub ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*AppStaticSiteSpec) GetGitLab ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*AppStaticSiteSpec) GetIndexDocument ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetIndexDocument() string
GetIndexDocument returns the IndexDocument field.
func (*AppStaticSiteSpec) GetName ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetName() string
GetName returns the Name field.
func (*AppStaticSiteSpec) GetOutputDir ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetOutputDir() string
GetOutputDir returns the OutputDir field.
func (*AppStaticSiteSpec) GetRoutes ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetRoutes() []*AppRouteSpec
GetRoutes returns the Routes field.
func (*AppStaticSiteSpec) GetSourceDir ¶ added in v1.85.0
func (a *AppStaticSiteSpec) GetSourceDir() string
GetSourceDir returns the SourceDir field.
func (*AppStaticSiteSpec) GetType ¶ added in v1.85.0
func (s *AppStaticSiteSpec) GetType() AppComponentType
GetType returns the StaticSite component type.
type AppStringMatch ¶ added in v1.48.0
type AppStringMatch struct { // Exact string match. Only 1 of `exact`, `prefix`, or `regex` must be set. Exact string `json:"exact,omitempty"` // Prefix-based match. Only 1 of `exact`, `prefix`, or `regex` must be set. Prefix string `json:"prefix,omitempty"` Regex string `json:"regex,omitempty"` }
AppStringMatch struct for AppStringMatch
func (*AppStringMatch) GetExact ¶ added in v1.85.0
func (a *AppStringMatch) GetExact() string
GetExact returns the Exact field.
func (*AppStringMatch) GetPrefix ¶ added in v1.85.0
func (a *AppStringMatch) GetPrefix() string
GetPrefix returns the Prefix field.
func (*AppStringMatch) GetRegex ¶ added in v1.85.0
func (a *AppStringMatch) GetRegex() string
GetRegex returns the Regex field.
type AppTier ¶ added in v1.48.0
type AppTier struct { Name string `json:"name,omitempty"` Slug string `json:"slug,omitempty"` EgressBandwidthBytes string `json:"egress_bandwidth_bytes,omitempty"` BuildSeconds string `json:"build_seconds,omitempty"` }
AppTier struct for AppTier
func (*AppTier) GetBuildSeconds ¶ added in v1.85.0
GetBuildSeconds returns the BuildSeconds field.
func (*AppTier) GetEgressBandwidthBytes ¶ added in v1.85.0
GetEgressBandwidthBytes returns the EgressBandwidthBytes field.
type AppUpdateRequest ¶ added in v1.39.0
type AppUpdateRequest struct { Spec *AppSpec `json:"spec"` // Whether or not to update the source versions (for example fetching a new commit or image digest) of all components. By default (when this is false) only newly added sources will be updated to avoid changes like updating the scale of a component from also updating the respective code. UpdateAllSourceVersions bool `json:"update_all_source_versions"` }
AppUpdateRequest represents a request to update an app.
type AppVariableDefinition ¶ added in v1.39.0
type AppVariableDefinition struct { // The name Key string `json:"key"` // The value. If the type is `SECRET`, the value will be encrypted on first submission. On following submissions, the encrypted value should be used. Value string `json:"value,omitempty"` Scope AppVariableScope `json:"scope,omitempty"` Type AppVariableType `json:"type,omitempty"` }
AppVariableDefinition struct for AppVariableDefinition
func (*AppVariableDefinition) GetKey ¶ added in v1.85.0
func (a *AppVariableDefinition) GetKey() string
GetKey returns the Key field.
func (*AppVariableDefinition) GetScope ¶ added in v1.85.0
func (a *AppVariableDefinition) GetScope() AppVariableScope
GetScope returns the Scope field.
func (*AppVariableDefinition) GetType ¶ added in v1.85.0
func (a *AppVariableDefinition) GetType() AppVariableType
GetType returns the Type field.
func (*AppVariableDefinition) GetValue ¶ added in v1.85.0
func (a *AppVariableDefinition) GetValue() string
GetValue returns the Value field.
type AppVariableScope ¶ added in v1.45.0
type AppVariableScope string
AppVariableScope the model 'AppVariableScope'
const ( AppVariableScope_Unset AppVariableScope = "UNSET" AppVariableScope_RunTime AppVariableScope = "RUN_TIME" AppVariableScope_BuildTime AppVariableScope = "BUILD_TIME" AppVariableScope_RunAndBuildTime AppVariableScope = "RUN_AND_BUILD_TIME" )
List of AppVariableScope
type AppVariableType ¶ added in v1.45.0
type AppVariableType string
AppVariableType the model 'AppVariableType'
const ( AppVariableType_General AppVariableType = "GENERAL" AppVariableType_Secret AppVariableType = "SECRET" )
List of AppVariableType
type AppWorkerSpec ¶ added in v1.39.0
type AppWorkerSpec struct { // The name. Must be unique across all components within the same app. Name string `json:"name"` Git *GitSourceSpec `json:"git,omitempty"` GitHub *GitHubSourceSpec `json:"github,omitempty"` Image *ImageSourceSpec `json:"image,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` // The path to the Dockerfile relative to the root of the repo. If set, it will be used to build this component. Otherwise, App Platform will attempt to build it using buildpacks. DockerfilePath string `json:"dockerfile_path,omitempty"` // An optional build command to run while building this component from source. BuildCommand string `json:"build_command,omitempty"` // An optional run command to override the component's default. RunCommand string `json:"run_command,omitempty"` // An optional path to the working directory to use for the build. For Dockerfile builds, this will be used as the build context. Must be relative to the root of the repo. SourceDir string `json:"source_dir,omitempty"` // An environment slug describing the type of this app. For a full list, please refer to [the product documentation](https://www.digitalocean.com/docs/app-platform/). EnvironmentSlug string `json:"environment_slug,omitempty"` // A list of environment variables made available to the component. Envs []*AppVariableDefinition `json:"envs,omitempty"` // The instance size to use for this component. InstanceSizeSlug string `json:"instance_size_slug,omitempty"` InstanceCount int64 `json:"instance_count,omitempty"` Autoscaling *AppAutoscalingSpec `json:"autoscaling,omitempty"` // A list of configured alerts which apply to the component. Alerts []*AppAlertSpec `json:"alerts,omitempty"` // A list of configured log forwarding destinations. LogDestinations []*AppLogDestinationSpec `json:"log_destinations,omitempty"` Termination *AppWorkerSpecTermination `json:"termination,omitempty"` }
AppWorkerSpec struct for AppWorkerSpec
func (*AppWorkerSpec) GetAlerts ¶ added in v1.85.0
func (a *AppWorkerSpec) GetAlerts() []*AppAlertSpec
GetAlerts returns the Alerts field.
func (*AppWorkerSpec) GetAutoscaling ¶ added in v1.105.0
func (a *AppWorkerSpec) GetAutoscaling() *AppAutoscalingSpec
GetAutoscaling returns the Autoscaling field.
func (*AppWorkerSpec) GetBitbucket ¶ added in v1.132.0
func (a *AppWorkerSpec) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*AppWorkerSpec) GetBuildCommand ¶ added in v1.85.0
func (a *AppWorkerSpec) GetBuildCommand() string
GetBuildCommand returns the BuildCommand field.
func (*AppWorkerSpec) GetDockerfilePath ¶ added in v1.85.0
func (a *AppWorkerSpec) GetDockerfilePath() string
GetDockerfilePath returns the DockerfilePath field.
func (*AppWorkerSpec) GetEnvironmentSlug ¶ added in v1.98.0
func (a *AppWorkerSpec) GetEnvironmentSlug() string
GetEnvironmentSlug returns the EnvironmentSlug field.
func (*AppWorkerSpec) GetEnvs ¶ added in v1.85.0
func (a *AppWorkerSpec) GetEnvs() []*AppVariableDefinition
GetEnvs returns the Envs field.
func (*AppWorkerSpec) GetGit ¶ added in v1.85.0
func (a *AppWorkerSpec) GetGit() *GitSourceSpec
GetGit returns the Git field.
func (*AppWorkerSpec) GetGitHub ¶ added in v1.85.0
func (a *AppWorkerSpec) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*AppWorkerSpec) GetGitLab ¶ added in v1.85.0
func (a *AppWorkerSpec) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*AppWorkerSpec) GetImage ¶ added in v1.85.0
func (a *AppWorkerSpec) GetImage() *ImageSourceSpec
GetImage returns the Image field.
func (*AppWorkerSpec) GetInstanceCount ¶ added in v1.85.0
func (a *AppWorkerSpec) GetInstanceCount() int64
GetInstanceCount returns the InstanceCount field.
func (*AppWorkerSpec) GetInstanceSizeSlug ¶ added in v1.85.0
func (a *AppWorkerSpec) GetInstanceSizeSlug() string
GetInstanceSizeSlug returns the InstanceSizeSlug field.
func (*AppWorkerSpec) GetLogDestinations ¶ added in v1.85.0
func (a *AppWorkerSpec) GetLogDestinations() []*AppLogDestinationSpec
GetLogDestinations returns the LogDestinations field.
func (*AppWorkerSpec) GetName ¶ added in v1.85.0
func (a *AppWorkerSpec) GetName() string
GetName returns the Name field.
func (*AppWorkerSpec) GetRunCommand ¶ added in v1.85.0
func (a *AppWorkerSpec) GetRunCommand() string
GetRunCommand returns the RunCommand field.
func (*AppWorkerSpec) GetSourceDir ¶ added in v1.85.0
func (a *AppWorkerSpec) GetSourceDir() string
GetSourceDir returns the SourceDir field.
func (*AppWorkerSpec) GetTermination ¶ added in v1.114.0
func (a *AppWorkerSpec) GetTermination() *AppWorkerSpecTermination
GetTermination returns the Termination field.
func (*AppWorkerSpec) GetType ¶ added in v1.85.0
func (s *AppWorkerSpec) GetType() AppComponentType
GetType returns the Worker component type.
type AppWorkerSpecTermination ¶ added in v1.114.0
type AppWorkerSpecTermination struct { // The number of seconds to wait between sending a TERM signal to a container and issuing a KILL which causes immediate shutdown. Default: 120, Minimum 1, Maximum 600. GracePeriodSeconds int32 `json:"grace_period_seconds,omitempty"` }
AppWorkerSpecTermination struct for AppWorkerSpecTermination
func (*AppWorkerSpecTermination) GetGracePeriodSeconds ¶ added in v1.114.0
func (a *AppWorkerSpecTermination) GetGracePeriodSeconds() int32
GetGracePeriodSeconds returns the GracePeriodSeconds field.
type AppsService ¶ added in v1.39.0
type AppsService interface { Create(ctx context.Context, create *AppCreateRequest) (*App, *Response, error) Get(ctx context.Context, appID string) (*App, *Response, error) List(ctx context.Context, opts *ListOptions) ([]*App, *Response, error) Update(ctx context.Context, appID string, update *AppUpdateRequest) (*App, *Response, error) Delete(ctx context.Context, appID string) (*Response, error) Propose(ctx context.Context, propose *AppProposeRequest) (*AppProposeResponse, *Response, error) Restart(ctx context.Context, appID string, opts *AppRestartRequest) (*Deployment, *Response, error) GetDeployment(ctx context.Context, appID, deploymentID string) (*Deployment, *Response, error) ListDeployments(ctx context.Context, appID string, opts *ListOptions) ([]*Deployment, *Response, error) CreateDeployment(ctx context.Context, appID string, create ...*DeploymentCreateRequest) (*Deployment, *Response, error) GetLogs(ctx context.Context, appID, deploymentID, component string, logType AppLogType, follow bool, tailLines int) (*AppLogs, *Response, error) GetExec(ctx context.Context, appID, deploymentID, component string) (*AppExec, *Response, error) ListRegions(ctx context.Context) ([]*AppRegion, *Response, error) ListTiers(ctx context.Context) ([]*AppTier, *Response, error) GetTier(ctx context.Context, slug string) (*AppTier, *Response, error) ListInstanceSizes(ctx context.Context) ([]*AppInstanceSize, *Response, error) GetInstanceSize(ctx context.Context, slug string) (*AppInstanceSize, *Response, error) ListAlerts(ctx context.Context, appID string) ([]*AppAlert, *Response, error) UpdateAlertDestinations(ctx context.Context, appID, alertID string, update *AlertDestinationUpdateRequest) (*AppAlert, *Response, error) Detect(ctx context.Context, detect *DetectRequest) (*DetectResponse, *Response, error) ListBuildpacks(ctx context.Context) ([]*Buildpack, *Response, error) UpgradeBuildpack(ctx context.Context, appID string, opts UpgradeBuildpackOptions) (*UpgradeBuildpackResponse, *Response, error) GetAppDatabaseConnectionDetails(ctx context.Context, appID string) ([]*GetDatabaseConnectionDetailsResponse, *Response, error) ResetDatabasePassword(ctx context.Context, appID string, component string) (*Deployment, *Response, error) ToggleDatabaseTrustedSource( ctx context.Context, appID string, component string, opts ToggleDatabaseTrustedSourceOptions, ) ( *ToggleDatabaseTrustedSourceResponse, *Response, error, ) }
AppsService is an interface for interfacing with the App Platform endpoints of the DigitalOcean API.
type AppsServiceOp ¶ added in v1.39.0
type AppsServiceOp struct {
// contains filtered or unexported fields
}
AppsServiceOp handles communication with Apps methods of the DigitalOcean API.
func (*AppsServiceOp) Create ¶ added in v1.39.0
func (s *AppsServiceOp) Create(ctx context.Context, create *AppCreateRequest) (*App, *Response, error)
Create an app.
func (*AppsServiceOp) CreateDeployment ¶ added in v1.39.0
func (s *AppsServiceOp) CreateDeployment(ctx context.Context, appID string, create ...*DeploymentCreateRequest) (*Deployment, *Response, error)
CreateDeployment creates an app deployment.
func (*AppsServiceOp) Detect ¶ added in v1.82.0
func (s *AppsServiceOp) Detect(ctx context.Context, detect *DetectRequest) (*DetectResponse, *Response, error)
Detect an app.
func (*AppsServiceOp) GetAppDatabaseConnectionDetails ¶ added in v1.109.0
func (s *AppsServiceOp) GetAppDatabaseConnectionDetails(ctx context.Context, appID string) ([]*GetDatabaseConnectionDetailsResponse, *Response, error)
GetAppDatabaseConnectionDetails retrieves credentials for databases associated with the app.
func (*AppsServiceOp) GetDeployment ¶ added in v1.39.0
func (s *AppsServiceOp) GetDeployment(ctx context.Context, appID, deploymentID string) (*Deployment, *Response, error)
GetDeployment gets an app deployment.
func (*AppsServiceOp) GetExec ¶ added in v1.130.0
func (s *AppsServiceOp) GetExec(ctx context.Context, appID, deploymentID, component string) (*AppExec, *Response, error)
GetExec retrieves the websocket URL used for sending/receiving console input and output.
func (*AppsServiceOp) GetInstanceSize ¶ added in v1.49.0
func (s *AppsServiceOp) GetInstanceSize(ctx context.Context, slug string) (*AppInstanceSize, *Response, error)
GetInstanceSize retrieves information about a specific instance size for service, worker, and job components.
func (*AppsServiceOp) GetLogs ¶ added in v1.39.0
func (s *AppsServiceOp) GetLogs(ctx context.Context, appID, deploymentID, component string, logType AppLogType, follow bool, tailLines int) (*AppLogs, *Response, error)
GetLogs retrieves app logs.
func (*AppsServiceOp) GetTier
deprecated
added in
v1.49.0
GetTier retrieves information about a specific app tier.
Deprecated: The '/v2/apps/tiers/{slug}' endpoints have been deprecated as app tiers are no longer tied to instance sizes. The concept of tiers is being retired.
func (*AppsServiceOp) List ¶ added in v1.39.0
func (s *AppsServiceOp) List(ctx context.Context, opts *ListOptions) ([]*App, *Response, error)
List apps.
func (*AppsServiceOp) ListAlerts ¶ added in v1.65.0
func (s *AppsServiceOp) ListAlerts(ctx context.Context, appID string) ([]*AppAlert, *Response, error)
ListAlerts retrieves a list of alerts on an app
func (*AppsServiceOp) ListBuildpacks ¶ added in v1.88.0
ListBuildpacks lists the available buildpacks on App Platform.
func (*AppsServiceOp) ListDeployments ¶ added in v1.39.0
func (s *AppsServiceOp) ListDeployments(ctx context.Context, appID string, opts *ListOptions) ([]*Deployment, *Response, error)
ListDeployments lists an app deployments.
func (*AppsServiceOp) ListInstanceSizes ¶ added in v1.49.0
func (s *AppsServiceOp) ListInstanceSizes(ctx context.Context) ([]*AppInstanceSize, *Response, error)
ListInstanceSizes lists available instance sizes for service, worker, and job components.
func (*AppsServiceOp) ListRegions ¶ added in v1.49.0
ListRegions lists all regions supported by App Platform.
func (*AppsServiceOp) ListTiers
deprecated
added in
v1.49.0
func (*AppsServiceOp) Propose ¶ added in v1.56.0
func (s *AppsServiceOp) Propose(ctx context.Context, propose *AppProposeRequest) (*AppProposeResponse, *Response, error)
Propose an app.
func (*AppsServiceOp) ResetDatabasePassword ¶ added in v1.109.0
func (s *AppsServiceOp) ResetDatabasePassword(ctx context.Context, appID string, component string) (*Deployment, *Response, error)
ResetDatabasePassword resets credentials for a database component associated with the app.
func (*AppsServiceOp) Restart ¶ added in v1.131.0
func (s *AppsServiceOp) Restart(ctx context.Context, appID string, opts *AppRestartRequest) (*Deployment, *Response, error)
Restart restarts an app.
func (*AppsServiceOp) ToggleDatabaseTrustedSource ¶ added in v1.109.0
func (s *AppsServiceOp) ToggleDatabaseTrustedSource( ctx context.Context, appID string, component string, opts ToggleDatabaseTrustedSourceOptions, ) ( *ToggleDatabaseTrustedSourceResponse, *Response, error, )
ToggleDatabaseTrustedSource enables/disables trusted sources on the specified dev database component.
func (*AppsServiceOp) Update ¶ added in v1.39.0
func (s *AppsServiceOp) Update(ctx context.Context, appID string, update *AppUpdateRequest) (*App, *Response, error)
Update an app.
func (*AppsServiceOp) UpdateAlertDestinations ¶ added in v1.65.0
func (s *AppsServiceOp) UpdateAlertDestinations(ctx context.Context, appID, alertID string, update *AlertDestinationUpdateRequest) (*AppAlert, *Response, error)
UpdateAlertDestinations updates the alert destinations of an app's alert
func (*AppsServiceOp) UpgradeBuildpack ¶ added in v1.88.0
func (s *AppsServiceOp) UpgradeBuildpack(ctx context.Context, appID string, opts UpgradeBuildpackOptions) (*UpgradeBuildpackResponse, *Response, error)
UpgradeBuildpack upgrades a buildpack for an app.
type ArgError ¶ added in v0.9.0
type ArgError struct {
// contains filtered or unexported fields
}
ArgError is an error that represents an error with an input to godo. It identifies the argument and the cause (if possible).
func NewArgError ¶ added in v0.9.0
NewArgError creates an InputError.
type AssociatedResource ¶ added in v1.58.0
AssociatedResource is the object to represent a Kubernetes cluster associated resource's ID and Name.
type BGP ¶ added in v1.133.0
type BGP struct { // LocalASN is the local ASN LocalASN int `json:"local_asn,omitempty"` // LocalRouterIP is the local router IP LocalRouterIP string `json:"local_router_ip,omitempty"` // PeerASN is the peer ASN PeerASN int `json:"peer_asn,omitempty"` // PeerRouterIP is the peer router IP PeerRouterIP string `json:"peer_router_ip,omitempty"` }
BGP represents the BGP configuration of a Partner Interconnect Attachment.
type BackupWindow ¶ added in v1.0.0
type BackupWindow struct { Start *Timestamp `json:"start,omitempty"` End *Timestamp `json:"end,omitempty"` }
BackupWindow object
type Balance ¶ added in v1.29.0
type Balance struct { MonthToDateBalance string `json:"month_to_date_balance"` AccountBalance string `json:"account_balance"` MonthToDateUsage string `json:"month_to_date_usage"` GeneratedAt time.Time `json:"generated_at"` }
Balance represents a DigitalOcean Balance
type BalanceService ¶ added in v1.29.0
BalanceService is an interface for interfacing with the Balance endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#operation/balance_get
type BalanceServiceOp ¶ added in v1.29.0
type BalanceServiceOp struct {
// contains filtered or unexported fields
}
BalanceServiceOp handles communication with the Balance related methods of the DigitalOcean API.
type BillingHistory ¶ added in v1.33.0
type BillingHistory struct { BillingHistory []BillingHistoryEntry `json:"billing_history"` Links *Links `json:"links"` Meta *Meta `json:"meta"` }
BillingHistory represents a DigitalOcean Billing History
func (BillingHistory) String ¶ added in v1.33.0
func (b BillingHistory) String() string
type BillingHistoryEntry ¶ added in v1.33.0
type BillingHistoryEntry struct { Description string `json:"description"` Amount string `json:"amount"` InvoiceID *string `json:"invoice_id"` InvoiceUUID *string `json:"invoice_uuid"` Date time.Time `json:"date"` Type string `json:"type"` }
BillingHistoryEntry represents an entry in a customer's Billing History
type BillingHistoryService ¶ added in v1.33.0
type BillingHistoryService interface {
List(context.Context, *ListOptions) (*BillingHistory, *Response, error)
}
BillingHistoryService is an interface for interfacing with the BillingHistory endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#operation/billingHistory_list
type BillingHistoryServiceOp ¶ added in v1.33.0
type BillingHistoryServiceOp struct {
// contains filtered or unexported fields
}
BillingHistoryServiceOp handles communication with the BillingHistory related methods of the DigitalOcean API.
func (*BillingHistoryServiceOp) List ¶ added in v1.33.0
func (s *BillingHistoryServiceOp) List(ctx context.Context, opt *ListOptions) (*BillingHistory, *Response, error)
List the Billing History for a customer
type BitbucketSourceSpec ¶ added in v1.132.0
type BitbucketSourceSpec struct { Repo string `json:"repo,omitempty"` Branch string `json:"branch,omitempty"` DeployOnPush bool `json:"deploy_on_push,omitempty"` }
BitbucketSourceSpec struct for BitbucketSourceSpec
func (*BitbucketSourceSpec) GetBranch ¶ added in v1.132.0
func (b *BitbucketSourceSpec) GetBranch() string
GetBranch returns the Branch field.
func (*BitbucketSourceSpec) GetDeployOnPush ¶ added in v1.132.0
func (b *BitbucketSourceSpec) GetDeployOnPush() bool
GetDeployOnPush returns the DeployOnPush field.
func (*BitbucketSourceSpec) GetRepo ¶ added in v1.132.0
func (b *BitbucketSourceSpec) GetRepo() string
GetRepo returns the Repo field.
func (*BitbucketSourceSpec) GetType ¶ added in v1.132.0
func (s *BitbucketSourceSpec) GetType() AppSourceType
GetType returns the Bitbucket source type.
type Blob ¶ added in v1.73.0
type Blob struct { Digest string `json:"digest,omitempty"` CompressedSizeBytes uint64 `json:"compressed_size_bytes,omitempty"` }
Blob represents a registry blob
type Buildpack ¶ added in v1.85.0
type Buildpack struct { // The ID of the buildpack. ID string `json:"id,omitempty"` // Full semver version string. Version string `json:"version,omitempty"` // The major version line that the buildpack is pinned to. Example: a value of `1` indicates that the buildpack is pinned to versions `>=1.0.0 and <2.0.0`. MajorVersion int32 `json:"major_version,omitempty"` // Indicates whether the buildpack is on the latest major version line available. Latest bool `json:"latest,omitempty"` // A human friendly name. Name string `json:"name,omitempty"` // A description of the buildpack's purpose and steps performed at build time. Description []string `json:"description,omitempty"` // A link to the buildpack's documentation. DocsLink string `json:"docs_link,omitempty"` }
Buildpack struct for Buildpack
func (*Buildpack) GetDescription ¶ added in v1.85.0
GetDescription returns the Description field.
func (*Buildpack) GetDocsLink ¶ added in v1.85.0
GetDocsLink returns the DocsLink field.
func (*Buildpack) GetMajorVersion ¶ added in v1.85.0
GetMajorVersion returns the MajorVersion field.
func (*Buildpack) GetVersion ¶ added in v1.85.0
GetVersion returns the Version field.
type CDN ¶ added in v1.4.0
type CDN struct { ID string `json:"id"` Origin string `json:"origin"` Endpoint string `json:"endpoint"` CreatedAt time.Time `json:"created_at"` TTL uint32 `json:"ttl"` CertificateID string `json:"certificate_id,omitempty"` CustomDomain string `json:"custom_domain,omitempty"` }
CDN represents a DigitalOcean CDN
type CDNCreateRequest ¶ added in v1.4.0
type CDNCreateRequest struct { Origin string `json:"origin"` TTL uint32 `json:"ttl"` CustomDomain string `json:"custom_domain,omitempty"` CertificateID string `json:"certificate_id,omitempty"` }
CDNCreateRequest represents a request to create a CDN.
type CDNFlushCacheRequest ¶ added in v1.4.0
type CDNFlushCacheRequest struct {
Files []string `json:"files"`
}
CDNFlushCacheRequest represents a request to flush cache of a CDN.
type CDNService ¶ added in v1.4.0
type CDNService interface { List(context.Context, *ListOptions) ([]CDN, *Response, error) Get(context.Context, string) (*CDN, *Response, error) Create(context.Context, *CDNCreateRequest) (*CDN, *Response, error) UpdateTTL(context.Context, string, *CDNUpdateTTLRequest) (*CDN, *Response, error) UpdateCustomDomain(context.Context, string, *CDNUpdateCustomDomainRequest) (*CDN, *Response, error) FlushCache(context.Context, string, *CDNFlushCacheRequest) (*Response, error) Delete(context.Context, string) (*Response, error) }
CDNService is an interface for managing Spaces CDN with the DigitalOcean API.
type CDNServiceOp ¶ added in v1.4.0
type CDNServiceOp struct {
// contains filtered or unexported fields
}
CDNServiceOp handles communication with the CDN related methods of the DigitalOcean API.
func (CDNServiceOp) Create ¶ added in v1.4.0
func (c CDNServiceOp) Create(ctx context.Context, createRequest *CDNCreateRequest) (*CDN, *Response, error)
Create a new CDN
func (CDNServiceOp) FlushCache ¶ added in v1.4.0
func (c CDNServiceOp) FlushCache(ctx context.Context, id string, flushCacheRequest *CDNFlushCacheRequest) (*Response, error)
FlushCache flushes the cache of an individual CDN. Requires a non-empty slice of file paths and/or wildcards
func (CDNServiceOp) List ¶ added in v1.4.0
func (c CDNServiceOp) List(ctx context.Context, opt *ListOptions) ([]CDN, *Response, error)
List all CDN endpoints
func (CDNServiceOp) UpdateCustomDomain ¶ added in v1.7.5
func (c CDNServiceOp) UpdateCustomDomain(ctx context.Context, id string, updateRequest *CDNUpdateCustomDomainRequest) (*CDN, *Response, error)
UpdateCustomDomain sets or removes the custom domain of an individual CDN
func (CDNServiceOp) UpdateTTL ¶ added in v1.4.0
func (c CDNServiceOp) UpdateTTL(ctx context.Context, id string, updateRequest *CDNUpdateTTLRequest) (*CDN, *Response, error)
UpdateTTL updates the ttl of an individual CDN
type CDNSettings ¶ added in v1.111.0
type CDNSettings struct { // IsEnabled is the caching enabled flag IsEnabled bool `json:"is_enabled"` }
CDNSettings define CDN settings for a Global LB
func (CDNSettings) String ¶ added in v1.111.0
func (c CDNSettings) String() string
String creates a human-readable description of a CDNSettings
type CDNUpdateCustomDomainRequest ¶ added in v1.7.5
type CDNUpdateCustomDomainRequest struct { CustomDomain string `json:"custom_domain"` CertificateID string `json:"certificate_id"` }
CDNUpdateCustomDomainRequest represents a request to update the custom domain of a CDN.
type CDNUpdateTTLRequest ¶ added in v1.7.5
type CDNUpdateTTLRequest struct {
TTL uint32 `json:"ttl"`
}
CDNUpdateTTLRequest represents a request to update the ttl of a CDN.
type Certificate ¶ added in v1.0.0
type Certificate struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` DNSNames []string `json:"dns_names,omitempty"` NotAfter string `json:"not_after,omitempty"` SHA1Fingerprint string `json:"sha1_fingerprint,omitempty"` Created string `json:"created_at,omitempty"` State string `json:"state,omitempty"` Type string `json:"type,omitempty"` }
Certificate represents a DigitalOcean certificate configuration.
type CertificateRequest ¶ added in v1.0.0
type CertificateRequest struct { Name string `json:"name,omitempty"` DNSNames []string `json:"dns_names,omitempty"` PrivateKey string `json:"private_key,omitempty"` LeafCertificate string `json:"leaf_certificate,omitempty"` CertificateChain string `json:"certificate_chain,omitempty"` Type string `json:"type,omitempty"` }
CertificateRequest represents configuration for a new certificate.
type CertificatesService ¶ added in v1.0.0
type CertificatesService interface { Get(context.Context, string) (*Certificate, *Response, error) List(context.Context, *ListOptions) ([]Certificate, *Response, error) ListByName(context.Context, string, *ListOptions) ([]Certificate, *Response, error) Create(context.Context, *CertificateRequest) (*Certificate, *Response, error) Delete(context.Context, string) (*Response, error) }
CertificatesService is an interface for managing certificates with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Certificates
type CertificatesServiceOp ¶ added in v1.0.0
type CertificatesServiceOp struct {
// contains filtered or unexported fields
}
CertificatesServiceOp handles communication with certificates methods of the DigitalOcean API.
func (*CertificatesServiceOp) Create ¶ added in v1.0.0
func (c *CertificatesServiceOp) Create(ctx context.Context, cr *CertificateRequest) (*Certificate, *Response, error)
Create a new certificate with provided configuration.
func (*CertificatesServiceOp) Get ¶ added in v1.0.0
func (c *CertificatesServiceOp) Get(ctx context.Context, cID string) (*Certificate, *Response, error)
Get an existing certificate by its identifier.
func (*CertificatesServiceOp) List ¶ added in v1.0.0
func (c *CertificatesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Certificate, *Response, error)
List all certificates.
func (*CertificatesServiceOp) ListByName ¶ added in v1.110.0
func (c *CertificatesServiceOp) ListByName(ctx context.Context, name string, opt *ListOptions) ([]Certificate, *Response, error)
type Client ¶
type Client struct { // HTTP client used to communicate with the DO API. HTTPClient *http.Client // Base URL for API requests. BaseURL *url.URL // User agent for client UserAgent string // Rate contains the current rate limit for the client as determined by the most recent // API call. It is not thread-safe. Please consider using GetRate() instead. Rate Rate // Services used for communicating with the API Account AccountService Actions ActionsService Apps AppsService Balance BalanceService BillingHistory BillingHistoryService CDNs CDNService Certificates CertificatesService Databases DatabasesService Domains DomainsService Droplets DropletsService DropletActions DropletActionsService DropletAutoscale DropletAutoscaleService Firewalls FirewallsService FloatingIPs FloatingIPsService FloatingIPActions FloatingIPActionsService Functions FunctionsService Images ImagesService ImageActions ImageActionsService Invoices InvoicesService Keys KeysService Kubernetes KubernetesService LoadBalancers LoadBalancersService Monitoring MonitoringService OneClick OneClickService Projects ProjectsService Regions RegionsService Registry RegistryService Registries RegistriesService ReservedIPs ReservedIPsService ReservedIPV6s ReservedIPV6sService ReservedIPActions ReservedIPActionsService ReservedIPV6Actions ReservedIPV6ActionsService Sizes SizesService Snapshots SnapshotsService SpacesKeys SpacesKeysService Storage StorageService StorageActions StorageActionsService Tags TagsService UptimeChecks UptimeChecksService VPCs VPCsService PartnerInterconnectAttachments PartnerInterconnectAttachmentsService // Optional retry values. Setting the RetryConfig.RetryMax value enables automatically retrying requests // that fail with 429 or 500-level response codes using the go-retryablehttp client RetryConfig RetryConfig // contains filtered or unexported fields }
Client manages communication with DigitalOcean V2 API.
func NewClient ¶
NewClient returns a new DigitalOcean API client, using the given http.Client to perform all requests.
Users who wish to pass their own http.Client should use this method. If you're in need of further customization, the godo.New method allows more options, such as setting a custom URL or a custom user agent string.
func NewFromToken ¶ added in v1.31.0
NewFromToken returns a new DigitalOcean API client with the given API token.
func (*Client) Do ¶
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.
func (*Client) GetRate ¶ added in v1.40.0
GetRate returns the current rate limit for the client as determined by the most recent API call. It is thread-safe.
func (*Client) NewRequest ¶
func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error)
NewRequest creates an API request. A relative URL can be provided in urlStr, which will be resolved to the BaseURL of the Client. Relative URLS should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included in as the request body.
func (*Client) OnRequestCompleted ¶ added in v0.9.0
func (c *Client) OnRequestCompleted(rc RequestCompletionCallback)
OnRequestCompleted sets the DO API request completion callback
type ClientOpt ¶ added in v1.0.0
ClientOpt are options for New.
func SetBaseURL ¶ added in v1.0.0
SetBaseURL is a client option for setting the base URL.
func SetRequestHeaders ¶ added in v1.55.0
SetRequestHeaders sets optional HTTP headers on the client that are sent on each HTTP request.
func SetStaticRateLimit ¶ added in v1.87.0
SetStaticRateLimit sets an optional client-side rate limiter that restricts the number of queries per second that the client can send to enforce QoS.
func SetUserAgent ¶ added in v1.0.0
SetUserAgent is a client option for setting the user agent.
func WithRetryAndBackoffs ¶ added in v1.101.0
func WithRetryAndBackoffs(retryConfig RetryConfig) ClientOpt
WithRetryAndBackoffs sets retry values. Setting the RetryConfig.RetryMax value enables automatically retrying requests that fail with 429 or 500-level response codes using the go-retryablehttp client
type ClusterlintDiagnostic ¶ added in v1.53.0
type ClusterlintDiagnostic struct { CheckName string `json:"check_name"` Severity string `json:"severity"` Message string `json:"message"` Object *ClusterlintObject `json:"object"` }
ClusterlintDiagnostic is a diagnostic returned from clusterlint.
type ClusterlintObject ¶ added in v1.53.0
type ClusterlintObject struct { Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` Owners []*ClusterlintOwner `json:"owners,omitempty"` }
ClusterlintObject is the object a clusterlint diagnostic refers to.
type ClusterlintOwner ¶ added in v1.53.0
ClusterlintOwner indicates the resource that owns the offending object.
type CreateProjectRequest ¶ added in v1.6.0
type CreateProjectRequest struct { Name string `json:"name"` Description string `json:"description"` Purpose string `json:"purpose"` Environment string `json:"environment"` }
CreateProjectRequest represents the request to create a new project.
type CreateUptimeAlertRequest ¶ added in v1.94.0
type CreateUptimeAlertRequest struct { Name string `json:"name"` Type string `json:"type"` Threshold int `json:"threshold"` Comparison UptimeAlertComp `json:"comparison"` Notifications *Notifications `json:"notifications"` Period string `json:"period"` }
CreateUptimeUptimeAlertRequest represents the request to create a new Uptime Alert.
type CreateUptimeCheckRequest ¶ added in v1.94.0
type CreateUptimeCheckRequest struct { Name string `json:"name"` Type string `json:"type"` Target string `json:"target"` Regions []string `json:"regions"` Enabled bool `json:"enabled"` }
CreateUptimeCheckRequest represents the request to create a new uptime check.
type CustomImageCreateRequest ¶ added in v1.7.1
type CustomImageCreateRequest struct { Name string `json:"name"` Url string `json:"url"` Region string `json:"region"` Distribution string `json:"distribution,omitempty"` Description string `json:"description,omitempty"` Tags []string `json:"tags,omitempty"` }
CustomImageCreateRequest represents a request to create a custom image.
type Database ¶ added in v1.10.0
type Database struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` EngineSlug string `json:"engine,omitempty"` VersionSlug string `json:"version,omitempty"` Connection *DatabaseConnection `json:"connection,omitempty"` UIConnection *DatabaseConnection `json:"ui_connection,omitempty"` PrivateConnection *DatabaseConnection `json:"private_connection,omitempty"` StandbyConnection *DatabaseConnection `json:"standby_connection,omitempty"` StandbyPrivateConnection *DatabaseConnection `json:"standby_private_connection,omitempty"` Users []DatabaseUser `json:"users,omitempty"` NumNodes int `json:"num_nodes,omitempty"` SizeSlug string `json:"size,omitempty"` DBNames []string `json:"db_names,omitempty"` RegionSlug string `json:"region,omitempty"` Status string `json:"status,omitempty"` MaintenanceWindow *DatabaseMaintenanceWindow `json:"maintenance_window,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` PrivateNetworkUUID string `json:"private_network_uuid,omitempty"` Tags []string `json:"tags,omitempty"` ProjectID string `json:"project_id,omitempty"` StorageSizeMib uint64 `json:"storage_size_mib,omitempty"` MetricsEndpoints []*ServiceAddress `json:"metrics_endpoints,omitempty"` }
Database represents a DigitalOcean managed database product. These managed databases are usually comprised of a cluster of database nodes, a primary and 0 or more replicas. The EngineSlug is a string which indicates the type of database service. Some examples are "pg", "mysql" or "redis". A Database also includes connection information and other properties of the service like region, size and current status.
type DatabaseBackup ¶ added in v1.10.0
type DatabaseBackup struct { CreatedAt time.Time `json:"created_at,omitempty"` SizeGigabytes float64 `json:"size_gigabytes,omitempty"` }
DatabaseBackup represents a database backup.
type DatabaseBackupRestore ¶ added in v1.60.0
type DatabaseBackupRestore struct { DatabaseName string `json:"database_name,omitempty"` BackupCreatedAt string `json:"backup_created_at,omitempty"` }
DatabaseBackupRestore contains information needed to restore a backup.
type DatabaseCA ¶ added in v1.61.0
type DatabaseCA struct {
Certificate []byte `json:"certificate"`
}
DatabaseCA represents a database ca.
type DatabaseConnection ¶ added in v1.10.0
type DatabaseConnection struct { Protocol string `json:"protocol"` URI string `json:"uri,omitempty"` Database string `json:"database,omitempty"` Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` User string `json:"user,omitempty"` Password string `json:"password,omitempty"` SSL bool `json:"ssl,omitempty"` ApplicationPorts map[string]uint32 `json:"application_ports,omitempty"` }
DatabaseConnection represents a database connection
type DatabaseCreateDBRequest ¶ added in v1.10.0
type DatabaseCreateDBRequest struct {
Name string `json:"name"`
}
DatabaseCreateDBRequest is used to create a new engine-specific database within the cluster
type DatabaseCreateFirewallRule ¶ added in v1.131.0
type DatabaseCreateFirewallRule struct { UUID string `json:"uuid"` Type string `json:"type"` Value string `json:"value"` }
DatabaseCreateFirewallRule is a rule describing an inbound source to a database
type DatabaseCreateLogsinkRequest ¶ added in v1.121.0
type DatabaseCreateLogsinkRequest struct { Name string `json:"sink_name"` Type string `json:"sink_type"` Config *DatabaseLogsinkConfig `json:"config"` }
DatabaseCreateLogsinkRequest is used to create logsink for a database cluster
type DatabaseCreatePoolRequest ¶ added in v1.10.0
type DatabaseCreatePoolRequest struct { User string `json:"user"` Name string `json:"name"` Size int `json:"size"` Database string `json:"db"` Mode string `json:"mode"` }
DatabaseCreatePoolRequest is used to create a new database connection pool
type DatabaseCreateReplicaRequest ¶ added in v1.10.0
type DatabaseCreateReplicaRequest struct { Name string `json:"name"` Region string `json:"region"` Size string `json:"size"` PrivateNetworkUUID string `json:"private_network_uuid"` Tags []string `json:"tags,omitempty"` StorageSizeMib uint64 `json:"storage_size_mib,omitempty"` }
DatabaseCreateReplicaRequest is used to create a new read-only replica
type DatabaseCreateRequest ¶ added in v1.10.0
type DatabaseCreateRequest struct { Name string `json:"name,omitempty"` EngineSlug string `json:"engine,omitempty"` Version string `json:"version,omitempty"` SizeSlug string `json:"size,omitempty"` Region string `json:"region,omitempty"` NumNodes int `json:"num_nodes,omitempty"` PrivateNetworkUUID string `json:"private_network_uuid"` Tags []string `json:"tags,omitempty"` BackupRestore *DatabaseBackupRestore `json:"backup_restore,omitempty"` ProjectID string `json:"project_id"` StorageSizeMib uint64 `json:"storage_size_mib,omitempty"` Rules []*DatabaseCreateFirewallRule `json:"rules"` }
DatabaseCreateRequest represents a request to create a database cluster
type DatabaseCreateTopicRequest ¶ added in v1.103.0
type DatabaseCreateTopicRequest struct { Name string `json:"name"` PartitionCount *uint32 `json:"partition_count,omitempty"` ReplicationFactor *uint32 `json:"replication_factor,omitempty"` Config *TopicConfig `json:"config,omitempty"` }
DatabaseCreateTopicRequest is used to create a new topic within a kafka cluster
type DatabaseCreateUserRequest ¶ added in v1.10.0
type DatabaseCreateUserRequest struct { Name string `json:"name"` MySQLSettings *DatabaseMySQLUserSettings `json:"mysql_settings,omitempty"` Settings *DatabaseUserSettings `json:"settings,omitempty"` }
DatabaseCreateUserRequest is used to create a new database user
type DatabaseDB ¶ added in v1.10.0
type DatabaseDB struct {
Name string `json:"name"`
}
DatabaseDB represents an engine-specific database created within a database cluster. For SQL databases like PostgreSQL or MySQL, a "DB" refers to a database created on the RDBMS. For instance, a PostgreSQL database server can contain many database schemas, each with its own settings, access permissions and data. ListDBs will return all databases present on the server.
type DatabaseEngineOptions ¶ added in v1.83.0
type DatabaseEngineOptions struct { Regions []string `json:"regions"` Versions []string `json:"versions"` Layouts []DatabaseLayout `json:"layouts"` }
DatabaseEngineOptions represents the configuration options that are available for a given database engine
type DatabaseEvent ¶ added in v1.112.0
type DatabaseEvent struct { ID string `json:"id"` ServiceName string `json:"cluster_name"` EventType string `json:"event_type"` CreateTime string `json:"create_time"` }
DatbaseEvent contains the information about a Datbase event.
type DatabaseFirewallRule ¶ added in v1.23.0
type DatabaseFirewallRule struct { UUID string `json:"uuid"` ClusterUUID string `json:"cluster_uuid"` Type string `json:"type"` Value string `json:"value"` CreatedAt time.Time `json:"created_at"` }
DatabaseFirewallRule is a rule describing an inbound source to a database
type DatabaseIndex ¶ added in v1.121.0
type DatabaseIndex struct { IndexName string `json:"index_name"` NumberofShards uint64 `json:"number_of_shards"` NumberofReplicas uint64 `json:"number_of_replicas"` Size int64 `json:"size,omitempty"` Health string `json:"health,omitempty"` Status string `json:"status,omitempty"` Docs int64 `json:"docs,omitempty"` CreateTime string `json:"create_time"` Replication *IndexReplication `json:"replication,omitempty"` }
type DatabaseLayout ¶ added in v1.83.0
DatabaseLayout represents the slugs available for a given database engine at various node counts
type DatabaseLogsink ¶ added in v1.121.0
type DatabaseLogsink struct { ID string `json:"sink_id"` Name string `json:"sink_name,omitempty"` Type string `json:"sink_type,omitempty"` Config *DatabaseLogsinkConfig `json:"config,omitempty"` }
DatabaseLogsink represents a logsink
type DatabaseLogsinkConfig ¶ added in v1.121.0
type DatabaseLogsinkConfig struct { URL string `json:"url,omitempty"` IndexPrefix string `json:"index_prefix,omitempty"` IndexDaysMax int `json:"index_days_max,omitempty"` Timeout float32 `json:"timeout,omitempty"` Server string `json:"server,omitempty"` Port int `json:"port,omitempty"` TLS bool `json:"tls,omitempty"` Format string `json:"format,omitempty"` Logline string `json:"logline,omitempty"` SD string `json:"sd,omitempty"` CA string `json:"ca,omitempty"` Key string `json:"key,omitempty"` Cert string `json:"cert,omitempty"` }
DatabaseLogsinkConfig represents one of the configurable options (rsyslog_logsink, elasticsearch_logsink, or opensearch_logsink) for a logsink.
type DatabaseMaintenanceWindow ¶ added in v1.10.0
type DatabaseMaintenanceWindow struct { Day string `json:"day,omitempty"` Hour string `json:"hour,omitempty"` Pending bool `json:"pending,omitempty"` Description []string `json:"description,omitempty"` }
DatabaseMaintenanceWindow represents the maintenance_window of a database cluster
type DatabaseMetricsCredentials ¶ added in v1.110.0
type DatabaseMigrateRequest ¶ added in v1.10.0
type DatabaseMigrateRequest struct { Region string `json:"region,omitempty"` PrivateNetworkUUID string `json:"private_network_uuid"` }
DatabaseMigrateRequest can be used to initiate a database migrate operation.
type DatabaseMySQLUserSettings ¶ added in v1.27.0
type DatabaseMySQLUserSettings struct {
AuthPlugin string `json:"auth_plugin"`
}
DatabaseMySQLUserSettings contains MySQL-specific user settings
type DatabaseOnlineMigrationConfig ¶ added in v1.136.0
type DatabaseOnlineMigrationConfig struct { Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` DatabaseName string `json:"dbname,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
DatabaseOnlineMigrationConfig represents the configuration options for database online migrations.
type DatabaseOnlineMigrationStatus ¶ added in v1.136.0
type DatabaseOnlineMigrationStatus struct { ID string `json:"id"` Status string `json:"status"` CreatedAt string `json:"created_at"` }
DatabaseOnlineMigrationStatus represents an online migration status
type DatabaseOptions ¶ added in v1.83.0
type DatabaseOptions struct { MongoDBOptions DatabaseEngineOptions `json:"mongodb"` MySQLOptions DatabaseEngineOptions `json:"mysql"` PostgresSQLOptions DatabaseEngineOptions `json:"pg"` RedisOptions DatabaseEngineOptions `json:"redis"` KafkaOptions DatabaseEngineOptions `json:"kafka"` OpensearchOptions DatabaseEngineOptions `json:"opensearch"` }
DatabaseOptions represents the available database engines
type DatabasePool ¶ added in v1.10.0
type DatabasePool struct { User string `json:"user"` Name string `json:"name"` Size int `json:"size"` Database string `json:"db"` Mode string `json:"mode"` Connection *DatabaseConnection `json:"connection"` PrivateConnection *DatabaseConnection `json:"private_connection,omitempty"` StandbyConnection *DatabaseConnection `json:"standby_connection,omitempty"` StandbyPrivateConnection *DatabaseConnection `json:"standby_private_connection,omitempty"` }
DatabasePool represents a database connection pool
type DatabaseReplica ¶ added in v1.10.0
type DatabaseReplica struct { ID string `json:"id"` Name string `json:"name"` Connection *DatabaseConnection `json:"connection"` PrivateConnection *DatabaseConnection `json:"private_connection,omitempty"` Region string `json:"region"` Status string `json:"status"` CreatedAt time.Time `json:"created_at"` PrivateNetworkUUID string `json:"private_network_uuid,omitempty"` Tags []string `json:"tags,omitempty"` StorageSizeMib uint64 `json:"storage_size_mib,omitempty"` Size string `json:"size"` }
DatabaseReplica represents a read-only replica of a particular database
type DatabaseResetUserAuthRequest ¶ added in v1.32.0
type DatabaseResetUserAuthRequest struct { MySQLSettings *DatabaseMySQLUserSettings `json:"mysql_settings,omitempty"` Settings *DatabaseUserSettings `json:"settings,omitempty"` }
DatabaseResetUserAuthRequest is used to reset a users DB auth
type DatabaseResizeRequest ¶ added in v1.10.0
type DatabaseResizeRequest struct { SizeSlug string `json:"size,omitempty"` NumNodes int `json:"num_nodes,omitempty"` StorageSizeMib uint64 `json:"storage_size_mib,omitempty"` }
DatabaseResizeRequest can be used to initiate a database resize operation.
type DatabaseStartOnlineMigrationRequest ¶ added in v1.136.0
type DatabaseStartOnlineMigrationRequest struct { Source *DatabaseOnlineMigrationConfig `json:"source"` DisableSSL bool `json:"disable_ssl,omitempty"` IgnoreDBs []string `json:"ignore_dbs,omitempty"` }
DatabaseStartOnlineMigrationRequest is used to start an online migration for a database cluster
type DatabaseTopic ¶ added in v1.103.0
type DatabaseTopic struct { Name string `json:"name"` Partitions []*TopicPartition `json:"partitions,omitempty"` ReplicationFactor *uint32 `json:"replication_factor,omitempty"` State string `json:"state,omitempty"` Config *TopicConfig `json:"config,omitempty"` }
DatabaseTopic represents a Kafka topic
type DatabaseUpdateFirewallRulesRequest ¶ added in v1.23.0
type DatabaseUpdateFirewallRulesRequest struct {
Rules []*DatabaseFirewallRule `json:"rules"`
}
DatabaseUpdateFirewallRulesRequest is used to set the firewall rules for a database
type DatabaseUpdateLogsinkRequest ¶ added in v1.121.0
type DatabaseUpdateLogsinkRequest struct {
Config *DatabaseLogsinkConfig `json:"config"`
}
DatabaseUpdateLogsinkRequest is used to update logsink for a database cluster
type DatabaseUpdateMaintenanceRequest ¶ added in v1.10.0
type DatabaseUpdateMaintenanceRequest struct { Day string `json:"day,omitempty"` Hour string `json:"hour,omitempty"` }
DatabaseUpdateMaintenanceRequest can be used to update the database's maintenance window.
type DatabaseUpdateMetricsCredentialsRequest ¶ added in v1.110.0
type DatabaseUpdateMetricsCredentialsRequest struct {
Credentials *DatabaseMetricsCredentials `json:"credentials"`
}
type DatabaseUpdatePoolRequest ¶ added in v1.94.0
type DatabaseUpdatePoolRequest struct { User string `json:"user,omitempty"` Size int `json:"size"` Database string `json:"db"` Mode string `json:"mode"` }
DatabaseUpdatePoolRequest is used to update a database connection pool
type DatabaseUpdateTopicRequest ¶ added in v1.103.0
type DatabaseUpdateTopicRequest struct { PartitionCount *uint32 `json:"partition_count,omitempty"` ReplicationFactor *uint32 `json:"replication_factor,omitempty"` Config *TopicConfig `json:"config,omitempty"` }
DatabaseUpdateTopicRequest ...
type DatabaseUpdateUserRequest ¶ added in v1.107.0
type DatabaseUpdateUserRequest struct {
Settings *DatabaseUserSettings `json:"settings,omitempty"`
}
DatabaseUpdateUserRequest is used to update an existing database user
type DatabaseUser ¶ added in v1.10.0
type DatabaseUser struct { Name string `json:"name,omitempty"` Role string `json:"role,omitempty"` Password string `json:"password,omitempty"` AccessCert string `json:"access_cert,omitempty"` AccessKey string `json:"access_key,omitempty"` MySQLSettings *DatabaseMySQLUserSettings `json:"mysql_settings,omitempty"` Settings *DatabaseUserSettings `json:"settings,omitempty"` }
DatabaseUser represents a user in the database
type DatabaseUserSettings ¶ added in v1.103.0
type DatabaseUserSettings struct { ACL []*KafkaACL `json:"acl,omitempty"` OpenSearchACL []*OpenSearchACL `json:"opensearch_acl,omitempty"` }
DatabaseUserSettings contains user settings
type DatabasesService ¶ added in v1.10.0
type DatabasesService interface { List(context.Context, *ListOptions) ([]Database, *Response, error) Get(context.Context, string) (*Database, *Response, error) GetCA(context.Context, string) (*DatabaseCA, *Response, error) Create(context.Context, *DatabaseCreateRequest) (*Database, *Response, error) Delete(context.Context, string) (*Response, error) Resize(context.Context, string, *DatabaseResizeRequest) (*Response, error) Migrate(context.Context, string, *DatabaseMigrateRequest) (*Response, error) UpdateMaintenance(context.Context, string, *DatabaseUpdateMaintenanceRequest) (*Response, error) InstallUpdate(context.Context, string) (*Response, error) ListBackups(context.Context, string, *ListOptions) ([]DatabaseBackup, *Response, error) GetUser(context.Context, string, string) (*DatabaseUser, *Response, error) ListUsers(context.Context, string, *ListOptions) ([]DatabaseUser, *Response, error) CreateUser(context.Context, string, *DatabaseCreateUserRequest) (*DatabaseUser, *Response, error) UpdateUser(context.Context, string, string, *DatabaseUpdateUserRequest) (*DatabaseUser, *Response, error) DeleteUser(context.Context, string, string) (*Response, error) ResetUserAuth(context.Context, string, string, *DatabaseResetUserAuthRequest) (*DatabaseUser, *Response, error) ListDBs(context.Context, string, *ListOptions) ([]DatabaseDB, *Response, error) CreateDB(context.Context, string, *DatabaseCreateDBRequest) (*DatabaseDB, *Response, error) GetDB(context.Context, string, string) (*DatabaseDB, *Response, error) DeleteDB(context.Context, string, string) (*Response, error) ListPools(context.Context, string, *ListOptions) ([]DatabasePool, *Response, error) CreatePool(context.Context, string, *DatabaseCreatePoolRequest) (*DatabasePool, *Response, error) GetPool(context.Context, string, string) (*DatabasePool, *Response, error) DeletePool(context.Context, string, string) (*Response, error) UpdatePool(context.Context, string, string, *DatabaseUpdatePoolRequest) (*Response, error) GetReplica(context.Context, string, string) (*DatabaseReplica, *Response, error) ListReplicas(context.Context, string, *ListOptions) ([]DatabaseReplica, *Response, error) CreateReplica(context.Context, string, *DatabaseCreateReplicaRequest) (*DatabaseReplica, *Response, error) DeleteReplica(context.Context, string, string) (*Response, error) PromoteReplicaToPrimary(context.Context, string, string) (*Response, error) GetEvictionPolicy(context.Context, string) (string, *Response, error) SetEvictionPolicy(context.Context, string, string) (*Response, error) GetSQLMode(context.Context, string) (string, *Response, error) SetSQLMode(context.Context, string, ...string) (*Response, error) GetFirewallRules(context.Context, string) ([]DatabaseFirewallRule, *Response, error) UpdateFirewallRules(context.Context, string, *DatabaseUpdateFirewallRulesRequest) (*Response, error) GetPostgreSQLConfig(context.Context, string) (*PostgreSQLConfig, *Response, error) GetRedisConfig(context.Context, string) (*RedisConfig, *Response, error) GetMySQLConfig(context.Context, string) (*MySQLConfig, *Response, error) GetMongoDBConfig(context.Context, string) (*MongoDBConfig, *Response, error) GetOpensearchConfig(context.Context, string) (*OpensearchConfig, *Response, error) GetKafkaConfig(context.Context, string) (*KafkaConfig, *Response, error) UpdatePostgreSQLConfig(context.Context, string, *PostgreSQLConfig) (*Response, error) UpdateRedisConfig(context.Context, string, *RedisConfig) (*Response, error) UpdateMySQLConfig(context.Context, string, *MySQLConfig) (*Response, error) UpdateMongoDBConfig(context.Context, string, *MongoDBConfig) (*Response, error) UpdateOpensearchConfig(context.Context, string, *OpensearchConfig) (*Response, error) UpdateKafkaConfig(context.Context, string, *KafkaConfig) (*Response, error) ListOptions(todo context.Context) (*DatabaseOptions, *Response, error) UpgradeMajorVersion(context.Context, string, *UpgradeVersionRequest) (*Response, error) ListTopics(context.Context, string, *ListOptions) ([]DatabaseTopic, *Response, error) CreateTopic(context.Context, string, *DatabaseCreateTopicRequest) (*DatabaseTopic, *Response, error) GetTopic(context.Context, string, string) (*DatabaseTopic, *Response, error) DeleteTopic(context.Context, string, string) (*Response, error) UpdateTopic(context.Context, string, string, *DatabaseUpdateTopicRequest) (*Response, error) GetMetricsCredentials(context.Context) (*DatabaseMetricsCredentials, *Response, error) UpdateMetricsCredentials(context.Context, *DatabaseUpdateMetricsCredentialsRequest) (*Response, error) ListDatabaseEvents(context.Context, string, *ListOptions) ([]DatabaseEvent, *Response, error) ListIndexes(context.Context, string, *ListOptions) ([]DatabaseIndex, *Response, error) DeleteIndex(context.Context, string, string) (*Response, error) CreateLogsink(ctx context.Context, databaseID string, createLogsink *DatabaseCreateLogsinkRequest) (*DatabaseLogsink, *Response, error) GetLogsink(ctx context.Context, databaseID string, logsinkID string) (*DatabaseLogsink, *Response, error) ListLogsinks(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseLogsink, *Response, error) UpdateLogsink(ctx context.Context, databaseID string, logsinkID string, updateLogsink *DatabaseUpdateLogsinkRequest) (*Response, error) DeleteLogsink(ctx context.Context, databaseID, logsinkID string) (*Response, error) StartOnlineMigration(ctx context.Context, databaseID string, onlineMigrationRequest *DatabaseStartOnlineMigrationRequest) (*DatabaseOnlineMigrationStatus, *Response, error) StopOnlineMigration(ctx context.Context, databaseID, migrationID string) (*Response, error) GetOnlineMigrationStatus(ctx context.Context, databaseID string) (*DatabaseOnlineMigrationStatus, *Response, error) }
The DatabasesService provides access to the DigitalOcean managed database suite of products through the public API. Customers can create new database clusters, migrate them between regions, create replicas and interact with their configurations. Each database service is referred to as a Database. A SQL database service can have multiple databases residing in the system. To help make these entities distinct from Databases in godo, we refer to them here as DatabaseDBs.
See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Databases
type DatabasesServiceOp ¶ added in v1.10.0
type DatabasesServiceOp struct {
// contains filtered or unexported fields
}
DatabasesServiceOp handles communication with the Databases related methods of the DigitalOcean API.
func (*DatabasesServiceOp) Create ¶ added in v1.10.0
func (svc *DatabasesServiceOp) Create(ctx context.Context, create *DatabaseCreateRequest) (*Database, *Response, error)
Create creates a database cluster
func (*DatabasesServiceOp) CreateDB ¶ added in v1.10.0
func (svc *DatabasesServiceOp) CreateDB(ctx context.Context, databaseID string, createDB *DatabaseCreateDBRequest) (*DatabaseDB, *Response, error)
CreateDB will create a new database
func (*DatabasesServiceOp) CreateLogsink ¶ added in v1.121.0
func (svc *DatabasesServiceOp) CreateLogsink(ctx context.Context, databaseID string, createLogsink *DatabaseCreateLogsinkRequest) (*DatabaseLogsink, *Response, error)
CreateLogsink creates a new logsink for a database
func (*DatabasesServiceOp) CreatePool ¶ added in v1.10.0
func (svc *DatabasesServiceOp) CreatePool(ctx context.Context, databaseID string, createPool *DatabaseCreatePoolRequest) (*DatabasePool, *Response, error)
CreatePool will create a new database connection pool
func (*DatabasesServiceOp) CreateReplica ¶ added in v1.10.0
func (svc *DatabasesServiceOp) CreateReplica(ctx context.Context, databaseID string, createReplica *DatabaseCreateReplicaRequest) (*DatabaseReplica, *Response, error)
CreateReplica will create a new database connection pool
func (*DatabasesServiceOp) CreateTopic ¶ added in v1.103.0
func (svc *DatabasesServiceOp) CreateTopic(ctx context.Context, databaseID string, createTopic *DatabaseCreateTopicRequest) (*DatabaseTopic, *Response, error)
CreateTopic will create a new kafka topic
func (*DatabasesServiceOp) CreateUser ¶ added in v1.10.0
func (svc *DatabasesServiceOp) CreateUser(ctx context.Context, databaseID string, createUser *DatabaseCreateUserRequest) (*DatabaseUser, *Response, error)
CreateUser will create a new database user
func (*DatabasesServiceOp) Delete ¶ added in v1.10.0
Delete deletes a database cluster. There is no way to recover a cluster once it has been destroyed.
func (*DatabasesServiceOp) DeleteDB ¶ added in v1.10.0
func (svc *DatabasesServiceOp) DeleteDB(ctx context.Context, databaseID, name string) (*Response, error)
DeleteDB will delete an existing database
func (*DatabasesServiceOp) DeleteIndex ¶ added in v1.121.0
func (svc *DatabasesServiceOp) DeleteIndex(ctx context.Context, databaseID, name string) (*Response, error)
DeleteIndex will delete an existing opensearch index
func (*DatabasesServiceOp) DeleteLogsink ¶ added in v1.121.0
func (svc *DatabasesServiceOp) DeleteLogsink(ctx context.Context, databaseID, logsinkID string) (*Response, error)
DeleteLogsink deletes a logsink for a database cluster
func (*DatabasesServiceOp) DeletePool ¶ added in v1.10.0
func (svc *DatabasesServiceOp) DeletePool(ctx context.Context, databaseID, name string) (*Response, error)
DeletePool will delete an existing database connection pool
func (*DatabasesServiceOp) DeleteReplica ¶ added in v1.10.0
func (svc *DatabasesServiceOp) DeleteReplica(ctx context.Context, databaseID, name string) (*Response, error)
DeleteReplica will delete an existing database replica
func (*DatabasesServiceOp) DeleteTopic ¶ added in v1.103.0
func (svc *DatabasesServiceOp) DeleteTopic(ctx context.Context, databaseID, name string) (*Response, error)
DeleteTopic will delete an existing kafka topic
func (*DatabasesServiceOp) DeleteUser ¶ added in v1.10.0
func (svc *DatabasesServiceOp) DeleteUser(ctx context.Context, databaseID, userID string) (*Response, error)
DeleteUser will delete an existing database user
func (*DatabasesServiceOp) Get ¶ added in v1.10.0
func (svc *DatabasesServiceOp) Get(ctx context.Context, databaseID string) (*Database, *Response, error)
Get retrieves the details of a database cluster
func (*DatabasesServiceOp) GetCA ¶ added in v1.61.0
func (svc *DatabasesServiceOp) GetCA(ctx context.Context, databaseID string) (*DatabaseCA, *Response, error)
GetCA retrieves the CA of a database cluster.
func (*DatabasesServiceOp) GetDB ¶ added in v1.10.0
func (svc *DatabasesServiceOp) GetDB(ctx context.Context, databaseID, name string) (*DatabaseDB, *Response, error)
GetDB returns a single database by name
func (*DatabasesServiceOp) GetEvictionPolicy ¶ added in v1.17.0
func (svc *DatabasesServiceOp) GetEvictionPolicy(ctx context.Context, databaseID string) (string, *Response, error)
GetEvictionPolicy loads the eviction policy for a given Redis cluster.
func (*DatabasesServiceOp) GetFirewallRules ¶ added in v1.23.0
func (svc *DatabasesServiceOp) GetFirewallRules(ctx context.Context, databaseID string) ([]DatabaseFirewallRule, *Response, error)
GetFirewallRules loads the inbound sources for a given cluster.
func (*DatabasesServiceOp) GetKafkaConfig ¶ added in v1.126.0
func (svc *DatabasesServiceOp) GetKafkaConfig(ctx context.Context, databaseID string) (*KafkaConfig, *Response, error)
GetKafkaConfig retrieves the config for a Kafka database cluster.
func (*DatabasesServiceOp) GetLogsink ¶ added in v1.121.0
func (svc *DatabasesServiceOp) GetLogsink(ctx context.Context, databaseID string, logsinkID string) (*DatabaseLogsink, *Response, error)
GetLogsink gets a logsink for a database
func (*DatabasesServiceOp) GetMetricsCredentials ¶ added in v1.110.0
func (svc *DatabasesServiceOp) GetMetricsCredentials(ctx context.Context) (*DatabaseMetricsCredentials, *Response, error)
GetMetricsCredentials gets the credentials required to access a user's metrics endpoints
func (*DatabasesServiceOp) GetMongoDBConfig ¶ added in v1.125.0
func (svc *DatabasesServiceOp) GetMongoDBConfig(ctx context.Context, databaseID string) (*MongoDBConfig, *Response, error)
GetMongoDBConfig retrieves the config for a MongoDB database cluster.
func (*DatabasesServiceOp) GetMySQLConfig ¶ added in v1.82.0
func (svc *DatabasesServiceOp) GetMySQLConfig(ctx context.Context, databaseID string) (*MySQLConfig, *Response, error)
GetMySQLConfig retrieves the config for a MySQL database cluster.
func (*DatabasesServiceOp) GetOnlineMigrationStatus ¶ added in v1.136.0
func (svc *DatabasesServiceOp) GetOnlineMigrationStatus(ctx context.Context, databaseID string) (*DatabaseOnlineMigrationStatus, *Response, error)
GetOnlineMigrationStatus retrieves the status of the most recent online migration
func (*DatabasesServiceOp) GetOpensearchConfig ¶ added in v1.127.0
func (svc *DatabasesServiceOp) GetOpensearchConfig(ctx context.Context, databaseID string) (*OpensearchConfig, *Response, error)
GetOpensearchConfig retrieves the config for a Opensearch database cluster.
func (*DatabasesServiceOp) GetPool ¶ added in v1.10.0
func (svc *DatabasesServiceOp) GetPool(ctx context.Context, databaseID, name string) (*DatabasePool, *Response, error)
GetPool returns a single database connection pool by name
func (*DatabasesServiceOp) GetPostgreSQLConfig ¶ added in v1.82.0
func (svc *DatabasesServiceOp) GetPostgreSQLConfig(ctx context.Context, databaseID string) (*PostgreSQLConfig, *Response, error)
GetPostgreSQLConfig retrieves the config for a PostgreSQL database cluster.
func (*DatabasesServiceOp) GetRedisConfig ¶ added in v1.82.0
func (svc *DatabasesServiceOp) GetRedisConfig(ctx context.Context, databaseID string) (*RedisConfig, *Response, error)
GetRedisConfig retrieves the config for a Redis database cluster.
func (*DatabasesServiceOp) GetReplica ¶ added in v1.10.0
func (svc *DatabasesServiceOp) GetReplica(ctx context.Context, databaseID, name string) (*DatabaseReplica, *Response, error)
GetReplica returns a single database replica
func (*DatabasesServiceOp) GetSQLMode ¶ added in v1.26.0
func (svc *DatabasesServiceOp) GetSQLMode(ctx context.Context, databaseID string) (string, *Response, error)
GetSQLMode loads the SQL Mode settings for a given MySQL cluster.
func (*DatabasesServiceOp) GetTopic ¶ added in v1.103.0
func (svc *DatabasesServiceOp) GetTopic(ctx context.Context, databaseID, name string) (*DatabaseTopic, *Response, error)
GetTopic returns a single kafka topic by name
func (*DatabasesServiceOp) GetUser ¶ added in v1.10.0
func (svc *DatabasesServiceOp) GetUser(ctx context.Context, databaseID, userID string) (*DatabaseUser, *Response, error)
GetUser returns the database user identified by userID
func (*DatabasesServiceOp) InstallUpdate ¶ added in v1.124.0
func (svc *DatabasesServiceOp) InstallUpdate(ctx context.Context, databaseID string) (*Response, error)
InstallUpdate starts installation of updates
func (*DatabasesServiceOp) List ¶ added in v1.10.0
func (svc *DatabasesServiceOp) List(ctx context.Context, opts *ListOptions) ([]Database, *Response, error)
List returns a list of the Databases visible with the caller's API token
func (*DatabasesServiceOp) ListBackups ¶ added in v1.10.0
func (svc *DatabasesServiceOp) ListBackups(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseBackup, *Response, error)
ListBackups returns a list of the current backups of a database
func (*DatabasesServiceOp) ListDBs ¶ added in v1.10.0
func (svc *DatabasesServiceOp) ListDBs(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseDB, *Response, error)
ListDBs returns all databases for a given database cluster
func (*DatabasesServiceOp) ListDatabaseEvents ¶ added in v1.112.0
func (svc *DatabasesServiceOp) ListDatabaseEvents(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseEvent, *Response, error)
ListDatabaseEvents returns all the events for a given cluster
func (*DatabasesServiceOp) ListIndexes ¶ added in v1.121.0
func (svc *DatabasesServiceOp) ListIndexes(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseIndex, *Response, error)
ListIndexes returns all indexes for a given opensearch cluster
func (*DatabasesServiceOp) ListLogsinks ¶ added in v1.121.0
func (svc *DatabasesServiceOp) ListLogsinks(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseLogsink, *Response, error)
ListTopics returns all topics for a given kafka cluster
func (*DatabasesServiceOp) ListOptions ¶ added in v1.83.0
func (svc *DatabasesServiceOp) ListOptions(ctx context.Context) (*DatabaseOptions, *Response, error)
ListOptions gets the database options available.
func (*DatabasesServiceOp) ListPools ¶ added in v1.10.0
func (svc *DatabasesServiceOp) ListPools(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabasePool, *Response, error)
ListPools returns all connection pools for a given database cluster
func (*DatabasesServiceOp) ListReplicas ¶ added in v1.10.0
func (svc *DatabasesServiceOp) ListReplicas(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseReplica, *Response, error)
ListReplicas returns all read-only replicas for a given database cluster
func (*DatabasesServiceOp) ListTopics ¶ added in v1.103.0
func (svc *DatabasesServiceOp) ListTopics(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseTopic, *Response, error)
ListTopics returns all topics for a given kafka cluster
func (*DatabasesServiceOp) ListUsers ¶ added in v1.10.0
func (svc *DatabasesServiceOp) ListUsers(ctx context.Context, databaseID string, opts *ListOptions) ([]DatabaseUser, *Response, error)
ListUsers returns all database users for the database
func (*DatabasesServiceOp) Migrate ¶ added in v1.10.0
func (svc *DatabasesServiceOp) Migrate(ctx context.Context, databaseID string, migrate *DatabaseMigrateRequest) (*Response, error)
Migrate migrates a database cluster to a new region
func (*DatabasesServiceOp) PromoteReplicaToPrimary ¶ added in v1.96.0
func (svc *DatabasesServiceOp) PromoteReplicaToPrimary(ctx context.Context, databaseID, name string) (*Response, error)
PromoteReplicaToPrimary will sever the read replica integration and then promote the replica cluster to be a R/W cluster
func (*DatabasesServiceOp) ResetUserAuth ¶ added in v1.32.0
func (svc *DatabasesServiceOp) ResetUserAuth(ctx context.Context, databaseID, userID string, resetAuth *DatabaseResetUserAuthRequest) (*DatabaseUser, *Response, error)
ResetUserAuth will reset user authentication
func (*DatabasesServiceOp) Resize ¶ added in v1.10.0
func (svc *DatabasesServiceOp) Resize(ctx context.Context, databaseID string, resize *DatabaseResizeRequest) (*Response, error)
Resize resizes a database cluster by number of nodes or size
func (*DatabasesServiceOp) SetEvictionPolicy ¶ added in v1.17.0
func (svc *DatabasesServiceOp) SetEvictionPolicy(ctx context.Context, databaseID, policy string) (*Response, error)
SetEvictionPolicy updates the eviction policy for a given Redis cluster.
The valid eviction policies are documented by the exported string constants with the prefix `EvictionPolicy`.
func (*DatabasesServiceOp) SetSQLMode ¶ added in v1.26.0
func (svc *DatabasesServiceOp) SetSQLMode(ctx context.Context, databaseID string, sqlModes ...string) (*Response, error)
SetSQLMode updates the SQL Mode settings for a given MySQL cluster.
func (*DatabasesServiceOp) StartOnlineMigration ¶ added in v1.136.0
func (svc *DatabasesServiceOp) StartOnlineMigration(ctx context.Context, databaseID string, onlineMigration *DatabaseStartOnlineMigrationRequest) (*DatabaseOnlineMigrationStatus, *Response, error)
StartOnlineMigration starts an online migration for a database. Migrating a cluster establishes a connection with an existing cluster and replicates its contents to the target cluster. Online migration is only available for MySQL, PostgreSQL, and Redis clusters.
func (*DatabasesServiceOp) StopOnlineMigration ¶ added in v1.136.0
func (svc *DatabasesServiceOp) StopOnlineMigration(ctx context.Context, databaseID, migrationID string) (*Response, error)
StopOnlineMigration stops an online migration
func (*DatabasesServiceOp) UpdateFirewallRules ¶ added in v1.23.0
func (svc *DatabasesServiceOp) UpdateFirewallRules(ctx context.Context, databaseID string, firewallRulesReq *DatabaseUpdateFirewallRulesRequest) (*Response, error)
UpdateFirewallRules sets the inbound sources for a given cluster.
func (*DatabasesServiceOp) UpdateKafkaConfig ¶ added in v1.126.0
func (svc *DatabasesServiceOp) UpdateKafkaConfig(ctx context.Context, databaseID string, config *KafkaConfig) (*Response, error)
UpdateKafkaConfig updates the config for a Kafka database cluster.
func (*DatabasesServiceOp) UpdateLogsink ¶ added in v1.121.0
func (svc *DatabasesServiceOp) UpdateLogsink(ctx context.Context, databaseID string, logsinkID string, updateLogsink *DatabaseUpdateLogsinkRequest) (*Response, error)
UpdateLogsink updates a logsink for a database cluster
func (*DatabasesServiceOp) UpdateMaintenance ¶ added in v1.10.0
func (svc *DatabasesServiceOp) UpdateMaintenance(ctx context.Context, databaseID string, maintenance *DatabaseUpdateMaintenanceRequest) (*Response, error)
UpdateMaintenance updates the maintenance window on a cluster
func (*DatabasesServiceOp) UpdateMetricsCredentials ¶ added in v1.110.0
func (svc *DatabasesServiceOp) UpdateMetricsCredentials(ctx context.Context, updateCreds *DatabaseUpdateMetricsCredentialsRequest) (*Response, error)
UpdateMetricsAuth updates the credentials required to access a user's metrics endpoints
func (*DatabasesServiceOp) UpdateMongoDBConfig ¶ added in v1.125.0
func (svc *DatabasesServiceOp) UpdateMongoDBConfig(ctx context.Context, databaseID string, config *MongoDBConfig) (*Response, error)
UpdateMongoDBConfig updates the config for a MongoDB database cluster.
func (*DatabasesServiceOp) UpdateMySQLConfig ¶ added in v1.82.0
func (svc *DatabasesServiceOp) UpdateMySQLConfig(ctx context.Context, databaseID string, config *MySQLConfig) (*Response, error)
UpdateMySQLConfig updates the config for a MySQL database cluster.
func (*DatabasesServiceOp) UpdateOpensearchConfig ¶ added in v1.127.0
func (svc *DatabasesServiceOp) UpdateOpensearchConfig(ctx context.Context, databaseID string, config *OpensearchConfig) (*Response, error)
UpdateOpensearchConfig updates the config for a Opensearch database cluster.
func (*DatabasesServiceOp) UpdatePool ¶ added in v1.94.0
func (svc *DatabasesServiceOp) UpdatePool(ctx context.Context, databaseID, name string, updatePool *DatabaseUpdatePoolRequest) (*Response, error)
UpdatePool will update an existing database connection pool
func (*DatabasesServiceOp) UpdatePostgreSQLConfig ¶ added in v1.82.0
func (svc *DatabasesServiceOp) UpdatePostgreSQLConfig(ctx context.Context, databaseID string, config *PostgreSQLConfig) (*Response, error)
UpdatePostgreSQLConfig updates the config for a PostgreSQL database cluster.
func (*DatabasesServiceOp) UpdateRedisConfig ¶ added in v1.82.0
func (svc *DatabasesServiceOp) UpdateRedisConfig(ctx context.Context, databaseID string, config *RedisConfig) (*Response, error)
UpdateRedisConfig updates the config for a Redis database cluster.
func (*DatabasesServiceOp) UpdateTopic ¶ added in v1.103.0
func (svc *DatabasesServiceOp) UpdateTopic(ctx context.Context, databaseID string, name string, updateTopic *DatabaseUpdateTopicRequest) (*Response, error)
UpdateTopic updates a single kafka topic
func (*DatabasesServiceOp) UpdateUser ¶ added in v1.107.0
func (svc *DatabasesServiceOp) UpdateUser(ctx context.Context, databaseID, userID string, updateUser *DatabaseUpdateUserRequest) (*DatabaseUser, *Response, error)
UpdateUser will update an existing database user
func (*DatabasesServiceOp) UpgradeMajorVersion ¶ added in v1.95.0
func (svc *DatabasesServiceOp) UpgradeMajorVersion(ctx context.Context, databaseID string, upgradeReq *UpgradeVersionRequest) (*Response, error)
UpgradeMajorVersion upgrades the major version of a cluster.
type DeployTemplate ¶ added in v1.82.0
type DeployTemplate struct {
Spec *AppSpec `json:"spec,omitempty"`
}
DeployTemplate struct for DeployTemplate
func (*DeployTemplate) GetSpec ¶ added in v1.85.0
func (d *DeployTemplate) GetSpec() *AppSpec
GetSpec returns the Spec field.
type Deployment ¶ added in v1.39.0
type Deployment struct { ID string `json:"id,omitempty"` Spec *AppSpec `json:"spec,omitempty"` Services []*DeploymentService `json:"services,omitempty"` StaticSites []*DeploymentStaticSite `json:"static_sites,omitempty"` Workers []*DeploymentWorker `json:"workers,omitempty"` Jobs []*DeploymentJob `json:"jobs,omitempty"` Functions []*DeploymentFunctions `json:"functions,omitempty"` PhaseLastUpdatedAt time.Time `json:"phase_last_updated_at,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Cause string `json:"cause,omitempty"` ClonedFrom string `json:"cloned_from,omitempty"` Progress *DeploymentProgress `json:"progress,omitempty"` Phase DeploymentPhase `json:"phase,omitempty"` TierSlug string `json:"tier_slug,omitempty"` PreviousDeploymentID string `json:"previous_deployment_id,omitempty"` CauseDetails *DeploymentCauseDetails `json:"cause_details,omitempty"` LoadBalancerID string `json:"load_balancer_id,omitempty"` Timing *DeploymentTiming `json:"timing,omitempty"` }
Deployment struct for Deployment
func (*Deployment) GetCause ¶ added in v1.85.0
func (d *Deployment) GetCause() string
GetCause returns the Cause field.
func (*Deployment) GetCauseDetails ¶ added in v1.85.0
func (d *Deployment) GetCauseDetails() *DeploymentCauseDetails
GetCauseDetails returns the CauseDetails field.
func (*Deployment) GetClonedFrom ¶ added in v1.85.0
func (d *Deployment) GetClonedFrom() string
GetClonedFrom returns the ClonedFrom field.
func (*Deployment) GetCreatedAt ¶ added in v1.85.0
func (d *Deployment) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field.
func (*Deployment) GetFunctions ¶ added in v1.85.0
func (d *Deployment) GetFunctions() []*DeploymentFunctions
GetFunctions returns the Functions field.
func (*Deployment) GetID ¶ added in v1.85.0
func (d *Deployment) GetID() string
GetID returns the ID field.
func (*Deployment) GetJobs ¶ added in v1.85.0
func (d *Deployment) GetJobs() []*DeploymentJob
GetJobs returns the Jobs field.
func (*Deployment) GetLoadBalancerID ¶ added in v1.85.0
func (d *Deployment) GetLoadBalancerID() string
GetLoadBalancerID returns the LoadBalancerID field.
func (*Deployment) GetPhase ¶ added in v1.85.0
func (d *Deployment) GetPhase() DeploymentPhase
GetPhase returns the Phase field.
func (*Deployment) GetPhaseLastUpdatedAt ¶ added in v1.85.0
func (d *Deployment) GetPhaseLastUpdatedAt() time.Time
GetPhaseLastUpdatedAt returns the PhaseLastUpdatedAt field.
func (*Deployment) GetPreviousDeploymentID ¶ added in v1.85.0
func (d *Deployment) GetPreviousDeploymentID() string
GetPreviousDeploymentID returns the PreviousDeploymentID field.
func (*Deployment) GetProgress ¶ added in v1.85.0
func (d *Deployment) GetProgress() *DeploymentProgress
GetProgress returns the Progress field.
func (*Deployment) GetServices ¶ added in v1.85.0
func (d *Deployment) GetServices() []*DeploymentService
GetServices returns the Services field.
func (*Deployment) GetSpec ¶ added in v1.85.0
func (d *Deployment) GetSpec() *AppSpec
GetSpec returns the Spec field.
func (*Deployment) GetStaticSites ¶ added in v1.85.0
func (d *Deployment) GetStaticSites() []*DeploymentStaticSite
GetStaticSites returns the StaticSites field.
func (*Deployment) GetTierSlug ¶ added in v1.85.0
func (d *Deployment) GetTierSlug() string
GetTierSlug returns the TierSlug field.
func (*Deployment) GetTiming ¶ added in v1.97.0
func (d *Deployment) GetTiming() *DeploymentTiming
GetTiming returns the Timing field.
func (*Deployment) GetUpdatedAt ¶ added in v1.85.0
func (d *Deployment) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field.
func (*Deployment) GetWorkers ¶ added in v1.85.0
func (d *Deployment) GetWorkers() []*DeploymentWorker
GetWorkers returns the Workers field.
type DeploymentCauseDetails ¶ added in v1.65.0
type DeploymentCauseDetails struct { DigitalOceanUserAction *DeploymentCauseDetailsDigitalOceanUserAction `json:"digitalocean_user_action,omitempty"` GitPush *DeploymentCauseDetailsGitPush `json:"git_push,omitempty"` DOCRPush *DeploymentCauseDetailsDOCRPush `json:"docr_push,omitempty"` Internal bool `json:"internal,omitempty"` Autoscaler *DeploymentCauseDetailsAutoscalerAction `json:"autoscaler,omitempty"` Type DeploymentCauseDetailsType `json:"type,omitempty"` }
DeploymentCauseDetails struct for DeploymentCauseDetails
func (*DeploymentCauseDetails) GetAutoscaler ¶ added in v1.105.0
func (d *DeploymentCauseDetails) GetAutoscaler() *DeploymentCauseDetailsAutoscalerAction
GetAutoscaler returns the Autoscaler field.
func (*DeploymentCauseDetails) GetDOCRPush ¶ added in v1.86.0
func (d *DeploymentCauseDetails) GetDOCRPush() *DeploymentCauseDetailsDOCRPush
GetDOCRPush returns the DOCRPush field.
func (*DeploymentCauseDetails) GetDigitalOceanUserAction ¶ added in v1.85.0
func (d *DeploymentCauseDetails) GetDigitalOceanUserAction() *DeploymentCauseDetailsDigitalOceanUserAction
GetDigitalOceanUserAction returns the DigitalOceanUserAction field.
func (*DeploymentCauseDetails) GetGitPush ¶ added in v1.85.0
func (d *DeploymentCauseDetails) GetGitPush() *DeploymentCauseDetailsGitPush
GetGitPush returns the GitPush field.
func (*DeploymentCauseDetails) GetInternal ¶ added in v1.85.0
func (d *DeploymentCauseDetails) GetInternal() bool
GetInternal returns the Internal field.
func (*DeploymentCauseDetails) GetType ¶ added in v1.85.0
func (d *DeploymentCauseDetails) GetType() DeploymentCauseDetailsType
GetType returns the Type field.
type DeploymentCauseDetailsAutoscalerAction ¶ added in v1.105.0
type DeploymentCauseDetailsAutoscalerAction struct { // Marker for the deployment being autoscaled. Necessary because the generation tooling can't handle empty messages. Autoscaled bool `json:"autoscaled,omitempty"` }
DeploymentCauseDetailsAutoscalerAction struct for DeploymentCauseDetailsAutoscalerAction
func (*DeploymentCauseDetailsAutoscalerAction) GetAutoscaled ¶ added in v1.105.0
func (d *DeploymentCauseDetailsAutoscalerAction) GetAutoscaled() bool
GetAutoscaled returns the Autoscaled field.
type DeploymentCauseDetailsDOCRPush ¶ added in v1.86.0
type DeploymentCauseDetailsDOCRPush struct { // The registry name. Registry string `json:"registry,omitempty"` // The repository name. Repository string `json:"repository,omitempty"` // The repository tag. Tag string `json:"tag,omitempty"` // OCI Image digest. ImageDigest string `json:"image_digest,omitempty"` }
DeploymentCauseDetailsDOCRPush struct for DeploymentCauseDetailsDOCRPush
func (*DeploymentCauseDetailsDOCRPush) GetImageDigest ¶ added in v1.86.0
func (d *DeploymentCauseDetailsDOCRPush) GetImageDigest() string
GetImageDigest returns the ImageDigest field.
func (*DeploymentCauseDetailsDOCRPush) GetRegistry ¶ added in v1.86.0
func (d *DeploymentCauseDetailsDOCRPush) GetRegistry() string
GetRegistry returns the Registry field.
func (*DeploymentCauseDetailsDOCRPush) GetRepository ¶ added in v1.86.0
func (d *DeploymentCauseDetailsDOCRPush) GetRepository() string
GetRepository returns the Repository field.
func (*DeploymentCauseDetailsDOCRPush) GetTag ¶ added in v1.86.0
func (d *DeploymentCauseDetailsDOCRPush) GetTag() string
GetTag returns the Tag field.
type DeploymentCauseDetailsDigitalOceanUser ¶ added in v1.65.0
type DeploymentCauseDetailsDigitalOceanUser struct { UUID string `json:"uuid,omitempty"` Email string `json:"email,omitempty"` FullName string `json:"full_name,omitempty"` }
DeploymentCauseDetailsDigitalOceanUser struct for DeploymentCauseDetailsDigitalOceanUser
func (*DeploymentCauseDetailsDigitalOceanUser) GetEmail ¶ added in v1.85.0
func (d *DeploymentCauseDetailsDigitalOceanUser) GetEmail() string
GetEmail returns the Email field.
func (*DeploymentCauseDetailsDigitalOceanUser) GetFullName ¶ added in v1.85.0
func (d *DeploymentCauseDetailsDigitalOceanUser) GetFullName() string
GetFullName returns the FullName field.
func (*DeploymentCauseDetailsDigitalOceanUser) GetUUID ¶ added in v1.85.0
func (d *DeploymentCauseDetailsDigitalOceanUser) GetUUID() string
GetUUID returns the UUID field.
type DeploymentCauseDetailsDigitalOceanUserAction ¶ added in v1.65.0
type DeploymentCauseDetailsDigitalOceanUserAction struct { User *DeploymentCauseDetailsDigitalOceanUser `json:"user,omitempty"` Name DeploymentCauseDetailsDigitalOceanUserActionName `json:"name,omitempty"` }
DeploymentCauseDetailsDigitalOceanUserAction struct for DeploymentCauseDetailsDigitalOceanUserAction
func (*DeploymentCauseDetailsDigitalOceanUserAction) GetName ¶ added in v1.85.0
func (d *DeploymentCauseDetailsDigitalOceanUserAction) GetName() DeploymentCauseDetailsDigitalOceanUserActionName
GetName returns the Name field.
func (*DeploymentCauseDetailsDigitalOceanUserAction) GetUser ¶ added in v1.85.0
func (d *DeploymentCauseDetailsDigitalOceanUserAction) GetUser() *DeploymentCauseDetailsDigitalOceanUser
GetUser returns the User field.
type DeploymentCauseDetailsDigitalOceanUserActionName ¶ added in v1.65.0
type DeploymentCauseDetailsDigitalOceanUserActionName string
DeploymentCauseDetailsDigitalOceanUserActionName the model 'CauseDetailsDigitalOceanUserActionName'
const ( DeploymentCauseDetailsDigitalOceanUserActionName_Unknown DeploymentCauseDetailsDigitalOceanUserActionName = "UNKNOWN" DeploymentCauseDetailsDigitalOceanUserActionName_CreateDeployment DeploymentCauseDetailsDigitalOceanUserActionName = "CREATE_DEPLOYMENT" DeploymentCauseDetailsDigitalOceanUserActionName_UpdateSpec DeploymentCauseDetailsDigitalOceanUserActionName = "UPDATE_SPEC" DeploymentCauseDetailsDigitalOceanUserActionName_ResetDatabasePassword DeploymentCauseDetailsDigitalOceanUserActionName = "RESET_DATABASE_PASSWORD" DeploymentCauseDetailsDigitalOceanUserActionName_RollbackApp DeploymentCauseDetailsDigitalOceanUserActionName = "ROLLBACK_APP" DeploymentCauseDetailsDigitalOceanUserActionName_RevertAppRollback DeploymentCauseDetailsDigitalOceanUserActionName = "REVERT_APP_ROLLBACK" DeploymentCauseDetailsDigitalOceanUserActionName_UpgradeBuildpack DeploymentCauseDetailsDigitalOceanUserActionName = "UPGRADE_BUILDPACK" DeploymentCauseDetailsDigitalOceanUserActionName_Restart DeploymentCauseDetailsDigitalOceanUserActionName = "RESTART" )
List of DeploymentCauseDetailsDigitalOceanUserActionName
type DeploymentCauseDetailsGitPush ¶ added in v1.65.0
type DeploymentCauseDetailsGitPush struct { GitHub *GitHubSourceSpec `json:"github,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` Username string `json:"username,omitempty"` CommitAuthor string `json:"commit_author,omitempty"` CommitSHA string `json:"commit_sha,omitempty"` CommitMessage string `json:"commit_message,omitempty"` }
DeploymentCauseDetailsGitPush struct for DeploymentCauseDetailsGitPush
func (*DeploymentCauseDetailsGitPush) GetBitbucket ¶ added in v1.132.0
func (d *DeploymentCauseDetailsGitPush) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*DeploymentCauseDetailsGitPush) GetCommitAuthor ¶ added in v1.85.0
func (d *DeploymentCauseDetailsGitPush) GetCommitAuthor() string
GetCommitAuthor returns the CommitAuthor field.
func (*DeploymentCauseDetailsGitPush) GetCommitMessage ¶ added in v1.85.0
func (d *DeploymentCauseDetailsGitPush) GetCommitMessage() string
GetCommitMessage returns the CommitMessage field.
func (*DeploymentCauseDetailsGitPush) GetCommitSHA ¶ added in v1.85.0
func (d *DeploymentCauseDetailsGitPush) GetCommitSHA() string
GetCommitSHA returns the CommitSHA field.
func (*DeploymentCauseDetailsGitPush) GetGitHub ¶ added in v1.85.0
func (d *DeploymentCauseDetailsGitPush) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*DeploymentCauseDetailsGitPush) GetGitLab ¶ added in v1.85.0
func (d *DeploymentCauseDetailsGitPush) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*DeploymentCauseDetailsGitPush) GetUsername ¶ added in v1.85.0
func (d *DeploymentCauseDetailsGitPush) GetUsername() string
GetUsername returns the Username field.
type DeploymentCauseDetailsType ¶ added in v1.65.0
type DeploymentCauseDetailsType string
DeploymentCauseDetailsType - MANUAL: A deployment that was manually created - DEPLOY_ON_PUSH: A deployment that was automatically created by a Deploy on Push hook - MAINTENANCE: A deployment created for App Platform maintenance - MANUAL_ROLLBACK: A rollback deployment that was manually created - AUTO_ROLLBACK: An automatic rollback deployment created as a result of a previous deployment failing - UPDATE_DATABASE_TRUSTED_SOURCES: A deployment that was created due to an update in database trusted sources. - AUTOSCALED: A deployment that was created due to an autoscaler update.
const ( DeploymentCauseDetailsType_Unknown DeploymentCauseDetailsType = "UNKNOWN" DeploymentCauseDetailsType_Manual DeploymentCauseDetailsType = "MANUAL" DeploymentCauseDetailsType_DeployOnPush DeploymentCauseDetailsType = "DEPLOY_ON_PUSH" DeploymentCauseDetailsType_Maintenance DeploymentCauseDetailsType = "MAINTENANCE" DeploymentCauseDetailsType_ManualRollback DeploymentCauseDetailsType = "MANUAL_ROLLBACK" DeploymentCauseDetailsType_AutoRollback DeploymentCauseDetailsType = "AUTO_ROLLBACK" DeploymentCauseDetailsType_UpdateDatabaseTrustedSources DeploymentCauseDetailsType = "UPDATE_DATABASE_TRUSTED_SOURCES" DeploymentCauseDetailsType_Autoscaled DeploymentCauseDetailsType = "AUTOSCALED" )
List of DeploymentCauseDetailsType
type DeploymentCreateRequest ¶ added in v1.52.0
type DeploymentCreateRequest struct {
ForceBuild bool `json:"force_build"`
}
DeploymentCreateRequest represents a request to create a deployment.
type DeploymentFunctions ¶ added in v1.74.0
type DeploymentFunctions struct { Name string `json:"name,omitempty"` // The commit hash of the repository that was used to build this functions component. SourceCommitHash string `json:"source_commit_hash,omitempty"` // The namespace where the functions are deployed. Namespace string `json:"namespace,omitempty"` }
DeploymentFunctions struct for DeploymentFunctions
func (*DeploymentFunctions) GetName ¶ added in v1.85.0
func (d *DeploymentFunctions) GetName() string
GetName returns the Name field.
func (*DeploymentFunctions) GetNamespace ¶ added in v1.85.0
func (d *DeploymentFunctions) GetNamespace() string
GetNamespace returns the Namespace field.
func (*DeploymentFunctions) GetSourceCommitHash ¶ added in v1.85.0
func (d *DeploymentFunctions) GetSourceCommitHash() string
GetSourceCommitHash returns the SourceCommitHash field.
type DeploymentJob ¶ added in v1.43.0
type DeploymentJob struct { Name string `json:"name,omitempty"` SourceCommitHash string `json:"source_commit_hash,omitempty"` // The list of resolved buildpacks used for a given deployment component. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` }
DeploymentJob struct for DeploymentJob
func (*DeploymentJob) GetBuildpacks ¶ added in v1.85.0
func (d *DeploymentJob) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
func (*DeploymentJob) GetName ¶ added in v1.85.0
func (d *DeploymentJob) GetName() string
GetName returns the Name field.
func (*DeploymentJob) GetSourceCommitHash ¶ added in v1.85.0
func (d *DeploymentJob) GetSourceCommitHash() string
GetSourceCommitHash returns the SourceCommitHash field.
type DeploymentPhase ¶ added in v1.45.0
type DeploymentPhase string
DeploymentPhase the model 'DeploymentPhase'
const ( DeploymentPhase_Unknown DeploymentPhase = "UNKNOWN" DeploymentPhase_PendingBuild DeploymentPhase = "PENDING_BUILD" DeploymentPhase_Building DeploymentPhase = "BUILDING" DeploymentPhase_PendingDeploy DeploymentPhase = "PENDING_DEPLOY" DeploymentPhase_Deploying DeploymentPhase = "DEPLOYING" DeploymentPhase_Active DeploymentPhase = "ACTIVE" DeploymentPhase_Superseded DeploymentPhase = "SUPERSEDED" DeploymentPhase_Error DeploymentPhase = "ERROR" DeploymentPhase_Canceled DeploymentPhase = "CANCELED" )
List of DeploymentPhase
type DeploymentProgress ¶ added in v1.39.0
type DeploymentProgress struct { PendingSteps int32 `json:"pending_steps,omitempty"` RunningSteps int32 `json:"running_steps,omitempty"` SuccessSteps int32 `json:"success_steps,omitempty"` ErrorSteps int32 `json:"error_steps,omitempty"` TotalSteps int32 `json:"total_steps,omitempty"` Steps []*DeploymentProgressStep `json:"steps,omitempty"` SummarySteps []*DeploymentProgressStep `json:"summary_steps,omitempty"` }
DeploymentProgress struct for DeploymentProgress
func (*DeploymentProgress) GetErrorSteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetErrorSteps() int32
GetErrorSteps returns the ErrorSteps field.
func (*DeploymentProgress) GetPendingSteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetPendingSteps() int32
GetPendingSteps returns the PendingSteps field.
func (*DeploymentProgress) GetRunningSteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetRunningSteps() int32
GetRunningSteps returns the RunningSteps field.
func (*DeploymentProgress) GetSteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetSteps() []*DeploymentProgressStep
GetSteps returns the Steps field.
func (*DeploymentProgress) GetSuccessSteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetSuccessSteps() int32
GetSuccessSteps returns the SuccessSteps field.
func (*DeploymentProgress) GetSummarySteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetSummarySteps() []*DeploymentProgressStep
GetSummarySteps returns the SummarySteps field.
func (*DeploymentProgress) GetTotalSteps ¶ added in v1.85.0
func (d *DeploymentProgress) GetTotalSteps() int32
GetTotalSteps returns the TotalSteps field.
type DeploymentProgressStep ¶ added in v1.39.0
type DeploymentProgressStep struct { Name string `json:"name,omitempty"` Status DeploymentProgressStepStatus `json:"status,omitempty"` Steps []*DeploymentProgressStep `json:"steps,omitempty"` StartedAt time.Time `json:"started_at,omitempty"` EndedAt time.Time `json:"ended_at,omitempty"` Reason *DeploymentProgressStepReason `json:"reason,omitempty"` ComponentName string `json:"component_name,omitempty"` // The base of a human-readable description of the step intended to be combined with the component name for presentation. For example: `message_base` = \"Building service\" `component_name` = \"api\" MessageBase string `json:"message_base,omitempty"` }
DeploymentProgressStep struct for DeploymentProgressStep
func (*DeploymentProgressStep) GetComponentName ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetComponentName() string
GetComponentName returns the ComponentName field.
func (*DeploymentProgressStep) GetEndedAt ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetEndedAt() time.Time
GetEndedAt returns the EndedAt field.
func (*DeploymentProgressStep) GetMessageBase ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetMessageBase() string
GetMessageBase returns the MessageBase field.
func (*DeploymentProgressStep) GetName ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetName() string
GetName returns the Name field.
func (*DeploymentProgressStep) GetReason ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetReason() *DeploymentProgressStepReason
GetReason returns the Reason field.
func (*DeploymentProgressStep) GetStartedAt ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetStartedAt() time.Time
GetStartedAt returns the StartedAt field.
func (*DeploymentProgressStep) GetStatus ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetStatus() DeploymentProgressStepStatus
GetStatus returns the Status field.
func (*DeploymentProgressStep) GetSteps ¶ added in v1.85.0
func (d *DeploymentProgressStep) GetSteps() []*DeploymentProgressStep
GetSteps returns the Steps field.
type DeploymentProgressStepReason ¶ added in v1.45.0
type DeploymentProgressStepReason struct { Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` }
DeploymentProgressStepReason struct for DeploymentProgressStepReason
func (*DeploymentProgressStepReason) GetCode ¶ added in v1.85.0
func (d *DeploymentProgressStepReason) GetCode() string
GetCode returns the Code field.
func (*DeploymentProgressStepReason) GetMessage ¶ added in v1.85.0
func (d *DeploymentProgressStepReason) GetMessage() string
GetMessage returns the Message field.
type DeploymentProgressStepStatus ¶ added in v1.45.0
type DeploymentProgressStepStatus string
DeploymentProgressStepStatus the model 'DeploymentProgressStepStatus'
const ( DeploymentProgressStepStatus_Unknown DeploymentProgressStepStatus = "UNKNOWN" DeploymentProgressStepStatus_Pending DeploymentProgressStepStatus = "PENDING" DeploymentProgressStepStatus_Running DeploymentProgressStepStatus = "RUNNING" DeploymentProgressStepStatus_Error DeploymentProgressStepStatus = "ERROR" DeploymentProgressStepStatus_Success DeploymentProgressStepStatus = "SUCCESS" )
List of DeploymentProgressStepStatus
type DeploymentService ¶ added in v1.39.0
type DeploymentService struct { Name string `json:"name,omitempty"` SourceCommitHash string `json:"source_commit_hash,omitempty"` // The list of resolved buildpacks used for a given deployment component. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` }
DeploymentService struct for DeploymentService
func (*DeploymentService) GetBuildpacks ¶ added in v1.85.0
func (d *DeploymentService) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
func (*DeploymentService) GetName ¶ added in v1.85.0
func (d *DeploymentService) GetName() string
GetName returns the Name field.
func (*DeploymentService) GetSourceCommitHash ¶ added in v1.85.0
func (d *DeploymentService) GetSourceCommitHash() string
GetSourceCommitHash returns the SourceCommitHash field.
type DeploymentStaticSite ¶ added in v1.39.0
type DeploymentStaticSite struct { Name string `json:"name,omitempty"` SourceCommitHash string `json:"source_commit_hash,omitempty"` // The list of resolved buildpacks used for a given deployment component. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` }
DeploymentStaticSite struct for DeploymentStaticSite
func (*DeploymentStaticSite) GetBuildpacks ¶ added in v1.85.0
func (d *DeploymentStaticSite) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
func (*DeploymentStaticSite) GetName ¶ added in v1.85.0
func (d *DeploymentStaticSite) GetName() string
GetName returns the Name field.
func (*DeploymentStaticSite) GetSourceCommitHash ¶ added in v1.85.0
func (d *DeploymentStaticSite) GetSourceCommitHash() string
GetSourceCommitHash returns the SourceCommitHash field.
type DeploymentTiming ¶ added in v1.97.0
type DeploymentTiming struct { // Pending describes the time spent waiting for the build to begin. This may include delays related to build concurrency limits. Pending string `json:"pending,omitempty"` // BuildTotal describes total time between the start of the build and its completion. BuildTotal string `json:"build_total,omitempty"` // BuildBillable describes the time spent executing the build. As builds may run concurrently this may be greater than the build total. BuildBillable string `json:"build_billable,omitempty"` // Components breaks down billable build time by component. Components []*DeploymentTimingComponent `json:"components,omitempty"` // DatabaseProvision describes the time spent creating databases. DatabaseProvision string `json:"database_provision,omitempty"` // Deploying is time spent starting containers and waiting for health checks to pass. Deploying string `json:"deploying,omitempty"` }
DeploymentTiming struct for DeploymentTiming
func (*DeploymentTiming) GetBuildBillable ¶ added in v1.97.0
func (d *DeploymentTiming) GetBuildBillable() string
GetBuildBillable returns the BuildBillable field.
func (*DeploymentTiming) GetBuildTotal ¶ added in v1.97.0
func (d *DeploymentTiming) GetBuildTotal() string
GetBuildTotal returns the BuildTotal field.
func (*DeploymentTiming) GetComponents ¶ added in v1.97.0
func (d *DeploymentTiming) GetComponents() []*DeploymentTimingComponent
GetComponents returns the Components field.
func (*DeploymentTiming) GetDatabaseProvision ¶ added in v1.97.0
func (d *DeploymentTiming) GetDatabaseProvision() string
GetDatabaseProvision returns the DatabaseProvision field.
func (*DeploymentTiming) GetDeploying ¶ added in v1.97.0
func (d *DeploymentTiming) GetDeploying() string
GetDeploying returns the Deploying field.
func (*DeploymentTiming) GetPending ¶ added in v1.97.0
func (d *DeploymentTiming) GetPending() string
GetPending returns the Pending field.
type DeploymentTimingComponent ¶ added in v1.97.0
type DeploymentTimingComponent struct { // Name of the component. Name string `json:"name,omitempty"` // BuildBillable is the billable build time for this component. BuildBillable string `json:"build_billable,omitempty"` }
DeploymentTimingComponent struct for DeploymentTimingComponent
func (*DeploymentTimingComponent) GetBuildBillable ¶ added in v1.97.0
func (d *DeploymentTimingComponent) GetBuildBillable() string
GetBuildBillable returns the BuildBillable field.
func (*DeploymentTimingComponent) GetName ¶ added in v1.97.0
func (d *DeploymentTimingComponent) GetName() string
GetName returns the Name field.
type DeploymentWorker ¶ added in v1.39.0
type DeploymentWorker struct { Name string `json:"name,omitempty"` SourceCommitHash string `json:"source_commit_hash,omitempty"` // The list of resolved buildpacks used for a given deployment component. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` }
DeploymentWorker struct for DeploymentWorker
func (*DeploymentWorker) GetBuildpacks ¶ added in v1.85.0
func (d *DeploymentWorker) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
func (*DeploymentWorker) GetName ¶ added in v1.85.0
func (d *DeploymentWorker) GetName() string
GetName returns the Name field.
func (*DeploymentWorker) GetSourceCommitHash ¶ added in v1.85.0
func (d *DeploymentWorker) GetSourceCommitHash() string
GetSourceCommitHash returns the SourceCommitHash field.
type Destinations ¶ added in v1.1.0
type Destinations struct { Addresses []string `json:"addresses,omitempty"` Tags []string `json:"tags,omitempty"` DropletIDs []int `json:"droplet_ids,omitempty"` LoadBalancerUIDs []string `json:"load_balancer_uids,omitempty"` KubernetesIDs []string `json:"kubernetes_ids,omitempty"` }
Destinations represents a DigitalOcean Firewall OutboundRule destinations.
type DetectRequest ¶ added in v1.82.0
type DetectRequest struct { Git *GitSourceSpec `json:"git,omitempty"` GitHub *GitHubSourceSpec `json:"github,omitempty"` GitLab *GitLabSourceSpec `json:"gitlab,omitempty"` Bitbucket *BitbucketSourceSpec `json:"bitbucket,omitempty"` // An optional commit hash to use instead of the branch specified in the source spec. CommitSHA string `json:"commit_sha,omitempty"` // An optional path to the working directory for the detection process. SourceDir string `json:"source_dir,omitempty"` }
DetectRequest struct for DetectRequest
func (*DetectRequest) GetBitbucket ¶ added in v1.132.0
func (d *DetectRequest) GetBitbucket() *BitbucketSourceSpec
GetBitbucket returns the Bitbucket field.
func (*DetectRequest) GetCommitSHA ¶ added in v1.85.0
func (d *DetectRequest) GetCommitSHA() string
GetCommitSHA returns the CommitSHA field.
func (*DetectRequest) GetGit ¶ added in v1.85.0
func (d *DetectRequest) GetGit() *GitSourceSpec
GetGit returns the Git field.
func (*DetectRequest) GetGitHub ¶ added in v1.85.0
func (d *DetectRequest) GetGitHub() *GitHubSourceSpec
GetGitHub returns the GitHub field.
func (*DetectRequest) GetGitLab ¶ added in v1.85.0
func (d *DetectRequest) GetGitLab() *GitLabSourceSpec
GetGitLab returns the GitLab field.
func (*DetectRequest) GetSourceDir ¶ added in v1.85.0
func (d *DetectRequest) GetSourceDir() string
GetSourceDir returns the SourceDir field.
type DetectResponse ¶ added in v1.82.0
type DetectResponse struct { Components []*DetectResponseComponent `json:"components,omitempty"` Template *DeployTemplate `json:"template,omitempty"` TemplateFound bool `json:"template_found,omitempty"` TemplateValid bool `json:"template_valid,omitempty"` TemplateError string `json:"template_error,omitempty"` // Whether or not the underlying detection is still pending. If true, the request can be retried as-is until this field is false and the response contains the detection result. Pending bool `json:"pending,omitempty"` }
DetectResponse struct for DetectResponse
func (*DetectResponse) GetComponents ¶ added in v1.85.0
func (d *DetectResponse) GetComponents() []*DetectResponseComponent
GetComponents returns the Components field.
func (*DetectResponse) GetPending ¶ added in v1.128.0
func (d *DetectResponse) GetPending() bool
GetPending returns the Pending field.
func (*DetectResponse) GetTemplate ¶ added in v1.85.0
func (d *DetectResponse) GetTemplate() *DeployTemplate
GetTemplate returns the Template field.
func (*DetectResponse) GetTemplateError ¶ added in v1.85.0
func (d *DetectResponse) GetTemplateError() string
GetTemplateError returns the TemplateError field.
func (*DetectResponse) GetTemplateFound ¶ added in v1.85.0
func (d *DetectResponse) GetTemplateFound() bool
GetTemplateFound returns the TemplateFound field.
func (*DetectResponse) GetTemplateValid ¶ added in v1.85.0
func (d *DetectResponse) GetTemplateValid() bool
GetTemplateValid returns the TemplateValid field.
type DetectResponseComponent ¶ added in v1.82.0
type DetectResponseComponent struct { Strategy DetectResponseType `json:"strategy,omitempty"` Types []string `json:"types,omitempty"` // A list of Dockerfiles that were found for this component. The recommendation is to use the first Dockerfile. Dockerfiles []string `json:"dockerfiles,omitempty"` BuildCommand string `json:"build_command,omitempty"` RunCommand string `json:"run_command,omitempty"` EnvironmentSlug string `json:"environment_slug,omitempty"` // A list of HTTP ports that this component may listen on. The recommendation is to use the last port in the list. HTTPPorts []int64 `json:"http_ports,omitempty"` EnvVars []*AppVariableDefinition `json:"env_vars,omitempty"` // List of serverless packages detected. ServerlessPackages []*DetectResponseServerlessPackage `json:"serverless_packages,omitempty"` SourceDir string `json:"source_dir,omitempty"` // The list of detected buildpacks that will be used for the component build. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` }
DetectResponseComponent struct for DetectResponseComponent
func (*DetectResponseComponent) GetBuildCommand ¶ added in v1.85.0
func (d *DetectResponseComponent) GetBuildCommand() string
GetBuildCommand returns the BuildCommand field.
func (*DetectResponseComponent) GetBuildpacks ¶ added in v1.85.0
func (d *DetectResponseComponent) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
func (*DetectResponseComponent) GetDockerfiles ¶ added in v1.85.0
func (d *DetectResponseComponent) GetDockerfiles() []string
GetDockerfiles returns the Dockerfiles field.
func (*DetectResponseComponent) GetEnvVars ¶ added in v1.85.0
func (d *DetectResponseComponent) GetEnvVars() []*AppVariableDefinition
GetEnvVars returns the EnvVars field.
func (*DetectResponseComponent) GetEnvironmentSlug ¶ added in v1.98.0
func (d *DetectResponseComponent) GetEnvironmentSlug() string
GetEnvironmentSlug returns the EnvironmentSlug field.
func (*DetectResponseComponent) GetHTTPPorts ¶ added in v1.85.0
func (d *DetectResponseComponent) GetHTTPPorts() []int64
GetHTTPPorts returns the HTTPPorts field.
func (*DetectResponseComponent) GetRunCommand ¶ added in v1.85.0
func (d *DetectResponseComponent) GetRunCommand() string
GetRunCommand returns the RunCommand field.
func (*DetectResponseComponent) GetServerlessPackages ¶ added in v1.85.0
func (d *DetectResponseComponent) GetServerlessPackages() []*DetectResponseServerlessPackage
GetServerlessPackages returns the ServerlessPackages field.
func (*DetectResponseComponent) GetSourceDir ¶ added in v1.85.0
func (d *DetectResponseComponent) GetSourceDir() string
GetSourceDir returns the SourceDir field.
func (*DetectResponseComponent) GetStrategy ¶ added in v1.85.0
func (d *DetectResponseComponent) GetStrategy() DetectResponseType
GetStrategy returns the Strategy field.
func (*DetectResponseComponent) GetTypes ¶ added in v1.85.0
func (d *DetectResponseComponent) GetTypes() []string
GetTypes returns the Types field.
type DetectResponseServerlessFunction ¶ added in v1.82.0
type DetectResponseServerlessFunction struct { // Name of the function. Name string `json:"name,omitempty"` // Package that the function belongs to. Package string `json:"package,omitempty"` // Runtime detected for the function. Runtime string `json:"runtime,omitempty"` Limits *DetectResponseServerlessFunctionLimits `json:"limits,omitempty"` }
DetectResponseServerlessFunction struct for DetectResponseServerlessFunction
func (*DetectResponseServerlessFunction) GetLimits ¶ added in v1.85.0
func (d *DetectResponseServerlessFunction) GetLimits() *DetectResponseServerlessFunctionLimits
GetLimits returns the Limits field.
func (*DetectResponseServerlessFunction) GetName ¶ added in v1.85.0
func (d *DetectResponseServerlessFunction) GetName() string
GetName returns the Name field.
func (*DetectResponseServerlessFunction) GetPackage ¶ added in v1.85.0
func (d *DetectResponseServerlessFunction) GetPackage() string
GetPackage returns the Package field.
func (*DetectResponseServerlessFunction) GetRuntime ¶ added in v1.85.0
func (d *DetectResponseServerlessFunction) GetRuntime() string
GetRuntime returns the Runtime field.
type DetectResponseServerlessFunctionLimits ¶ added in v1.82.0
type DetectResponseServerlessFunctionLimits struct { // Timeout for function invocation in milliseconds. Timeout string `json:"timeout,omitempty"` // Max memory allocation for function invocation in megabytes. Memory string `json:"memory,omitempty"` // Max log size usage for function invocation in kilobytes. Logs string `json:"logs,omitempty"` }
DetectResponseServerlessFunctionLimits struct for DetectResponseServerlessFunctionLimits
func (*DetectResponseServerlessFunctionLimits) GetLogs ¶ added in v1.85.0
func (d *DetectResponseServerlessFunctionLimits) GetLogs() string
GetLogs returns the Logs field.
func (*DetectResponseServerlessFunctionLimits) GetMemory ¶ added in v1.85.0
func (d *DetectResponseServerlessFunctionLimits) GetMemory() string
GetMemory returns the Memory field.
func (*DetectResponseServerlessFunctionLimits) GetTimeout ¶ added in v1.85.0
func (d *DetectResponseServerlessFunctionLimits) GetTimeout() string
GetTimeout returns the Timeout field.
type DetectResponseServerlessPackage ¶ added in v1.82.0
type DetectResponseServerlessPackage struct { // Name of the serverless package. Name string `json:"name,omitempty"` // List of functions detected in the serverless package. Functions []*DetectResponseServerlessFunction `json:"functions,omitempty"` }
DetectResponseServerlessPackage struct for DetectResponseServerlessPackage
func (*DetectResponseServerlessPackage) GetFunctions ¶ added in v1.85.0
func (d *DetectResponseServerlessPackage) GetFunctions() []*DetectResponseServerlessFunction
GetFunctions returns the Functions field.
func (*DetectResponseServerlessPackage) GetName ¶ added in v1.85.0
func (d *DetectResponseServerlessPackage) GetName() string
GetName returns the Name field.
type DetectResponseType ¶ added in v1.82.0
type DetectResponseType string
DetectResponseType the model 'DetectResponseType'
const ( DetectResponseType_Unspecified DetectResponseType = "UNSPECIFIED" DetectResponseType_Dockerfile DetectResponseType = "DOCKERFILE" DetectResponseType_Buildpack DetectResponseType = "BUILDPACK" DetectResponseType_HTML DetectResponseType = "HTML" DetectResponseType_Serverless DetectResponseType = "SERVERLESS" )
List of DetectResponseType
type DiskInfo ¶ added in v1.129.0
DiskInfo containing information about the disks available to Droplets created with this size.
type DockerCredentials ¶ added in v1.25.0
type DockerCredentials struct {
DockerConfigJSON []byte
}
DockerCredentials is the content of a Docker config file that is used by the docker CLI See: https://docs.docker.com/engine/reference/commandline/cli/#configjson-properties
type Domain ¶ added in v0.3.0
type Domain struct { Name string `json:"name"` TTL int `json:"ttl"` ZoneFile string `json:"zone_file"` }
Domain represents a DigitalOcean domain
type DomainCreateRequest ¶ added in v0.3.0
type DomainCreateRequest struct { Name string `json:"name"` IPAddress string `json:"ip_address,omitempty"` }
DomainCreateRequest represents a request to create a domain.
type DomainRecord ¶
type DomainRecord struct { ID int `json:"id,omitempty"` Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` Data string `json:"data,omitempty"` Priority int `json:"priority"` Port int `json:"port"` TTL int `json:"ttl,omitempty"` Weight int `json:"weight"` Flags int `json:"flags"` Tag string `json:"tag,omitempty"` }
DomainRecord represents a DigitalOcean DomainRecord
func (DomainRecord) String ¶
func (d DomainRecord) String() string
Converts a DomainRecord to a string.
type DomainRecordEditRequest ¶
type DomainRecordEditRequest struct { Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` Data string `json:"data,omitempty"` Priority int `json:"priority"` Port int `json:"port"` TTL int `json:"ttl,omitempty"` Weight int `json:"weight"` Flags int `json:"flags"` Tag string `json:"tag,omitempty"` }
DomainRecordEditRequest represents a request to update a domain record.
func (DomainRecordEditRequest) String ¶
func (d DomainRecordEditRequest) String() string
Converts a DomainRecordEditRequest to a string.
type DomainsService ¶
type DomainsService interface { List(context.Context, *ListOptions) ([]Domain, *Response, error) Get(context.Context, string) (*Domain, *Response, error) Create(context.Context, *DomainCreateRequest) (*Domain, *Response, error) Delete(context.Context, string) (*Response, error) Records(context.Context, string, *ListOptions) ([]DomainRecord, *Response, error) RecordsByType(context.Context, string, string, *ListOptions) ([]DomainRecord, *Response, error) RecordsByName(context.Context, string, string, *ListOptions) ([]DomainRecord, *Response, error) RecordsByTypeAndName(context.Context, string, string, string, *ListOptions) ([]DomainRecord, *Response, error) Record(context.Context, string, int) (*DomainRecord, *Response, error) DeleteRecord(context.Context, string, int) (*Response, error) EditRecord(context.Context, string, int, *DomainRecordEditRequest) (*DomainRecord, *Response, error) CreateRecord(context.Context, string, *DomainRecordEditRequest) (*DomainRecord, *Response, error) }
DomainsService is an interface for managing DNS with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Domains and https://docs.digitalocean.com/reference/api/api-reference/#tag/Domain-Records
type DomainsServiceOp ¶ added in v0.3.0
type DomainsServiceOp struct {
// contains filtered or unexported fields
}
DomainsServiceOp handles communication with the domain related methods of the DigitalOcean API.
func (*DomainsServiceOp) Create ¶ added in v0.3.0
func (s *DomainsServiceOp) Create(ctx context.Context, createRequest *DomainCreateRequest) (*Domain, *Response, error)
Create a new domain
func (*DomainsServiceOp) CreateRecord ¶ added in v0.3.0
func (s *DomainsServiceOp) CreateRecord(ctx context.Context, domain string, createRequest *DomainRecordEditRequest) (*DomainRecord, *Response, error)
CreateRecord creates a record using a DomainRecordEditRequest
func (*DomainsServiceOp) DeleteRecord ¶ added in v0.3.0
func (s *DomainsServiceOp) DeleteRecord(ctx context.Context, domain string, id int) (*Response, error)
DeleteRecord deletes a record from a domain identified by id
func (*DomainsServiceOp) EditRecord ¶ added in v0.3.0
func (s *DomainsServiceOp) EditRecord(ctx context.Context, domain string, id int, editRequest *DomainRecordEditRequest, ) (*DomainRecord, *Response, error)
EditRecord edits a record using a DomainRecordEditRequest
func (*DomainsServiceOp) Get ¶ added in v0.3.0
Get individual domain. It requires a non-empty domain name.
func (DomainsServiceOp) List ¶ added in v0.3.0
func (s DomainsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Domain, *Response, error)
List all domains.
func (*DomainsServiceOp) Record ¶ added in v0.3.0
func (s *DomainsServiceOp) Record(ctx context.Context, domain string, id int) (*DomainRecord, *Response, error)
Record returns the record id from a domain
func (*DomainsServiceOp) Records ¶ added in v0.3.0
func (s *DomainsServiceOp) Records(ctx context.Context, domain string, opt *ListOptions) ([]DomainRecord, *Response, error)
Records returns a slice of DomainRecord for a domain.
func (*DomainsServiceOp) RecordsByName ¶ added in v1.38.0
func (s *DomainsServiceOp) RecordsByName(ctx context.Context, domain, name string, opt *ListOptions) ([]DomainRecord, *Response, error)
RecordsByName returns a slice of DomainRecord for a domain matched by record name.
func (*DomainsServiceOp) RecordsByType ¶ added in v1.38.0
func (s *DomainsServiceOp) RecordsByType(ctx context.Context, domain, ofType string, opt *ListOptions) ([]DomainRecord, *Response, error)
RecordsByType returns a slice of DomainRecord for a domain matched by record type.
func (*DomainsServiceOp) RecordsByTypeAndName ¶ added in v1.38.0
func (s *DomainsServiceOp) RecordsByTypeAndName(ctx context.Context, domain, ofType, name string, opt *ListOptions) ([]DomainRecord, *Response, error)
RecordsByTypeAndName returns a slice of DomainRecord for a domain matched by record type and name.
type Droplet ¶
type Droplet struct { ID int `json:"id,float64,omitempty"` Name string `json:"name,omitempty"` Memory int `json:"memory,omitempty"` Vcpus int `json:"vcpus,omitempty"` Disk int `json:"disk,omitempty"` Region *Region `json:"region,omitempty"` Image *Image `json:"image,omitempty"` Size *Size `json:"size,omitempty"` SizeSlug string `json:"size_slug,omitempty"` BackupIDs []int `json:"backup_ids,omitempty"` NextBackupWindow *BackupWindow `json:"next_backup_window,omitempty"` SnapshotIDs []int `json:"snapshot_ids,omitempty"` Features []string `json:"features,omitempty"` Locked bool `json:"locked,bool,omitempty"` Status string `json:"status,omitempty"` Networks *Networks `json:"networks,omitempty"` Created string `json:"created_at,omitempty"` Kernel *Kernel `json:"kernel,omitempty"` Tags []string `json:"tags,omitempty"` VolumeIDs []string `json:"volume_ids"` VPCUUID string `json:"vpc_uuid,omitempty"` }
Droplet represents a DigitalOcean Droplet
func (*Droplet) PrivateIPv4 ¶ added in v1.0.0
PrivateIPv4 returns the private IPv4 address for the Droplet.
func (*Droplet) PublicIPv4 ¶ added in v1.0.0
PublicIPv4 returns the public IPv4 address for the Droplet.
func (*Droplet) PublicIPv6 ¶ added in v1.0.0
PublicIPv6 returns the public IPv6 address for the Droplet.
type DropletActionsService ¶
type DropletActionsService interface { Shutdown(context.Context, int) (*Action, *Response, error) ShutdownByTag(context.Context, string) ([]Action, *Response, error) PowerOff(context.Context, int) (*Action, *Response, error) PowerOffByTag(context.Context, string) ([]Action, *Response, error) PowerOn(context.Context, int) (*Action, *Response, error) PowerOnByTag(context.Context, string) ([]Action, *Response, error) PowerCycle(context.Context, int) (*Action, *Response, error) PowerCycleByTag(context.Context, string) ([]Action, *Response, error) Reboot(context.Context, int) (*Action, *Response, error) Restore(context.Context, int, int) (*Action, *Response, error) Resize(context.Context, int, string, bool) (*Action, *Response, error) Rename(context.Context, int, string) (*Action, *Response, error) Snapshot(context.Context, int, string) (*Action, *Response, error) SnapshotByTag(context.Context, string, string) ([]Action, *Response, error) EnableBackups(context.Context, int) (*Action, *Response, error) EnableBackupsByTag(context.Context, string) ([]Action, *Response, error) EnableBackupsWithPolicy(context.Context, int, *DropletBackupPolicyRequest) (*Action, *Response, error) ChangeBackupPolicy(context.Context, int, *DropletBackupPolicyRequest) (*Action, *Response, error) DisableBackups(context.Context, int) (*Action, *Response, error) DisableBackupsByTag(context.Context, string) ([]Action, *Response, error) PasswordReset(context.Context, int) (*Action, *Response, error) RebuildByImageID(context.Context, int, int) (*Action, *Response, error) RebuildByImageSlug(context.Context, int, string) (*Action, *Response, error) ChangeKernel(context.Context, int, int) (*Action, *Response, error) EnableIPv6(context.Context, int) (*Action, *Response, error) EnableIPv6ByTag(context.Context, string) ([]Action, *Response, error) EnablePrivateNetworking(context.Context, int) (*Action, *Response, error) EnablePrivateNetworkingByTag(context.Context, string) ([]Action, *Response, error) Get(context.Context, int, int) (*Action, *Response, error) GetByURI(context.Context, string) (*Action, *Response, error) }
DropletActionsService is an interface for interfacing with the Droplet actions endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Droplet-Actions
type DropletActionsServiceOp ¶ added in v0.3.0
type DropletActionsServiceOp struct {
// contains filtered or unexported fields
}
DropletActionsServiceOp handles communication with the Droplet action related methods of the DigitalOcean API.
func (*DropletActionsServiceOp) ChangeBackupPolicy ¶ added in v1.129.0
func (s *DropletActionsServiceOp) ChangeBackupPolicy(ctx context.Context, id int, policy *DropletBackupPolicyRequest) (*Action, *Response, error)
ChangeBackupPolicy updates a backup policy when backups are enabled.
func (*DropletActionsServiceOp) ChangeKernel ¶ added in v0.9.0
func (s *DropletActionsServiceOp) ChangeKernel(ctx context.Context, id, kernelID int) (*Action, *Response, error)
ChangeKernel changes the kernel for a Droplet.
func (*DropletActionsServiceOp) DisableBackups ¶ added in v0.9.0
func (s *DropletActionsServiceOp) DisableBackups(ctx context.Context, id int) (*Action, *Response, error)
DisableBackups disables backups for a Droplet.
func (*DropletActionsServiceOp) DisableBackupsByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) DisableBackupsByTag(ctx context.Context, tag string) ([]Action, *Response, error)
DisableBackupsByTag disables backups for Droplet matched by a Tag.
func (*DropletActionsServiceOp) EnableBackups ¶ added in v1.0.0
func (s *DropletActionsServiceOp) EnableBackups(ctx context.Context, id int) (*Action, *Response, error)
EnableBackups enables backups for a Droplet.
func (*DropletActionsServiceOp) EnableBackupsByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) EnableBackupsByTag(ctx context.Context, tag string) ([]Action, *Response, error)
EnableBackupsByTag enables backups for Droplets matched by a Tag.
func (*DropletActionsServiceOp) EnableBackupsWithPolicy ¶ added in v1.129.0
func (s *DropletActionsServiceOp) EnableBackupsWithPolicy(ctx context.Context, id int, policy *DropletBackupPolicyRequest) (*Action, *Response, error)
EnableBackupsWithPolicy enables droplet's backup with a backup policy applied.
func (*DropletActionsServiceOp) EnableIPv6 ¶ added in v0.9.0
func (s *DropletActionsServiceOp) EnableIPv6(ctx context.Context, id int) (*Action, *Response, error)
EnableIPv6 enables IPv6 for a Droplet.
func (*DropletActionsServiceOp) EnableIPv6ByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) EnableIPv6ByTag(ctx context.Context, tag string) ([]Action, *Response, error)
EnableIPv6ByTag enables IPv6 for Droplets matched by a Tag.
func (*DropletActionsServiceOp) EnablePrivateNetworking ¶ added in v0.9.0
func (s *DropletActionsServiceOp) EnablePrivateNetworking(ctx context.Context, id int) (*Action, *Response, error)
EnablePrivateNetworking enables private networking for a Droplet.
func (*DropletActionsServiceOp) EnablePrivateNetworkingByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) EnablePrivateNetworkingByTag(ctx context.Context, tag string) ([]Action, *Response, error)
EnablePrivateNetworkingByTag enables private networking for Droplets matched by a Tag.
func (*DropletActionsServiceOp) Get ¶ added in v0.3.0
func (s *DropletActionsServiceOp) Get(ctx context.Context, dropletID, actionID int) (*Action, *Response, error)
Get an action for a particular Droplet by id.
func (*DropletActionsServiceOp) GetByURI ¶ added in v0.3.0
func (s *DropletActionsServiceOp) GetByURI(ctx context.Context, rawurl string) (*Action, *Response, error)
GetByURI gets an action for a particular Droplet by URI.
func (*DropletActionsServiceOp) PasswordReset ¶ added in v0.9.0
func (s *DropletActionsServiceOp) PasswordReset(ctx context.Context, id int) (*Action, *Response, error)
PasswordReset resets the password for a Droplet.
func (*DropletActionsServiceOp) PowerCycle ¶ added in v0.3.0
func (s *DropletActionsServiceOp) PowerCycle(ctx context.Context, id int) (*Action, *Response, error)
PowerCycle a Droplet
func (*DropletActionsServiceOp) PowerCycleByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) PowerCycleByTag(ctx context.Context, tag string) ([]Action, *Response, error)
PowerCycleByTag power cycles Droplets matched by a Tag.
func (*DropletActionsServiceOp) PowerOffByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) PowerOffByTag(ctx context.Context, tag string) ([]Action, *Response, error)
PowerOffByTag powers off Droplets matched by a Tag.
func (*DropletActionsServiceOp) PowerOnByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) PowerOnByTag(ctx context.Context, tag string) ([]Action, *Response, error)
PowerOnByTag powers on Droplets matched by a Tag.
func (*DropletActionsServiceOp) RebuildByImageID ¶ added in v0.9.0
func (s *DropletActionsServiceOp) RebuildByImageID(ctx context.Context, id, imageID int) (*Action, *Response, error)
RebuildByImageID rebuilds a Droplet from an image with a given id.
func (*DropletActionsServiceOp) RebuildByImageSlug ¶ added in v0.9.0
func (s *DropletActionsServiceOp) RebuildByImageSlug(ctx context.Context, id int, slug string) (*Action, *Response, error)
RebuildByImageSlug rebuilds a Droplet from an Image matched by a given Slug.
func (*DropletActionsServiceOp) Rename ¶ added in v0.3.0
func (s *DropletActionsServiceOp) Rename(ctx context.Context, id int, name string) (*Action, *Response, error)
Rename a Droplet
func (*DropletActionsServiceOp) Resize ¶ added in v0.3.0
func (s *DropletActionsServiceOp) Resize(ctx context.Context, id int, sizeSlug string, resizeDisk bool) (*Action, *Response, error)
Resize a Droplet
func (*DropletActionsServiceOp) Restore ¶ added in v0.3.0
func (s *DropletActionsServiceOp) Restore(ctx context.Context, id, imageID int) (*Action, *Response, error)
Restore an image to a Droplet
func (*DropletActionsServiceOp) ShutdownByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) ShutdownByTag(ctx context.Context, tag string) ([]Action, *Response, error)
ShutdownByTag shuts down Droplets matched by a Tag.
func (*DropletActionsServiceOp) Snapshot ¶ added in v0.6.0
func (s *DropletActionsServiceOp) Snapshot(ctx context.Context, id int, name string) (*Action, *Response, error)
Snapshot a Droplet.
func (*DropletActionsServiceOp) SnapshotByTag ¶ added in v1.0.0
func (s *DropletActionsServiceOp) SnapshotByTag(ctx context.Context, tag string, name string) ([]Action, *Response, error)
SnapshotByTag snapshots Droplets matched by a Tag.
type DropletAutoscaleConfiguration ¶ added in v1.128.0
type DropletAutoscaleConfiguration struct { MinInstances uint64 `json:"min_instances,omitempty"` MaxInstances uint64 `json:"max_instances,omitempty"` TargetCPUUtilization float64 `json:"target_cpu_utilization,omitempty"` TargetMemoryUtilization float64 `json:"target_memory_utilization,omitempty"` CooldownMinutes uint32 `json:"cooldown_minutes,omitempty"` TargetNumberInstances uint64 `json:"target_number_instances,omitempty"` }
DropletAutoscaleConfiguration represents a DigitalOcean droplet autoscale pool configuration
type DropletAutoscaleHistoryEvent ¶ added in v1.128.0
type DropletAutoscaleHistoryEvent struct { HistoryEventID string `json:"history_event_id"` CurrentInstanceCount uint64 `json:"current_instance_count"` DesiredInstanceCount uint64 `json:"desired_instance_count"` Reason string `json:"reason"` Status string `json:"status"` ErrorReason string `json:"error_reason,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
DropletAutoscaleHistoryEvent represents a DigitalOcean droplet autoscale pool history event
type DropletAutoscalePool ¶ added in v1.128.0
type DropletAutoscalePool struct { ID string `json:"id"` Name string `json:"name"` Config *DropletAutoscaleConfiguration `json:"config"` DropletTemplate *DropletAutoscaleResourceTemplate `json:"droplet_template"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` CurrentUtilization *DropletAutoscaleResourceUtilization `json:"current_utilization,omitempty"` Status string `json:"status"` }
DropletAutoscalePool represents a DigitalOcean droplet autoscale pool
type DropletAutoscalePoolRequest ¶ added in v1.128.0
type DropletAutoscalePoolRequest struct { Name string `json:"name"` Config *DropletAutoscaleConfiguration `json:"config"` DropletTemplate *DropletAutoscaleResourceTemplate `json:"droplet_template"` }
DropletAutoscalePoolRequest represents a DigitalOcean droplet autoscale pool create/update request
type DropletAutoscaleResource ¶ added in v1.128.0
type DropletAutoscaleResource struct { DropletID uint64 `json:"droplet_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` HealthStatus string `json:"health_status"` UnhealthyReason string `json:"unhealthy_reason,omitempty"` Status string `json:"status"` CurrentUtilization *DropletAutoscaleResourceUtilization `json:"current_utilization,omitempty"` }
DropletAutoscaleResource represents a DigitalOcean droplet autoscale pool resource
type DropletAutoscaleResourceTemplate ¶ added in v1.128.0
type DropletAutoscaleResourceTemplate struct { Size string `json:"size"` Region string `json:"region"` Image string `json:"image"` Tags []string `json:"tags"` SSHKeys []string `json:"ssh_keys"` VpcUUID string `json:"vpc_uuid"` WithDropletAgent bool `json:"with_droplet_agent"` ProjectID string `json:"project_id"` IPV6 bool `json:"ipv6"` UserData string `json:"user_data"` }
DropletAutoscaleResourceTemplate represents a DigitalOcean droplet autoscale pool resource template
type DropletAutoscaleResourceUtilization ¶ added in v1.128.0
type DropletAutoscaleResourceUtilization struct { Memory float64 `json:"memory,omitempty"` CPU float64 `json:"cpu,omitempty"` }
DropletAutoscaleResourceUtilization represents a DigitalOcean droplet autoscale pool resource utilization
type DropletAutoscaleService ¶ added in v1.128.0
type DropletAutoscaleService interface { Create(context.Context, *DropletAutoscalePoolRequest) (*DropletAutoscalePool, *Response, error) Get(context.Context, string) (*DropletAutoscalePool, *Response, error) List(context.Context, *ListOptions) ([]*DropletAutoscalePool, *Response, error) ListMembers(context.Context, string, *ListOptions) ([]*DropletAutoscaleResource, *Response, error) ListHistory(context.Context, string, *ListOptions) ([]*DropletAutoscaleHistoryEvent, *Response, error) Update(context.Context, string, *DropletAutoscalePoolRequest) (*DropletAutoscalePool, *Response, error) Delete(context.Context, string) (*Response, error) DeleteDangerous(context.Context, string) (*Response, error) }
DropletAutoscaleService defines an interface for managing droplet autoscale pools through DigitalOcean API
type DropletAutoscaleServiceOp ¶ added in v1.128.0
type DropletAutoscaleServiceOp struct {
// contains filtered or unexported fields
}
DropletAutoscaleServiceOp handles communication with droplet autoscale-related methods of the DigitalOcean API
func (*DropletAutoscaleServiceOp) Create ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) Create(ctx context.Context, createReq *DropletAutoscalePoolRequest) (*DropletAutoscalePool, *Response, error)
Create a new droplet autoscale pool
func (*DropletAutoscaleServiceOp) DeleteDangerous ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) DeleteDangerous(ctx context.Context, id string) (*Response, error)
DeleteDangerous deletes an existing autoscale pool with all underlying resources
func (*DropletAutoscaleServiceOp) Get ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) Get(ctx context.Context, id string) (*DropletAutoscalePool, *Response, error)
Get an existing droplet autoscale pool
func (*DropletAutoscaleServiceOp) List ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) List(ctx context.Context, opts *ListOptions) ([]*DropletAutoscalePool, *Response, error)
List all existing droplet autoscale pools
func (*DropletAutoscaleServiceOp) ListHistory ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) ListHistory(ctx context.Context, id string, opts *ListOptions) ([]*DropletAutoscaleHistoryEvent, *Response, error)
ListHistory all history events for an existing droplet autoscale pool
func (*DropletAutoscaleServiceOp) ListMembers ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) ListMembers(ctx context.Context, id string, opts *ListOptions) ([]*DropletAutoscaleResource, *Response, error)
ListMembers all members for an existing droplet autoscale pool
func (*DropletAutoscaleServiceOp) Update ¶ added in v1.128.0
func (d *DropletAutoscaleServiceOp) Update(ctx context.Context, id string, updateReq *DropletAutoscalePoolRequest) (*DropletAutoscalePool, *Response, error)
Update an existing autoscale pool
type DropletBackupPolicy ¶ added in v1.129.0
type DropletBackupPolicy struct { DropletID int `json:"droplet_id,omitempty"` BackupEnabled bool `json:"backup_enabled,omitempty"` BackupPolicy *DropletBackupPolicyConfig `json:"backup_policy,omitempty"` NextBackupWindow *BackupWindow `json:"next_backup_window,omitempty"` }
DropletBackupPolicy defines the information about a droplet's backup policy.
type DropletBackupPolicyConfig ¶ added in v1.129.0
type DropletBackupPolicyConfig struct { Plan string `json:"plan,omitempty"` Weekday string `json:"weekday,omitempty"` Hour int `json:"hour,omitempty"` WindowLengthHours int `json:"window_length_hours,omitempty"` RetentionPeriodDays int `json:"retention_period_days,omitempty"` }
DropletBackupPolicyConfig defines the backup policy for a Droplet.
type DropletBackupPolicyRequest ¶ added in v1.129.0
type DropletBackupPolicyRequest struct { Plan string `json:"plan,omitempty"` Weekday string `json:"weekday,omitempty"` Hour *int `json:"hour,omitempty"` }
DropletBackupPolicyRequest defines the backup policy when creating a Droplet.
type DropletBandwidthMetricsRequest ¶ added in v1.70.0
type DropletBandwidthMetricsRequest struct { DropletMetricsRequest Interface string Direction string }
DropletBandwidthMetricsRequest holds the information needed to retrieve Droplet bandwidth metrics.
type DropletCreateImage ¶ added in v0.9.0
DropletCreateImage identifies an image for the create request. It prefers slug over ID.
func (DropletCreateImage) MarshalJSON ¶ added in v0.9.0
func (d DropletCreateImage) MarshalJSON() ([]byte, error)
MarshalJSON returns either the slug or id of the image. It returns the id if the slug is empty.
type DropletCreateRequest ¶
type DropletCreateRequest struct { Name string `json:"name"` Region string `json:"region"` Size string `json:"size"` Image DropletCreateImage `json:"image"` SSHKeys []DropletCreateSSHKey `json:"ssh_keys"` Backups bool `json:"backups"` IPv6 bool `json:"ipv6"` PrivateNetworking bool `json:"private_networking"` Monitoring bool `json:"monitoring"` UserData string `json:"user_data,omitempty"` Volumes []DropletCreateVolume `json:"volumes,omitempty"` Tags []string `json:"tags"` VPCUUID string `json:"vpc_uuid,omitempty"` WithDropletAgent *bool `json:"with_droplet_agent,omitempty"` BackupPolicy *DropletBackupPolicyRequest `json:"backup_policy,omitempty"` }
DropletCreateRequest represents a request to create a Droplet.
func (DropletCreateRequest) String ¶
func (d DropletCreateRequest) String() string
type DropletCreateSSHKey ¶ added in v0.9.0
DropletCreateSSHKey identifies a SSH Key for the create request. It prefers fingerprint over ID.
func (DropletCreateSSHKey) MarshalJSON ¶ added in v0.9.0
func (d DropletCreateSSHKey) MarshalJSON() ([]byte, error)
MarshalJSON returns either the fingerprint or id of the ssh key. It returns the id if the fingerprint is empty.
type DropletCreateVolume ¶ added in v1.0.0
type DropletCreateVolume struct { ID string // Deprecated: You must pass the volume's ID when creating a Droplet. Name string }
DropletCreateVolume identifies a volume to attach for the create request.
func (DropletCreateVolume) MarshalJSON ¶ added in v1.0.0
func (d DropletCreateVolume) MarshalJSON() ([]byte, error)
MarshalJSON returns an object with either the ID or name of the volume. It prefers the ID over the name.
type DropletMetricsRequest ¶ added in v1.70.0
DropletMetricsRequest holds the information needed to retrieve Droplet various metrics.
type DropletMultiCreateRequest ¶ added in v1.0.0
type DropletMultiCreateRequest struct { Names []string `json:"names"` Region string `json:"region"` Size string `json:"size"` Image DropletCreateImage `json:"image"` SSHKeys []DropletCreateSSHKey `json:"ssh_keys"` Backups bool `json:"backups"` IPv6 bool `json:"ipv6"` PrivateNetworking bool `json:"private_networking"` Monitoring bool `json:"monitoring"` UserData string `json:"user_data,omitempty"` Tags []string `json:"tags"` VPCUUID string `json:"vpc_uuid,omitempty"` WithDropletAgent *bool `json:"with_droplet_agent,omitempty"` BackupPolicy *DropletBackupPolicyRequest `json:"backup_policy,omitempty"` }
DropletMultiCreateRequest is a request to create multiple Droplets.
func (DropletMultiCreateRequest) String ¶ added in v1.0.0
func (d DropletMultiCreateRequest) String() string
type DropletsService ¶
type DropletsService interface { List(context.Context, *ListOptions) ([]Droplet, *Response, error) ListWithGPUs(context.Context, *ListOptions) ([]Droplet, *Response, error) ListByName(context.Context, string, *ListOptions) ([]Droplet, *Response, error) ListByTag(context.Context, string, *ListOptions) ([]Droplet, *Response, error) Get(context.Context, int) (*Droplet, *Response, error) Create(context.Context, *DropletCreateRequest) (*Droplet, *Response, error) CreateMultiple(context.Context, *DropletMultiCreateRequest) ([]Droplet, *Response, error) Delete(context.Context, int) (*Response, error) DeleteByTag(context.Context, string) (*Response, error) Kernels(context.Context, int, *ListOptions) ([]Kernel, *Response, error) Snapshots(context.Context, int, *ListOptions) ([]Image, *Response, error) Backups(context.Context, int, *ListOptions) ([]Image, *Response, error) Actions(context.Context, int, *ListOptions) ([]Action, *Response, error) Neighbors(context.Context, int) ([]Droplet, *Response, error) GetBackupPolicy(context.Context, int) (*DropletBackupPolicy, *Response, error) ListBackupPolicies(context.Context, *ListOptions) (map[int]*DropletBackupPolicy, *Response, error) ListSupportedBackupPolicies(context.Context) ([]*SupportedBackupPolicy, *Response, error) }
DropletsService is an interface for interfacing with the Droplet endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Droplets
type DropletsServiceOp ¶ added in v0.3.0
type DropletsServiceOp struct {
// contains filtered or unexported fields
}
DropletsServiceOp handles communication with the Droplet related methods of the DigitalOcean API.
func (*DropletsServiceOp) Actions ¶ added in v0.9.0
func (s *DropletsServiceOp) Actions(ctx context.Context, dropletID int, opt *ListOptions) ([]Action, *Response, error)
Actions lists the actions for a Droplet.
func (*DropletsServiceOp) Backups ¶ added in v0.9.0
func (s *DropletsServiceOp) Backups(ctx context.Context, dropletID int, opt *ListOptions) ([]Image, *Response, error)
Backups lists the backups for a Droplet.
func (*DropletsServiceOp) Create ¶ added in v0.3.0
func (s *DropletsServiceOp) Create(ctx context.Context, createRequest *DropletCreateRequest) (*Droplet, *Response, error)
Create Droplet
func (*DropletsServiceOp) CreateMultiple ¶ added in v1.0.0
func (s *DropletsServiceOp) CreateMultiple(ctx context.Context, createRequest *DropletMultiCreateRequest) ([]Droplet, *Response, error)
CreateMultiple creates multiple Droplets.
func (*DropletsServiceOp) DeleteByTag ¶ added in v1.0.0
DeleteByTag deletes Droplets matched by a Tag.
func (*DropletsServiceOp) GetBackupPolicy ¶ added in v1.129.0
func (s *DropletsServiceOp) GetBackupPolicy(ctx context.Context, dropletID int) (*DropletBackupPolicy, *Response, error)
Get individual droplet backup policy.
func (*DropletsServiceOp) Kernels ¶ added in v0.9.0
func (s *DropletsServiceOp) Kernels(ctx context.Context, dropletID int, opt *ListOptions) ([]Kernel, *Response, error)
Kernels lists kernels available for a Droplet.
func (*DropletsServiceOp) List ¶ added in v0.3.0
func (s *DropletsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Droplet, *Response, error)
List all Droplets.
func (*DropletsServiceOp) ListBackupPolicies ¶ added in v1.129.0
func (s *DropletsServiceOp) ListBackupPolicies(ctx context.Context, opt *ListOptions) (map[int]*DropletBackupPolicy, *Response, error)
List all droplet backup policies.
func (*DropletsServiceOp) ListByName ¶ added in v1.82.0
func (s *DropletsServiceOp) ListByName(ctx context.Context, name string, opt *ListOptions) ([]Droplet, *Response, error)
ListByName lists all Droplets filtered by name returning only exact matches. It is case-insensitive
func (*DropletsServiceOp) ListByTag ¶ added in v1.0.0
func (s *DropletsServiceOp) ListByTag(ctx context.Context, tag string, opt *ListOptions) ([]Droplet, *Response, error)
ListByTag lists all Droplets matched by a Tag.
func (*DropletsServiceOp) ListSupportedBackupPolicies ¶ added in v1.129.0
func (s *DropletsServiceOp) ListSupportedBackupPolicies(ctx context.Context) ([]*SupportedBackupPolicy, *Response, error)
List supported droplet backup policies.
func (*DropletsServiceOp) ListWithGPUs ¶ added in v1.129.0
func (s *DropletsServiceOp) ListWithGPUs(ctx context.Context, opt *ListOptions) ([]Droplet, *Response, error)
ListWithGPUs lists all Droplets with GPUs.
func (*DropletsServiceOp) Neighbors ¶ added in v0.9.0
func (s *DropletsServiceOp) Neighbors(ctx context.Context, dropletID int) ([]Droplet, *Response, error)
Neighbors lists the neighbors for a Droplet.
func (*DropletsServiceOp) Snapshots ¶ added in v0.9.0
func (s *DropletsServiceOp) Snapshots(ctx context.Context, dropletID int, opt *ListOptions) ([]Image, *Response, error)
Snapshots lists the snapshots available for a Droplet.
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response // Error message Message string `json:"message"` // RequestID returned from the API, useful to contact support. RequestID string `json:"request_id"` // Attempts is the number of times the request was attempted when retries are enabled. Attempts int }
An ErrorResponse reports the error caused by an API request
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type Firewall ¶ added in v1.1.0
type Firewall struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` InboundRules []InboundRule `json:"inbound_rules"` OutboundRules []OutboundRule `json:"outbound_rules"` DropletIDs []int `json:"droplet_ids"` Tags []string `json:"tags"` Created string `json:"created_at"` PendingChanges []PendingChange `json:"pending_changes"` }
Firewall represents a DigitalOcean Firewall configuration.
type FirewallRequest ¶ added in v1.1.0
type FirewallRequest struct { Name string `json:"name"` InboundRules []InboundRule `json:"inbound_rules"` OutboundRules []OutboundRule `json:"outbound_rules"` DropletIDs []int `json:"droplet_ids"` Tags []string `json:"tags"` }
FirewallRequest represents the configuration to be applied to an existing or a new Firewall.
type FirewallRulesRequest ¶ added in v1.1.0
type FirewallRulesRequest struct { InboundRules []InboundRule `json:"inbound_rules"` OutboundRules []OutboundRule `json:"outbound_rules"` }
FirewallRulesRequest represents rules configuration to be applied to an existing Firewall.
type FirewallsService ¶ added in v1.1.0
type FirewallsService interface { Get(context.Context, string) (*Firewall, *Response, error) Create(context.Context, *FirewallRequest) (*Firewall, *Response, error) Update(context.Context, string, *FirewallRequest) (*Firewall, *Response, error) Delete(context.Context, string) (*Response, error) List(context.Context, *ListOptions) ([]Firewall, *Response, error) ListByDroplet(context.Context, int, *ListOptions) ([]Firewall, *Response, error) AddDroplets(context.Context, string, ...int) (*Response, error) RemoveDroplets(context.Context, string, ...int) (*Response, error) AddTags(context.Context, string, ...string) (*Response, error) RemoveTags(context.Context, string, ...string) (*Response, error) AddRules(context.Context, string, *FirewallRulesRequest) (*Response, error) RemoveRules(context.Context, string, *FirewallRulesRequest) (*Response, error) }
FirewallsService is an interface for managing Firewalls with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Firewalls
type FirewallsServiceOp ¶ added in v1.1.0
type FirewallsServiceOp struct {
// contains filtered or unexported fields
}
FirewallsServiceOp handles communication with Firewalls methods of the DigitalOcean API.
func (*FirewallsServiceOp) AddDroplets ¶ added in v1.1.0
func (fw *FirewallsServiceOp) AddDroplets(ctx context.Context, fID string, dropletIDs ...int) (*Response, error)
AddDroplets to a Firewall.
func (*FirewallsServiceOp) AddRules ¶ added in v1.1.0
func (fw *FirewallsServiceOp) AddRules(ctx context.Context, fID string, rr *FirewallRulesRequest) (*Response, error)
AddRules to a Firewall.
func (*FirewallsServiceOp) AddTags ¶ added in v1.1.0
func (fw *FirewallsServiceOp) AddTags(ctx context.Context, fID string, tags ...string) (*Response, error)
AddTags to a Firewall.
func (*FirewallsServiceOp) Create ¶ added in v1.1.0
func (fw *FirewallsServiceOp) Create(ctx context.Context, fr *FirewallRequest) (*Firewall, *Response, error)
Create a new Firewall with a given configuration.
func (*FirewallsServiceOp) List ¶ added in v1.1.0
func (fw *FirewallsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Firewall, *Response, error)
List Firewalls.
func (*FirewallsServiceOp) ListByDroplet ¶ added in v1.1.0
func (fw *FirewallsServiceOp) ListByDroplet(ctx context.Context, dID int, opt *ListOptions) ([]Firewall, *Response, error)
ListByDroplet Firewalls.
func (*FirewallsServiceOp) RemoveDroplets ¶ added in v1.1.0
func (fw *FirewallsServiceOp) RemoveDroplets(ctx context.Context, fID string, dropletIDs ...int) (*Response, error)
RemoveDroplets from a Firewall.
func (*FirewallsServiceOp) RemoveRules ¶ added in v1.1.0
func (fw *FirewallsServiceOp) RemoveRules(ctx context.Context, fID string, rr *FirewallRulesRequest) (*Response, error)
RemoveRules from a Firewall.
func (*FirewallsServiceOp) RemoveTags ¶ added in v1.1.0
func (fw *FirewallsServiceOp) RemoveTags(ctx context.Context, fID string, tags ...string) (*Response, error)
RemoveTags from a Firewall.
func (*FirewallsServiceOp) Update ¶ added in v1.1.0
func (fw *FirewallsServiceOp) Update(ctx context.Context, fID string, fr *FirewallRequest) (*Firewall, *Response, error)
Update an existing Firewall with new configuration.
type FloatingIP ¶ added in v1.0.0
type FloatingIP struct { Region *Region `json:"region"` Droplet *Droplet `json:"droplet"` IP string `json:"ip"` ProjectID string `json:"project_id"` Locked bool `json:"locked"` }
FloatingIP represents a Digital Ocean floating IP.
func (FloatingIP) String ¶ added in v1.0.0
func (f FloatingIP) String() string
func (FloatingIP) URN ¶ added in v1.6.0
func (f FloatingIP) URN() string
URN returns the floating IP in a valid DO API URN form.
type FloatingIPActionsService ¶ added in v1.0.0
type FloatingIPActionsService interface { Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error) Unassign(ctx context.Context, ip string) (*Action, *Response, error) Get(ctx context.Context, ip string, actionID int) (*Action, *Response, error) List(ctx context.Context, ip string, opt *ListOptions) ([]Action, *Response, error) }
FloatingIPActionsService is an interface for interfacing with the floating IPs actions endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Floating-IP-Actions
type FloatingIPActionsServiceOp ¶ added in v1.0.0
type FloatingIPActionsServiceOp struct {
// contains filtered or unexported fields
}
FloatingIPActionsServiceOp handles communication with the floating IPs action related methods of the DigitalOcean API.
func (*FloatingIPActionsServiceOp) Assign ¶ added in v1.0.0
func (s *FloatingIPActionsServiceOp) Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error)
Assign a floating IP to a droplet.
func (*FloatingIPActionsServiceOp) Get ¶ added in v1.0.0
func (s *FloatingIPActionsServiceOp) Get(ctx context.Context, ip string, actionID int) (*Action, *Response, error)
Get an action for a particular floating IP by id.
func (*FloatingIPActionsServiceOp) List ¶ added in v1.0.0
func (s *FloatingIPActionsServiceOp) List(ctx context.Context, ip string, opt *ListOptions) ([]Action, *Response, error)
List the actions for a particular floating IP.
type FloatingIPCreateRequest ¶ added in v1.0.0
type FloatingIPCreateRequest struct { Region string `json:"region,omitempty"` DropletID int `json:"droplet_id,omitempty"` ProjectID string `json:"project_id,omitempty"` }
FloatingIPCreateRequest represents a request to create a floating IP. Specify DropletID to assign the floating IP to a Droplet or Region to reserve it to the region.
type FloatingIPsService ¶ added in v1.0.0
type FloatingIPsService interface { List(context.Context, *ListOptions) ([]FloatingIP, *Response, error) Get(context.Context, string) (*FloatingIP, *Response, error) Create(context.Context, *FloatingIPCreateRequest) (*FloatingIP, *Response, error) Delete(context.Context, string) (*Response, error) }
FloatingIPsService is an interface for interfacing with the floating IPs endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Floating-IPs
type FloatingIPsServiceOp ¶ added in v1.0.0
type FloatingIPsServiceOp struct {
// contains filtered or unexported fields
}
FloatingIPsServiceOp handles communication with the floating IPs related methods of the DigitalOcean API.
func (*FloatingIPsServiceOp) Create ¶ added in v1.0.0
func (f *FloatingIPsServiceOp) Create(ctx context.Context, createRequest *FloatingIPCreateRequest) (*FloatingIP, *Response, error)
Create a floating IP. If the DropletID field of the request is not empty, the floating IP will also be assigned to the droplet.
func (*FloatingIPsServiceOp) Get ¶ added in v1.0.0
func (f *FloatingIPsServiceOp) Get(ctx context.Context, ip string) (*FloatingIP, *Response, error)
Get an individual floating IP.
func (*FloatingIPsServiceOp) List ¶ added in v1.0.0
func (f *FloatingIPsServiceOp) List(ctx context.Context, opt *ListOptions) ([]FloatingIP, *Response, error)
List all floating IPs.
type ForwardingRule ¶ added in v1.0.0
type ForwardingRule struct { EntryProtocol string `json:"entry_protocol,omitempty"` EntryPort int `json:"entry_port,omitempty"` TargetProtocol string `json:"target_protocol,omitempty"` TargetPort int `json:"target_port,omitempty"` CertificateID string `json:"certificate_id,omitempty"` TlsPassthrough bool `json:"tls_passthrough,omitempty"` }
ForwardingRule represents load balancer forwarding rules.
func (ForwardingRule) String ¶ added in v1.0.0
func (f ForwardingRule) String() string
String creates a human-readable description of a ForwardingRule.
type FunctionsNamespace ¶ added in v1.90.0
type FunctionsNamespace struct { ApiHost string `json:"api_host,omitempty"` Namespace string `json:"namespace,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Label string `json:"label,omitempty"` Region string `json:"region,omitempty"` UUID string `json:"uuid,omitempty"` Key string `json:"key,omitempty"` }
type FunctionsNamespaceCreateRequest ¶ added in v1.90.0
type FunctionsService ¶ added in v1.90.0
type FunctionsService interface { ListNamespaces(context.Context) ([]FunctionsNamespace, *Response, error) GetNamespace(context.Context, string) (*FunctionsNamespace, *Response, error) CreateNamespace(context.Context, *FunctionsNamespaceCreateRequest) (*FunctionsNamespace, *Response, error) DeleteNamespace(context.Context, string) (*Response, error) ListTriggers(context.Context, string) ([]FunctionsTrigger, *Response, error) GetTrigger(context.Context, string, string) (*FunctionsTrigger, *Response, error) CreateTrigger(context.Context, string, *FunctionsTriggerCreateRequest) (*FunctionsTrigger, *Response, error) UpdateTrigger(context.Context, string, string, *FunctionsTriggerUpdateRequest) (*FunctionsTrigger, *Response, error) DeleteTrigger(context.Context, string, string) (*Response, error) }
type FunctionsServiceOp ¶ added in v1.90.0
type FunctionsServiceOp struct {
// contains filtered or unexported fields
}
func (*FunctionsServiceOp) CreateNamespace ¶ added in v1.90.0
func (s *FunctionsServiceOp) CreateNamespace(ctx context.Context, opts *FunctionsNamespaceCreateRequest) (*FunctionsNamespace, *Response, error)
Creates a namespace
func (*FunctionsServiceOp) CreateTrigger ¶ added in v1.92.0
func (s *FunctionsServiceOp) CreateTrigger(ctx context.Context, namespace string, opts *FunctionsTriggerCreateRequest) (*FunctionsTrigger, *Response, error)
CreateTrigger creates a trigger
func (*FunctionsServiceOp) DeleteNamespace ¶ added in v1.90.0
func (s *FunctionsServiceOp) DeleteNamespace(ctx context.Context, namespace string) (*Response, error)
Delete a namespace
func (*FunctionsServiceOp) DeleteTrigger ¶ added in v1.92.0
func (s *FunctionsServiceOp) DeleteTrigger(ctx context.Context, namespace string, trigger string) (*Response, error)
DeleteTrigger deletes a trigger
func (*FunctionsServiceOp) GetNamespace ¶ added in v1.90.0
func (s *FunctionsServiceOp) GetNamespace(ctx context.Context, namespace string) (*FunctionsNamespace, *Response, error)
Gets a single namespace
func (*FunctionsServiceOp) GetTrigger ¶ added in v1.92.0
func (s *FunctionsServiceOp) GetTrigger(ctx context.Context, namespace string, trigger string) (*FunctionsTrigger, *Response, error)
GetTrigger gets a single trigger
func (*FunctionsServiceOp) ListNamespaces ¶ added in v1.90.0
func (s *FunctionsServiceOp) ListNamespaces(ctx context.Context) ([]FunctionsNamespace, *Response, error)
Gets a list of namespaces
func (*FunctionsServiceOp) ListTriggers ¶ added in v1.92.0
func (s *FunctionsServiceOp) ListTriggers(ctx context.Context, namespace string) ([]FunctionsTrigger, *Response, error)
ListTriggers gets a list of triggers
func (*FunctionsServiceOp) UpdateTrigger ¶ added in v1.92.0
func (s *FunctionsServiceOp) UpdateTrigger(ctx context.Context, namespace string, trigger string, opts *FunctionsTriggerUpdateRequest) (*FunctionsTrigger, *Response, error)
UpdateTrigger updates a trigger
type FunctionsTrigger ¶ added in v1.92.0
type FunctionsTrigger struct { Namespace string `json:"namespace,omitempty"` Function string `json:"function,omitempty"` Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` IsEnabled bool `json:"is_enabled"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` ScheduledDetails *TriggerScheduledDetails `json:"scheduled_details,omitempty"` ScheduledRuns *TriggerScheduledRuns `json:"scheduled_runs,omitempty"` }
type FunctionsTriggerCreateRequest ¶ added in v1.92.0
type FunctionsTriggerCreateRequest struct { Name string `json:"name"` Type string `json:"type"` Function string `json:"function"` IsEnabled bool `json:"is_enabled"` ScheduledDetails *TriggerScheduledDetails `json:"scheduled_details,omitempty"` }
type FunctionsTriggerUpdateRequest ¶ added in v1.92.0
type FunctionsTriggerUpdateRequest struct { IsEnabled *bool `json:"is_enabled,omitempty"` ScheduledDetails *TriggerScheduledDetails `json:"scheduled_details,omitempty"` }
type GLBSettings ¶ added in v1.111.0
type GLBSettings struct { // TargetProtocol is the outgoing traffic protocol. TargetProtocol string `json:"target_protocol"` // EntryPort is the outgoing traffic port. TargetPort uint32 `json:"target_port"` // CDNSettings is the CDN configurations CDN *CDNSettings `json:"cdn"` // RegionPriorities embeds regional priority information for regional active-passive failover policy RegionPriorities map[string]uint32 `json:"region_priorities,omitempty"` // FailoverThreshold embeds failover threshold percentage for regional active-passive failover policy FailoverThreshold uint32 `json:"failover_threshold,omitempty"` }
GLBSettings define settings for configuring a Global LB
func (GLBSettings) String ¶ added in v1.111.0
func (s GLBSettings) String() string
String creates a human-readable description of a GLBSettings
type GPUInfo ¶ added in v1.129.0
type GPUInfo struct { Count int `json:"count,omitempty"` VRAM *VRAM `json:"vram,omitempty"` Model string `json:"model,omitempty"` }
GPUInfo provides information about the GPU available to Droplets created with this size.
type GarbageCollection ¶ added in v1.50.0
type GarbageCollection struct { UUID string `json:"uuid"` RegistryName string `json:"registry_name"` Status string `json:"status"` Type GarbageCollectionType `json:"type"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` BlobsDeleted uint64 `json:"blobs_deleted"` FreedBytes uint64 `json:"freed_bytes"` }
GarbageCollection represents a garbage collection.
type GarbageCollectionType ¶ added in v1.54.0
type GarbageCollectionType string
type GetAppDatabaseConnectionDetailsResponse ¶ added in v1.109.0
type GetAppDatabaseConnectionDetailsResponse struct {
ConnectionDetails []*GetDatabaseConnectionDetailsResponse `json:"connection_details,omitempty"`
}
GetAppDatabaseConnectionDetailsResponse struct for GetAppDatabaseConnectionDetailsResponse
func (*GetAppDatabaseConnectionDetailsResponse) GetConnectionDetails ¶ added in v1.109.0
func (g *GetAppDatabaseConnectionDetailsResponse) GetConnectionDetails() []*GetDatabaseConnectionDetailsResponse
GetConnectionDetails returns the ConnectionDetails field.
type GetDatabaseConnectionDetailsResponse ¶ added in v1.109.0
type GetDatabaseConnectionDetailsResponse struct { Host string `json:"host,omitempty"` Port int64 `json:"port,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` DatabaseName string `json:"database_name,omitempty"` SslMode string `json:"ssl_mode,omitempty"` DatabaseURL string `json:"database_url,omitempty"` ComponentName string `json:"component_name,omitempty"` Pools []*GetDatabaseConnectionDetailsResponsePool `json:"pools,omitempty"` }
GetDatabaseConnectionDetailsResponse struct for GetDatabaseConnectionDetailsResponse
func (*GetDatabaseConnectionDetailsResponse) GetComponentName ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetComponentName() string
GetComponentName returns the ComponentName field.
func (*GetDatabaseConnectionDetailsResponse) GetDatabaseName ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetDatabaseName() string
GetDatabaseName returns the DatabaseName field.
func (*GetDatabaseConnectionDetailsResponse) GetDatabaseURL ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetDatabaseURL() string
GetDatabaseURL returns the DatabaseURL field.
func (*GetDatabaseConnectionDetailsResponse) GetHost ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetHost() string
GetHost returns the Host field.
func (*GetDatabaseConnectionDetailsResponse) GetPassword ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetPassword() string
GetPassword returns the Password field.
func (*GetDatabaseConnectionDetailsResponse) GetPools ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetPools() []*GetDatabaseConnectionDetailsResponsePool
GetPools returns the Pools field.
func (*GetDatabaseConnectionDetailsResponse) GetPort ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetPort() int64
GetPort returns the Port field.
func (*GetDatabaseConnectionDetailsResponse) GetSslMode ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetSslMode() string
GetSslMode returns the SslMode field.
func (*GetDatabaseConnectionDetailsResponse) GetUsername ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponse) GetUsername() string
GetUsername returns the Username field.
type GetDatabaseConnectionDetailsResponsePool ¶ added in v1.109.0
type GetDatabaseConnectionDetailsResponsePool struct { PoolName string `json:"pool_name,omitempty"` Host string `json:"host,omitempty"` Port int64 `json:"port,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` DatabaseName string `json:"database_name,omitempty"` SslMode string `json:"ssl_mode,omitempty"` DatabaseURL string `json:"database_url,omitempty"` }
GetDatabaseConnectionDetailsResponsePool struct for GetDatabaseConnectionDetailsResponsePool
func (*GetDatabaseConnectionDetailsResponsePool) GetDatabaseName ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetDatabaseName() string
GetDatabaseName returns the DatabaseName field.
func (*GetDatabaseConnectionDetailsResponsePool) GetDatabaseURL ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetDatabaseURL() string
GetDatabaseURL returns the DatabaseURL field.
func (*GetDatabaseConnectionDetailsResponsePool) GetHost ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetHost() string
GetHost returns the Host field.
func (*GetDatabaseConnectionDetailsResponsePool) GetPassword ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetPassword() string
GetPassword returns the Password field.
func (*GetDatabaseConnectionDetailsResponsePool) GetPoolName ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetPoolName() string
GetPoolName returns the PoolName field.
func (*GetDatabaseConnectionDetailsResponsePool) GetPort ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetPort() int64
GetPort returns the Port field.
func (*GetDatabaseConnectionDetailsResponsePool) GetSslMode ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetSslMode() string
GetSslMode returns the SslMode field.
func (*GetDatabaseConnectionDetailsResponsePool) GetUsername ¶ added in v1.109.0
func (g *GetDatabaseConnectionDetailsResponsePool) GetUsername() string
GetUsername returns the Username field.
type GetDatabaseTrustedSourceResponse ¶ added in v1.109.0
type GetDatabaseTrustedSourceResponse struct {
IsEnabled bool `json:"is_enabled,omitempty"`
}
GetDatabaseTrustedSourceResponse struct for GetDatabaseTrustedSourceResponse
func (*GetDatabaseTrustedSourceResponse) GetIsEnabled ¶ added in v1.109.0
func (g *GetDatabaseTrustedSourceResponse) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field.
type GitHubSourceSpec ¶ added in v1.39.0
type GitHubSourceSpec struct { Repo string `json:"repo,omitempty"` Branch string `json:"branch,omitempty"` DeployOnPush bool `json:"deploy_on_push,omitempty"` }
GitHubSourceSpec struct for GitHubSourceSpec
func (*GitHubSourceSpec) GetBranch ¶ added in v1.85.0
func (g *GitHubSourceSpec) GetBranch() string
GetBranch returns the Branch field.
func (*GitHubSourceSpec) GetDeployOnPush ¶ added in v1.85.0
func (g *GitHubSourceSpec) GetDeployOnPush() bool
GetDeployOnPush returns the DeployOnPush field.
func (*GitHubSourceSpec) GetRepo ¶ added in v1.85.0
func (g *GitHubSourceSpec) GetRepo() string
GetRepo returns the Repo field.
func (*GitHubSourceSpec) GetType ¶ added in v1.85.0
func (s *GitHubSourceSpec) GetType() AppSourceType
GetType returns the GitHub source type.
type GitLabSourceSpec ¶ added in v1.57.0
type GitLabSourceSpec struct { Repo string `json:"repo,omitempty"` Branch string `json:"branch,omitempty"` DeployOnPush bool `json:"deploy_on_push,omitempty"` }
GitLabSourceSpec struct for GitLabSourceSpec
func (*GitLabSourceSpec) GetBranch ¶ added in v1.85.0
func (g *GitLabSourceSpec) GetBranch() string
GetBranch returns the Branch field.
func (*GitLabSourceSpec) GetDeployOnPush ¶ added in v1.85.0
func (g *GitLabSourceSpec) GetDeployOnPush() bool
GetDeployOnPush returns the DeployOnPush field.
func (*GitLabSourceSpec) GetRepo ¶ added in v1.85.0
func (g *GitLabSourceSpec) GetRepo() string
GetRepo returns the Repo field.
func (*GitLabSourceSpec) GetType ¶ added in v1.85.0
func (s *GitLabSourceSpec) GetType() AppSourceType
GetType returns the GitLab source type.
type GitSourceSpec ¶ added in v1.39.0
type GitSourceSpec struct { RepoCloneURL string `json:"repo_clone_url,omitempty"` Branch string `json:"branch,omitempty"` }
GitSourceSpec struct for GitSourceSpec
func (*GitSourceSpec) GetBranch ¶ added in v1.85.0
func (g *GitSourceSpec) GetBranch() string
GetBranch returns the Branch field.
func (*GitSourceSpec) GetRepo ¶ added in v1.85.0
func (s *GitSourceSpec) GetRepo() string
GetRepo allows GitSourceSpec to implement the SourceSpec interface.
func (*GitSourceSpec) GetRepoCloneURL ¶ added in v1.85.0
func (g *GitSourceSpec) GetRepoCloneURL() string
GetRepoCloneURL returns the RepoCloneURL field.
func (*GitSourceSpec) GetType ¶ added in v1.85.0
func (s *GitSourceSpec) GetType() AppSourceType
GetType returns the Git source type.
type Grant ¶ added in v1.134.0
type Grant struct { Bucket string `json:"bucket"` Permission SpacesKeyPermission `json:"permission"` }
Grant represents a Grant for a Spaces key
type HealthCheck ¶ added in v1.0.0
type HealthCheck struct { Protocol string `json:"protocol,omitempty"` Port int `json:"port,omitempty"` Path string `json:"path,omitempty"` CheckIntervalSeconds int `json:"check_interval_seconds,omitempty"` ResponseTimeoutSeconds int `json:"response_timeout_seconds,omitempty"` HealthyThreshold int `json:"healthy_threshold,omitempty"` UnhealthyThreshold int `json:"unhealthy_threshold,omitempty"` ProxyProtocol *bool `json:"proxy_protocol,omitempty"` }
HealthCheck represents optional load balancer health check rules.
func (HealthCheck) String ¶ added in v1.0.0
func (h HealthCheck) String() string
String creates a human-readable description of a HealthCheck.
type Image ¶
type Image struct { ID int `json:"id,float64,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Distribution string `json:"distribution,omitempty"` Slug string `json:"slug,omitempty"` Public bool `json:"public,omitempty"` Regions []string `json:"regions,omitempty"` MinDiskSize int `json:"min_disk_size,omitempty"` SizeGigaBytes float64 `json:"size_gigabytes,omitempty"` Created string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` Tags []string `json:"tags,omitempty"` Status string `json:"status,omitempty"` ErrorMessage string `json:"error_message,omitempty"` }
Image represents a DigitalOcean Image
type ImageActionsService ¶
type ImageActionsService interface { Get(context.Context, int, int) (*Action, *Response, error) GetByURI(context.Context, string) (*Action, *Response, error) Transfer(context.Context, int, *ActionRequest) (*Action, *Response, error) Convert(context.Context, int) (*Action, *Response, error) }
ImageActionsService is an interface for interfacing with the image actions endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Image-Actions
type ImageActionsServiceOp ¶ added in v0.3.0
type ImageActionsServiceOp struct {
// contains filtered or unexported fields
}
ImageActionsServiceOp handles communication with the image action related methods of the DigitalOcean API.
func (*ImageActionsServiceOp) Convert ¶ added in v1.0.0
func (i *ImageActionsServiceOp) Convert(ctx context.Context, imageID int) (*Action, *Response, error)
Convert an image to a snapshot
func (*ImageActionsServiceOp) Get ¶ added in v0.3.0
func (i *ImageActionsServiceOp) Get(ctx context.Context, imageID, actionID int) (*Action, *Response, error)
Get an action for a particular image by id.
func (*ImageActionsServiceOp) GetByURI ¶ added in v1.90.0
func (i *ImageActionsServiceOp) GetByURI(ctx context.Context, rawurl string) (*Action, *Response, error)
GetByURI gets an action for a particular image by URI.
func (*ImageActionsServiceOp) Transfer ¶ added in v0.3.0
func (i *ImageActionsServiceOp) Transfer(ctx context.Context, imageID int, transferRequest *ActionRequest) (*Action, *Response, error)
Transfer an image
type ImageSourceSpec ¶ added in v1.52.0
type ImageSourceSpec struct { RegistryType ImageSourceSpecRegistryType `json:"registry_type,omitempty"` // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry string `json:"registry,omitempty"` // The repository name. Repository string `json:"repository,omitempty"` // The repository tag. Defaults to `latest` if not provided and no digest is provided. Cannot be specified if digest is provided. Tag string `json:"tag,omitempty"` // The image digest. Cannot be specified if tag is provided. Digest string `json:"digest,omitempty"` // The credentials to be able to pull the image. The value will be encrypted on first submission. On following submissions, the encrypted value should be used. - \"$username:$access_token\" for registries of type `DOCKER_HUB`. - \"$username:$access_token\" for registries of type `GHCR`. RegistryCredentials string `json:"registry_credentials,omitempty"` DeployOnPush *ImageSourceSpecDeployOnPush `json:"deploy_on_push,omitempty"` }
ImageSourceSpec struct for ImageSourceSpec
func (*ImageSourceSpec) GetDeployOnPush ¶ added in v1.86.0
func (i *ImageSourceSpec) GetDeployOnPush() *ImageSourceSpecDeployOnPush
GetDeployOnPush returns the DeployOnPush field.
func (*ImageSourceSpec) GetDigest ¶ added in v1.104.0
func (i *ImageSourceSpec) GetDigest() string
GetDigest returns the Digest field.
func (*ImageSourceSpec) GetRegistry ¶ added in v1.85.0
func (i *ImageSourceSpec) GetRegistry() string
GetRegistry returns the Registry field.
func (*ImageSourceSpec) GetRegistryCredentials ¶ added in v1.107.0
func (i *ImageSourceSpec) GetRegistryCredentials() string
GetRegistryCredentials returns the RegistryCredentials field.
func (*ImageSourceSpec) GetRegistryType ¶ added in v1.85.0
func (i *ImageSourceSpec) GetRegistryType() ImageSourceSpecRegistryType
GetRegistryType returns the RegistryType field.
func (*ImageSourceSpec) GetRepository ¶ added in v1.85.0
func (i *ImageSourceSpec) GetRepository() string
GetRepository returns the Repository field.
func (*ImageSourceSpec) GetTag ¶ added in v1.85.0
func (i *ImageSourceSpec) GetTag() string
GetTag returns the Tag field.
func (*ImageSourceSpec) GetType ¶ added in v1.85.0
func (s *ImageSourceSpec) GetType() AppSourceType
GetType returns the Image source type.
type ImageSourceSpecDeployOnPush ¶ added in v1.86.0
type ImageSourceSpecDeployOnPush struct { // Automatically deploy new images. Only for DOCR images. Can't be enabled when a specific digest is specified. Enabled bool `json:"enabled,omitempty"` }
ImageSourceSpecDeployOnPush struct for ImageSourceSpecDeployOnPush
func (*ImageSourceSpecDeployOnPush) GetEnabled ¶ added in v1.86.0
func (i *ImageSourceSpecDeployOnPush) GetEnabled() bool
GetEnabled returns the Enabled field.
type ImageSourceSpecRegistryType ¶ added in v1.52.0
type ImageSourceSpecRegistryType string
ImageSourceSpecRegistryType - DOCR: The DigitalOcean container registry type. - DOCKER_HUB: The DockerHub container registry type. - GHCR: The GitHub container registry type.
const ( ImageSourceSpecRegistryType_Unspecified ImageSourceSpecRegistryType = "UNSPECIFIED" ImageSourceSpecRegistryType_DOCR ImageSourceSpecRegistryType = "DOCR" ImageSourceSpecRegistryType_DockerHub ImageSourceSpecRegistryType = "DOCKER_HUB" ImageSourceSpecRegistryType_Ghcr ImageSourceSpecRegistryType = "GHCR" )
List of ImageSourceSpecRegistryType
type ImageUpdateRequest ¶ added in v0.9.0
type ImageUpdateRequest struct { Name string `json:"name,omitempty"` Distribution string `json:"distribution,omitempty"` Description string `json:"description,omitempty"` }
ImageUpdateRequest represents a request to update an image.
type ImagesService ¶
type ImagesService interface { List(context.Context, *ListOptions) ([]Image, *Response, error) ListDistribution(ctx context.Context, opt *ListOptions) ([]Image, *Response, error) ListApplication(ctx context.Context, opt *ListOptions) ([]Image, *Response, error) ListUser(ctx context.Context, opt *ListOptions) ([]Image, *Response, error) ListByTag(ctx context.Context, tag string, opt *ListOptions) ([]Image, *Response, error) GetByID(context.Context, int) (*Image, *Response, error) GetBySlug(context.Context, string) (*Image, *Response, error) Create(context.Context, *CustomImageCreateRequest) (*Image, *Response, error) Update(context.Context, int, *ImageUpdateRequest) (*Image, *Response, error) Delete(context.Context, int) (*Response, error) }
ImagesService is an interface for interfacing with the images endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Images
type ImagesServiceOp ¶ added in v0.3.0
type ImagesServiceOp struct {
// contains filtered or unexported fields
}
ImagesServiceOp handles communication with the image related methods of the DigitalOcean API.
func (*ImagesServiceOp) Create ¶ added in v1.7.1
func (s *ImagesServiceOp) Create(ctx context.Context, createRequest *CustomImageCreateRequest) (*Image, *Response, error)
Create a new image
func (*ImagesServiceOp) List ¶ added in v0.3.0
func (s *ImagesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
List lists all the images available.
func (*ImagesServiceOp) ListApplication ¶ added in v0.9.0
func (s *ImagesServiceOp) ListApplication(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
ListApplication lists all the application images.
func (*ImagesServiceOp) ListByTag ¶ added in v1.7.1
func (s *ImagesServiceOp) ListByTag(ctx context.Context, tag string, opt *ListOptions) ([]Image, *Response, error)
ListByTag lists all images with a specific tag applied.
func (*ImagesServiceOp) ListDistribution ¶ added in v0.9.0
func (s *ImagesServiceOp) ListDistribution(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
ListDistribution lists all the distribution images.
func (*ImagesServiceOp) ListUser ¶ added in v0.9.0
func (s *ImagesServiceOp) ListUser(ctx context.Context, opt *ListOptions) ([]Image, *Response, error)
ListUser lists all the user images.
func (*ImagesServiceOp) Update ¶ added in v0.9.0
func (s *ImagesServiceOp) Update(ctx context.Context, imageID int, updateRequest *ImageUpdateRequest) (*Image, *Response, error)
Update an image name.
type InboundRule ¶ added in v1.1.0
type InboundRule struct { Protocol string `json:"protocol,omitempty"` PortRange string `json:"ports,omitempty"` Sources *Sources `json:"sources"` }
InboundRule represents a DigitalOcean Firewall inbound rule.
type IndexReplication ¶ added in v1.121.0
type InstallKubernetesAppsRequest ¶ added in v1.38.0
type InstallKubernetesAppsRequest struct { Slugs []string `json:"addon_slugs"` ClusterUUID string `json:"cluster_uuid"` }
InstallKubernetesAppsRequest represents a request required to install 1-click kubernetes apps
type InstallKubernetesAppsResponse ¶ added in v1.38.0
type InstallKubernetesAppsResponse struct {
Message string `json:"message"`
}
InstallKubernetesAppsResponse is the response of a kubernetes 1-click install request
type Invoice ¶ added in v1.31.0
type Invoice struct { InvoiceItems []InvoiceItem `json:"invoice_items"` Links *Links `json:"links"` Meta *Meta `json:"meta"` }
Invoice represents a DigitalOcean Invoice
type InvoiceItem ¶ added in v1.31.0
type InvoiceItem struct { Product string `json:"product"` ResourceID string `json:"resource_id"` ResourceUUID string `json:"resource_uuid"` GroupDescription string `json:"group_description"` Description string `json:"description"` Amount string `json:"amount"` Duration string `json:"duration"` DurationUnit string `json:"duration_unit"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` ProjectName string `json:"project_name"` Category string `json:"category"` }
InvoiceItem represents a line-item on a DigitalOcean Invoice
type InvoiceList ¶ added in v1.31.0
type InvoiceList struct { Invoices []InvoiceListItem `json:"invoices"` InvoicePreview InvoiceListItem `json:"invoice_preview"` Links *Links `json:"links"` Meta *Meta `json:"meta"` }
InvoiceList contains a paginated list of all of a customer's invoices. The InvoicePreview is the month-to-date usage generated by DigitalOcean.
type InvoiceListItem ¶ added in v1.31.0
type InvoiceListItem struct { InvoiceUUID string `json:"invoice_uuid"` Amount string `json:"amount"` InvoicePeriod string `json:"invoice_period"` UpdatedAt time.Time `json:"updated_at"` }
InvoiceListItem contains a small list of information about a customer's invoice. More information can be found in the Invoice or InvoiceSummary
type InvoiceSummary ¶ added in v1.31.0
type InvoiceSummary struct { InvoiceUUID string `json:"invoice_uuid"` BillingPeriod string `json:"billing_period"` Amount string `json:"amount"` UserName string `json:"user_name"` UserBillingAddress Address `json:"user_billing_address"` UserCompany string `json:"user_company"` UserEmail string `json:"user_email"` ProductCharges InvoiceSummaryBreakdown `json:"product_charges"` Overages InvoiceSummaryBreakdown `json:"overages"` Taxes InvoiceSummaryBreakdown `json:"taxes"` CreditsAndAdjustments InvoiceSummaryBreakdown `json:"credits_and_adjustments"` }
InvoiceSummary contains metadata and summarized usage for an invoice generated by DigitalOcean
type InvoiceSummaryBreakdown ¶ added in v1.31.0
type InvoiceSummaryBreakdown struct { Name string `json:"name"` Amount string `json:"amount"` Items []InvoiceSummaryBreakdownItem `json:"items"` }
InvoiceSummaryBreakdown is a grouped set of InvoiceItems from an invoice
type InvoiceSummaryBreakdownItem ¶ added in v1.31.0
type InvoiceSummaryBreakdownItem struct { Name string `json:"name"` Amount string `json:"amount"` Count string `json:"count"` }
InvoiceSummaryBreakdownItem further breaks down the InvoiceSummary by product
type InvoicesService ¶ added in v1.31.0
type InvoicesService interface { Get(context.Context, string, *ListOptions) (*Invoice, *Response, error) GetPDF(context.Context, string) ([]byte, *Response, error) GetCSV(context.Context, string) ([]byte, *Response, error) List(context.Context, *ListOptions) (*InvoiceList, *Response, error) GetSummary(context.Context, string) (*InvoiceSummary, *Response, error) }
InvoicesService is an interface for interfacing with the Invoice endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Billing
type InvoicesServiceOp ¶ added in v1.31.0
type InvoicesServiceOp struct {
// contains filtered or unexported fields
}
InvoicesServiceOp handles communication with the Invoice related methods of the DigitalOcean API.
func (*InvoicesServiceOp) Get ¶ added in v1.31.0
func (s *InvoicesServiceOp) Get(ctx context.Context, invoiceUUID string, opt *ListOptions) (*Invoice, *Response, error)
Get detailed invoice items for an Invoice
func (*InvoicesServiceOp) GetCSV ¶ added in v1.31.0
func (s *InvoicesServiceOp) GetCSV(ctx context.Context, invoiceUUID string) ([]byte, *Response, error)
GetCSV returns the csv for an Invoice
func (*InvoicesServiceOp) GetPDF ¶ added in v1.31.0
func (s *InvoicesServiceOp) GetPDF(ctx context.Context, invoiceUUID string) ([]byte, *Response, error)
GetPDF returns the pdf for an Invoice
func (*InvoicesServiceOp) GetSummary ¶ added in v1.31.0
func (s *InvoicesServiceOp) GetSummary(ctx context.Context, invoiceUUID string) (*InvoiceSummary, *Response, error)
GetSummary returns a summary of metadata and summarized usage for an Invoice
func (*InvoicesServiceOp) List ¶ added in v1.31.0
func (s *InvoicesServiceOp) List(ctx context.Context, opt *ListOptions) (*InvoiceList, *Response, error)
List invoices for a customer
type KafkaACL ¶ added in v1.103.0
type KafkaACL struct { ID string `json:"id,omitempty"` Permission string `json:"permission,omitempty"` Topic string `json:"topic,omitempty"` }
KafkaACL contains Kafka specific user access control information
type KafkaConfig ¶ added in v1.126.0
type KafkaConfig struct { GroupInitialRebalanceDelayMs *int `json:"group_initial_rebalance_delay_ms,omitempty"` GroupMinSessionTimeoutMs *int `json:"group_min_session_timeout_ms,omitempty"` GroupMaxSessionTimeoutMs *int `json:"group_max_session_timeout_ms,omitempty"` MessageMaxBytes *int `json:"message_max_bytes,omitempty"` LogCleanerDeleteRetentionMs *int64 `json:"log_cleaner_delete_retention_ms,omitempty"` LogCleanerMinCompactionLagMs *uint64 `json:"log_cleaner_min_compaction_lag_ms,omitempty"` LogFlushIntervalMs *uint64 `json:"log_flush_interval_ms,omitempty"` LogIndexIntervalBytes *int `json:"log_index_interval_bytes,omitempty"` LogMessageDownconversionEnable *bool `json:"log_message_downconversion_enable,omitempty"` LogMessageTimestampDifferenceMaxMs *uint64 `json:"log_message_timestamp_difference_max_ms,omitempty"` LogPreallocate *bool `json:"log_preallocate,omitempty"` LogRetentionBytes *big.Int `json:"log_retention_bytes,omitempty"` LogRetentionHours *int `json:"log_retention_hours,omitempty"` LogRetentionMs *big.Int `json:"log_retention_ms,omitempty"` LogRollJitterMs *uint64 `json:"log_roll_jitter_ms,omitempty"` LogSegmentDeleteDelayMs *int `json:"log_segment_delete_delay_ms,omitempty"` AutoCreateTopicsEnable *bool `json:"auto_create_topics_enable,omitempty"` }
KafkaConfig holds advanced configurations for Kafka database clusters.
type Kernel ¶ added in v0.9.0
type Kernel struct { ID int `json:"id,float64,omitempty"` Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` }
Kernel object
type Key ¶
type Key struct { ID int `json:"id,float64,omitempty"` Name string `json:"name,omitempty"` Fingerprint string `json:"fingerprint,omitempty"` PublicKey string `json:"public_key,omitempty"` }
Key represents a DigitalOcean Key.
type KeyCreateRequest ¶
KeyCreateRequest represents a request to create a new SSH key.
type KeyUpdateRequest ¶ added in v0.9.0
type KeyUpdateRequest struct {
Name string `json:"name"`
}
KeyUpdateRequest represents a request to update an SSH key stored in a DigitalOcean account.
type KeysService ¶
type KeysService interface { List(context.Context, *ListOptions) ([]Key, *Response, error) GetByID(context.Context, int) (*Key, *Response, error) GetByFingerprint(context.Context, string) (*Key, *Response, error) Create(context.Context, *KeyCreateRequest) (*Key, *Response, error) UpdateByID(context.Context, int, *KeyUpdateRequest) (*Key, *Response, error) UpdateByFingerprint(context.Context, string, *KeyUpdateRequest) (*Key, *Response, error) DeleteByID(context.Context, int) (*Response, error) DeleteByFingerprint(context.Context, string) (*Response, error) }
KeysService is an interface for interfacing with the SSH keys endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/SSH-Keys
type KeysServiceOp ¶ added in v0.3.0
type KeysServiceOp struct {
// contains filtered or unexported fields
}
KeysServiceOp handles communication with SSH key related method of the DigitalOcean API.
func (*KeysServiceOp) Create ¶ added in v0.3.0
func (s *KeysServiceOp) Create(ctx context.Context, createRequest *KeyCreateRequest) (*Key, *Response, error)
Create an SSH key using a KeyCreateRequest
func (*KeysServiceOp) DeleteByFingerprint ¶ added in v0.3.0
func (s *KeysServiceOp) DeleteByFingerprint(ctx context.Context, fingerprint string) (*Response, error)
DeleteByFingerprint deletes an SSH key by its fingerprint
func (*KeysServiceOp) DeleteByID ¶ added in v0.3.0
DeleteByID deletes an SSH key by its id
func (*KeysServiceOp) GetByFingerprint ¶ added in v0.3.0
func (s *KeysServiceOp) GetByFingerprint(ctx context.Context, fingerprint string) (*Key, *Response, error)
GetByFingerprint gets an SSH key by its fingerprint
func (*KeysServiceOp) List ¶ added in v0.3.0
func (s *KeysServiceOp) List(ctx context.Context, opt *ListOptions) ([]Key, *Response, error)
List all SSH keys
func (*KeysServiceOp) UpdateByFingerprint ¶ added in v0.9.0
func (s *KeysServiceOp) UpdateByFingerprint(ctx context.Context, fingerprint string, updateRequest *KeyUpdateRequest) (*Key, *Response, error)
UpdateByFingerprint updates an SSH key name by fingerprint.
func (*KeysServiceOp) UpdateByID ¶ added in v0.9.0
func (s *KeysServiceOp) UpdateByID(ctx context.Context, keyID int, updateRequest *KeyUpdateRequest) (*Key, *Response, error)
UpdateByID updates an SSH key name by ID.
type KubernetesAssociatedResources ¶ added in v1.57.0
type KubernetesAssociatedResources struct { Volumes []*AssociatedResource `json:"volumes"` VolumeSnapshots []*AssociatedResource `json:"volume_snapshots"` LoadBalancers []*AssociatedResource `json:"load_balancers"` }
KubernetesAssociatedResources represents a cluster's associated resources
type KubernetesCluster ¶ added in v1.7.0
type KubernetesCluster struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` RegionSlug string `json:"region,omitempty"` VersionSlug string `json:"version,omitempty"` ClusterSubnet string `json:"cluster_subnet,omitempty"` ServiceSubnet string `json:"service_subnet,omitempty"` IPv4 string `json:"ipv4,omitempty"` Endpoint string `json:"endpoint,omitempty"` Tags []string `json:"tags,omitempty"` VPCUUID string `json:"vpc_uuid,omitempty"` // Cluster runs a highly available control plane HA bool `json:"ha,omitempty"` NodePools []*KubernetesNodePool `json:"node_pools,omitempty"` MaintenancePolicy *KubernetesMaintenancePolicy `json:"maintenance_policy,omitempty"` AutoUpgrade bool `json:"auto_upgrade,omitempty"` SurgeUpgrade bool `json:"surge_upgrade,omitempty"` RegistryEnabled bool `json:"registry_enabled,omitempty"` ControlPlaneFirewall *KubernetesControlPlaneFirewall `json:"control_plane_firewall,omitempty"` ClusterAutoscalerConfiguration *KubernetesClusterAutoscalerConfiguration `json:"cluster_autoscaler_configuration,omitempty"` Status *KubernetesClusterStatus `json:"status,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
KubernetesCluster represents a Kubernetes cluster.
func (KubernetesCluster) URN ¶ added in v1.60.0
func (kc KubernetesCluster) URN() string
URN returns the Kubernetes cluster's ID in the format of DigitalOcean URN.
type KubernetesClusterAutoscalerConfiguration ¶ added in v1.135.0
type KubernetesClusterAutoscalerConfiguration struct { ScaleDownUtilizationThreshold *float64 `json:"scale_down_utilization_threshold"` ScaleDownUnneededTime *string `json:"scale_down_unneeded_time"` }
KubernetesClusterAutoscalerConfiguration represents Kubernetes cluster autoscaler configuration.
type KubernetesClusterConfig ¶ added in v1.7.0
type KubernetesClusterConfig struct {
KubeconfigYAML []byte
}
KubernetesClusterConfig is the content of a Kubernetes config file, which can be used to interact with your Kubernetes cluster using `kubectl`. See: https://kubernetes.io/docs/tasks/tools/install-kubectl/
type KubernetesClusterCreateRequest ¶ added in v1.7.0
type KubernetesClusterCreateRequest struct { Name string `json:"name,omitempty"` RegionSlug string `json:"region,omitempty"` VersionSlug string `json:"version,omitempty"` Tags []string `json:"tags,omitempty"` VPCUUID string `json:"vpc_uuid,omitempty"` ClusterSubnet string `json:"cluster_subnet,omitempty"` ServiceSubnet string `json:"service_subnet,omitempty"` // Create cluster with highly available control plane HA bool `json:"ha"` NodePools []*KubernetesNodePoolCreateRequest `json:"node_pools,omitempty"` MaintenancePolicy *KubernetesMaintenancePolicy `json:"maintenance_policy"` AutoUpgrade bool `json:"auto_upgrade"` SurgeUpgrade bool `json:"surge_upgrade"` ControlPlaneFirewall *KubernetesControlPlaneFirewall `json:"control_plane_firewall,omitempty"` ClusterAutoscalerConfiguration *KubernetesClusterAutoscalerConfiguration `json:"cluster_autoscaler_configuration,omitempty"` }
KubernetesClusterCreateRequest represents a request to create a Kubernetes cluster.
type KubernetesClusterCredentials ¶ added in v1.22.0
type KubernetesClusterCredentials struct { Server string `json:"server"` CertificateAuthorityData []byte `json:"certificate_authority_data"` ClientCertificateData []byte `json:"client_certificate_data"` ClientKeyData []byte `json:"client_key_data"` Token string `json:"token"` ExpiresAt time.Time `json:"expires_at"` }
KubernetesClusterCredentials represents Kubernetes cluster credentials.
type KubernetesClusterCredentialsGetRequest ¶ added in v1.22.0
type KubernetesClusterCredentialsGetRequest struct {
ExpirySeconds *int `json:"expiry_seconds,omitempty"`
}
KubernetesClusterCredentialsGetRequest is a request to get cluster credentials.
type KubernetesClusterDeleteSelectiveRequest ¶ added in v1.57.0
type KubernetesClusterDeleteSelectiveRequest struct { Volumes []string `json:"volumes"` VolumeSnapshots []string `json:"volume_snapshots"` LoadBalancers []string `json:"load_balancers"` }
KubernetesClusterDeleteSelectiveRequest represents a delete selective request to delete a cluster and it's associated resources.
type KubernetesClusterRegistryRequest ¶ added in v1.47.0
type KubernetesClusterRegistryRequest struct {
ClusterUUIDs []string `json:"cluster_uuids,omitempty"`
}
KubernetesClusterRegistryRequest represents clusters to integrate with docr registry
type KubernetesClusterStatus ¶ added in v1.7.0
type KubernetesClusterStatus struct { State KubernetesClusterStatusState `json:"state,omitempty"` Message string `json:"message,omitempty"` }
KubernetesClusterStatus describes the status of a cluster.
type KubernetesClusterStatusState ¶ added in v1.7.1
type KubernetesClusterStatusState string
KubernetesClusterStatusState represents states for a cluster.
func (*KubernetesClusterStatusState) UnmarshalText ¶ added in v1.7.1
func (s *KubernetesClusterStatusState) UnmarshalText(text []byte) error
UnmarshalText unmarshals the state.
type KubernetesClusterUpdateRequest ¶ added in v1.7.0
type KubernetesClusterUpdateRequest struct { Name string `json:"name,omitempty"` Tags []string `json:"tags,omitempty"` MaintenancePolicy *KubernetesMaintenancePolicy `json:"maintenance_policy,omitempty"` AutoUpgrade *bool `json:"auto_upgrade,omitempty"` SurgeUpgrade bool `json:"surge_upgrade,omitempty"` ControlPlaneFirewall *KubernetesControlPlaneFirewall `json:"control_plane_firewall,omitempty"` ClusterAutoscalerConfiguration *KubernetesClusterAutoscalerConfiguration `json:"cluster_autoscaler_configuration,omitempty"` // Convert cluster to run highly available control plane HA *bool `json:"ha,omitempty"` }
KubernetesClusterUpdateRequest represents a request to update a Kubernetes cluster.
type KubernetesClusterUpgradeRequest ¶ added in v1.14.0
type KubernetesClusterUpgradeRequest struct {
VersionSlug string `json:"version,omitempty"`
}
KubernetesClusterUpgradeRequest represents a request to upgrade a Kubernetes cluster.
type KubernetesClusterUser ¶ added in v1.20.0
type KubernetesClusterUser struct { ID string `json:"id,omitempty"` Username string `json:"username,omitempty"` Groups []string `json:"groups,omitempty"` }
KubernetesClusterUser represents a Kubernetes cluster user.
type KubernetesControlPlaneFirewall ¶ added in v1.118.0
type KubernetesControlPlaneFirewall struct { Enabled *bool `json:"enabled"` AllowedAddresses []string `json:"allowed_addresses"` }
KubernetesControlPlaneFirewall represents Kubernetes cluster control plane firewall.
type KubernetesGetClusterlintRequest ¶ added in v1.53.0
type KubernetesGetClusterlintRequest struct {
RunId string `json:"run_id"`
}
type KubernetesMaintenancePolicy ¶ added in v1.12.0
type KubernetesMaintenancePolicy struct { StartTime string `json:"start_time"` Duration string `json:"duration"` Day KubernetesMaintenancePolicyDay `json:"day"` }
KubernetesMaintenancePolicy is a configuration to set the maintenance window of a cluster
type KubernetesMaintenancePolicyDay ¶ added in v1.12.0
type KubernetesMaintenancePolicyDay int
KubernetesMaintenancePolicyDay represents the possible days of a maintenance window
const ( // KubernetesMaintenanceDayAny sets the KubernetesMaintenancePolicyDay to any // day of the week KubernetesMaintenanceDayAny KubernetesMaintenancePolicyDay = iota // KubernetesMaintenanceDayMonday sets the KubernetesMaintenancePolicyDay to // Monday KubernetesMaintenanceDayMonday // KubernetesMaintenanceDayTuesday sets the KubernetesMaintenancePolicyDay to // Tuesday KubernetesMaintenanceDayTuesday // KubernetesMaintenanceDayWednesday sets the KubernetesMaintenancePolicyDay to // Wednesday KubernetesMaintenanceDayWednesday // KubernetesMaintenanceDayThursday sets the KubernetesMaintenancePolicyDay to // Thursday KubernetesMaintenanceDayThursday // KubernetesMaintenanceDayFriday sets the KubernetesMaintenancePolicyDay to // Friday KubernetesMaintenanceDayFriday // KubernetesMaintenanceDaySaturday sets the KubernetesMaintenancePolicyDay to // Saturday KubernetesMaintenanceDaySaturday // KubernetesMaintenanceDaySunday sets the KubernetesMaintenancePolicyDay to // Sunday KubernetesMaintenanceDaySunday )
func KubernetesMaintenanceToDay ¶ added in v1.12.0
func KubernetesMaintenanceToDay(day string) (KubernetesMaintenancePolicyDay, error)
KubernetesMaintenanceToDay returns the appropriate KubernetesMaintenancePolicyDay for the given string.
func (KubernetesMaintenancePolicyDay) MarshalJSON ¶ added in v1.12.0
func (k KubernetesMaintenancePolicyDay) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON string for KubernetesMaintenancePolicyDay
func (KubernetesMaintenancePolicyDay) String ¶ added in v1.12.0
func (k KubernetesMaintenancePolicyDay) String() string
func (*KubernetesMaintenancePolicyDay) UnmarshalJSON ¶ added in v1.12.0
func (k *KubernetesMaintenancePolicyDay) UnmarshalJSON(data []byte) error
UnmarshalJSON parses the JSON string into KubernetesMaintenancePolicyDay
type KubernetesNode ¶ added in v1.7.0
type KubernetesNode struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Status *KubernetesNodeStatus `json:"status,omitempty"` DropletID string `json:"droplet_id,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
KubernetesNode represents a Node in a node pool in a Kubernetes cluster.
type KubernetesNodeDeleteRequest ¶ added in v1.16.0
type KubernetesNodeDeleteRequest struct { // Replace will cause a new node to be created to replace the deleted node. Replace bool `json:"replace,omitempty"` // SkipDrain skips draining the node before deleting it. SkipDrain bool `json:"skip_drain,omitempty"` }
KubernetesNodeDeleteRequest is a request to delete a specific node in a node pool.
type KubernetesNodePool ¶ added in v1.7.0
type KubernetesNodePool struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Size string `json:"size,omitempty"` Count int `json:"count,omitempty"` Tags []string `json:"tags,omitempty"` Labels map[string]string `json:"labels,omitempty"` Taints []Taint `json:"taints,omitempty"` AutoScale bool `json:"auto_scale,omitempty"` MinNodes int `json:"min_nodes,omitempty"` MaxNodes int `json:"max_nodes,omitempty"` Nodes []*KubernetesNode `json:"nodes,omitempty"` }
KubernetesNodePool represents a node pool in a Kubernetes cluster.
type KubernetesNodePoolCreateRequest ¶ added in v1.7.0
type KubernetesNodePoolCreateRequest struct { Name string `json:"name,omitempty"` Size string `json:"size,omitempty"` Count int `json:"count,omitempty"` Tags []string `json:"tags,omitempty"` Labels map[string]string `json:"labels,omitempty"` Taints []Taint `json:"taints,omitempty"` AutoScale bool `json:"auto_scale,omitempty"` MinNodes int `json:"min_nodes,omitempty"` MaxNodes int `json:"max_nodes,omitempty"` }
KubernetesNodePoolCreateRequest represents a request to create a node pool for a Kubernetes cluster.
type KubernetesNodePoolRecycleNodesRequest ¶ added in v1.7.0
type KubernetesNodePoolRecycleNodesRequest struct {
Nodes []string `json:"nodes,omitempty"`
}
KubernetesNodePoolRecycleNodesRequest is DEPRECATED please use DeleteNode The type will be removed in godo 2.0.
type KubernetesNodePoolUpdateRequest ¶ added in v1.7.0
type KubernetesNodePoolUpdateRequest struct { Name string `json:"name,omitempty"` Count *int `json:"count,omitempty"` Tags []string `json:"tags,omitempty"` Labels map[string]string `json:"labels,omitempty"` Taints *[]Taint `json:"taints,omitempty"` AutoScale *bool `json:"auto_scale,omitempty"` MinNodes *int `json:"min_nodes,omitempty"` MaxNodes *int `json:"max_nodes,omitempty"` }
KubernetesNodePoolUpdateRequest represents a request to update a node pool in a Kubernetes cluster.
type KubernetesNodeSize ¶ added in v1.7.2
KubernetesNodeSize is a node sizes supported for Kubernetes clusters.
type KubernetesNodeStatus ¶ added in v1.7.0
type KubernetesNodeStatus struct { State string `json:"state,omitempty"` Message string `json:"message,omitempty"` }
KubernetesNodeStatus represents the status of a particular Node in a Kubernetes cluster.
type KubernetesOptions ¶ added in v1.7.0
type KubernetesOptions struct { Versions []*KubernetesVersion `json:"versions,omitempty"` Regions []*KubernetesRegion `json:"regions,omitempty"` Sizes []*KubernetesNodeSize `json:"sizes,omitempty"` }
KubernetesOptions represents options available for creating Kubernetes clusters.
type KubernetesRegion ¶ added in v1.7.2
KubernetesRegion is a region usable by Kubernetes clusters.
type KubernetesRunClusterlintRequest ¶ added in v1.53.0
type KubernetesService ¶ added in v1.7.0
type KubernetesService interface { Create(context.Context, *KubernetesClusterCreateRequest) (*KubernetesCluster, *Response, error) Get(context.Context, string) (*KubernetesCluster, *Response, error) GetUser(context.Context, string) (*KubernetesClusterUser, *Response, error) GetUpgrades(context.Context, string) ([]*KubernetesVersion, *Response, error) GetKubeConfig(context.Context, string) (*KubernetesClusterConfig, *Response, error) GetKubeConfigWithExpiry(context.Context, string, int64) (*KubernetesClusterConfig, *Response, error) GetCredentials(context.Context, string, *KubernetesClusterCredentialsGetRequest) (*KubernetesClusterCredentials, *Response, error) List(context.Context, *ListOptions) ([]*KubernetesCluster, *Response, error) Update(context.Context, string, *KubernetesClusterUpdateRequest) (*KubernetesCluster, *Response, error) Upgrade(context.Context, string, *KubernetesClusterUpgradeRequest) (*Response, error) Delete(context.Context, string) (*Response, error) DeleteSelective(context.Context, string, *KubernetesClusterDeleteSelectiveRequest) (*Response, error) DeleteDangerous(context.Context, string) (*Response, error) ListAssociatedResourcesForDeletion(context.Context, string) (*KubernetesAssociatedResources, *Response, error) CreateNodePool(ctx context.Context, clusterID string, req *KubernetesNodePoolCreateRequest) (*KubernetesNodePool, *Response, error) GetNodePool(ctx context.Context, clusterID, poolID string) (*KubernetesNodePool, *Response, error) ListNodePools(ctx context.Context, clusterID string, opts *ListOptions) ([]*KubernetesNodePool, *Response, error) UpdateNodePool(ctx context.Context, clusterID, poolID string, req *KubernetesNodePoolUpdateRequest) (*KubernetesNodePool, *Response, error) // RecycleNodePoolNodes is DEPRECATED please use DeleteNode // The method will be removed in godo 2.0. RecycleNodePoolNodes(ctx context.Context, clusterID, poolID string, req *KubernetesNodePoolRecycleNodesRequest) (*Response, error) DeleteNodePool(ctx context.Context, clusterID, poolID string) (*Response, error) DeleteNode(ctx context.Context, clusterID, poolID, nodeID string, req *KubernetesNodeDeleteRequest) (*Response, error) GetOptions(context.Context) (*KubernetesOptions, *Response, error) AddRegistry(ctx context.Context, req *KubernetesClusterRegistryRequest) (*Response, error) RemoveRegistry(ctx context.Context, req *KubernetesClusterRegistryRequest) (*Response, error) RunClusterlint(ctx context.Context, clusterID string, req *KubernetesRunClusterlintRequest) (string, *Response, error) GetClusterlintResults(ctx context.Context, clusterID string, req *KubernetesGetClusterlintRequest) ([]*ClusterlintDiagnostic, *Response, error) }
KubernetesService is an interface for interfacing with the Kubernetes endpoints of the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Kubernetes
type KubernetesServiceOp ¶ added in v1.7.0
type KubernetesServiceOp struct {
// contains filtered or unexported fields
}
KubernetesServiceOp handles communication with Kubernetes methods of the DigitalOcean API.
func (*KubernetesServiceOp) AddRegistry ¶ added in v1.47.0
func (svc *KubernetesServiceOp) AddRegistry(ctx context.Context, req *KubernetesClusterRegistryRequest) (*Response, error)
AddRegistry integrates docr registry with all the specified clusters
func (*KubernetesServiceOp) Create ¶ added in v1.7.0
func (svc *KubernetesServiceOp) Create(ctx context.Context, create *KubernetesClusterCreateRequest) (*KubernetesCluster, *Response, error)
Create creates a Kubernetes cluster.
func (*KubernetesServiceOp) CreateNodePool ¶ added in v1.7.0
func (svc *KubernetesServiceOp) CreateNodePool(ctx context.Context, clusterID string, create *KubernetesNodePoolCreateRequest) (*KubernetesNodePool, *Response, error)
CreateNodePool creates a new node pool in an existing Kubernetes cluster.
func (*KubernetesServiceOp) Delete ¶ added in v1.7.0
Delete deletes a Kubernetes cluster. There is no way to recover a cluster once it has been destroyed.
func (*KubernetesServiceOp) DeleteDangerous ¶ added in v1.57.0
func (svc *KubernetesServiceOp) DeleteDangerous(ctx context.Context, clusterID string) (*Response, error)
DeleteDangerous deletes a Kubernetes cluster and all its associated resources. There is no way to recover a cluster or it's associated resources once destroyed.
func (*KubernetesServiceOp) DeleteNode ¶ added in v1.16.0
func (svc *KubernetesServiceOp) DeleteNode(ctx context.Context, clusterID, poolID, nodeID string, deleteReq *KubernetesNodeDeleteRequest) (*Response, error)
DeleteNode deletes a specific node in a node pool.
func (*KubernetesServiceOp) DeleteNodePool ¶ added in v1.7.0
func (svc *KubernetesServiceOp) DeleteNodePool(ctx context.Context, clusterID, poolID string) (*Response, error)
DeleteNodePool deletes a node pool, and subsequently all the nodes in that pool.
func (*KubernetesServiceOp) DeleteSelective ¶ added in v1.57.0
func (svc *KubernetesServiceOp) DeleteSelective(ctx context.Context, clusterID string, request *KubernetesClusterDeleteSelectiveRequest) (*Response, error)
DeleteSelective deletes a Kubernetes cluster and the specified associated resources. Users can choose to delete specific volumes, volume snapshots or load balancers along with the cluster There is no way to recover a cluster or the specified resources once destroyed.
func (*KubernetesServiceOp) Get ¶ added in v1.7.0
func (svc *KubernetesServiceOp) Get(ctx context.Context, clusterID string) (*KubernetesCluster, *Response, error)
Get retrieves the details of a Kubernetes cluster.
func (*KubernetesServiceOp) GetClusterlintResults ¶ added in v1.53.0
func (svc *KubernetesServiceOp) GetClusterlintResults(ctx context.Context, clusterID string, req *KubernetesGetClusterlintRequest) ([]*ClusterlintDiagnostic, *Response, error)
GetClusterlintResults fetches the diagnostics after clusterlint run completes
func (*KubernetesServiceOp) GetCredentials ¶ added in v1.22.0
func (svc *KubernetesServiceOp) GetCredentials(ctx context.Context, clusterID string, get *KubernetesClusterCredentialsGetRequest) (*KubernetesClusterCredentials, *Response, error)
GetCredentials returns a Kubernetes API server credentials for the specified cluster.
func (*KubernetesServiceOp) GetKubeConfig ¶ added in v1.7.0
func (svc *KubernetesServiceOp) GetKubeConfig(ctx context.Context, clusterID string) (*KubernetesClusterConfig, *Response, error)
GetKubeConfig returns a Kubernetes config file for the specified cluster.
func (*KubernetesServiceOp) GetKubeConfigWithExpiry ¶ added in v1.47.0
func (svc *KubernetesServiceOp) GetKubeConfigWithExpiry(ctx context.Context, clusterID string, expirySeconds int64) (*KubernetesClusterConfig, *Response, error)
GetKubeConfigWithExpiry returns a Kubernetes config file for the specified cluster with expiry_seconds.
func (*KubernetesServiceOp) GetNodePool ¶ added in v1.7.0
func (svc *KubernetesServiceOp) GetNodePool(ctx context.Context, clusterID, poolID string) (*KubernetesNodePool, *Response, error)
GetNodePool retrieves an existing node pool in a Kubernetes cluster.
func (*KubernetesServiceOp) GetOptions ¶ added in v1.7.0
func (svc *KubernetesServiceOp) GetOptions(ctx context.Context) (*KubernetesOptions, *Response, error)
GetOptions returns options about the Kubernetes service, such as the versions available for cluster creation.
func (*KubernetesServiceOp) GetUpgrades ¶ added in v1.14.0
func (svc *KubernetesServiceOp) GetUpgrades(ctx context.Context, clusterID string) ([]*KubernetesVersion, *Response, error)
GetUpgrades retrieves versions a Kubernetes cluster can be upgraded to. An upgrade can be requested using `Upgrade`.
func (*KubernetesServiceOp) GetUser ¶ added in v1.20.0
func (svc *KubernetesServiceOp) GetUser(ctx context.Context, clusterID string) (*KubernetesClusterUser, *Response, error)
GetUser retrieves the details of a Kubernetes cluster user.
func (*KubernetesServiceOp) List ¶ added in v1.7.0
func (svc *KubernetesServiceOp) List(ctx context.Context, opts *ListOptions) ([]*KubernetesCluster, *Response, error)
List returns a list of the Kubernetes clusters visible with the caller's API token.
func (*KubernetesServiceOp) ListAssociatedResourcesForDeletion ¶ added in v1.57.0
func (svc *KubernetesServiceOp) ListAssociatedResourcesForDeletion(ctx context.Context, clusterID string) (*KubernetesAssociatedResources, *Response, error)
ListAssociatedResourcesForDeletion lists a Kubernetes cluster's resources that can be selected for deletion along with the cluster. See DeleteSelective Associated resources include volumes, volume snapshots and load balancers.
func (*KubernetesServiceOp) ListNodePools ¶ added in v1.7.0
func (svc *KubernetesServiceOp) ListNodePools(ctx context.Context, clusterID string, opts *ListOptions) ([]*KubernetesNodePool, *Response, error)
ListNodePools lists all the node pools found in a Kubernetes cluster.
func (*KubernetesServiceOp) RecycleNodePoolNodes ¶ added in v1.7.0
func (svc *KubernetesServiceOp) RecycleNodePoolNodes(ctx context.Context, clusterID, poolID string, recycle *KubernetesNodePoolRecycleNodesRequest) (*Response, error)
RecycleNodePoolNodes is DEPRECATED please use DeleteNode The method will be removed in godo 2.0.
func (*KubernetesServiceOp) RemoveRegistry ¶ added in v1.47.0
func (svc *KubernetesServiceOp) RemoveRegistry(ctx context.Context, req *KubernetesClusterRegistryRequest) (*Response, error)
RemoveRegistry removes docr registry support for all the specified clusters
func (*KubernetesServiceOp) RunClusterlint ¶ added in v1.53.0
func (svc *KubernetesServiceOp) RunClusterlint(ctx context.Context, clusterID string, req *KubernetesRunClusterlintRequest) (string, *Response, error)
RunClusterlint schedules a clusterlint run for the specified cluster
func (*KubernetesServiceOp) Update ¶ added in v1.7.0
func (svc *KubernetesServiceOp) Update(ctx context.Context, clusterID string, update *KubernetesClusterUpdateRequest) (*KubernetesCluster, *Response, error)
Update updates a Kubernetes cluster's properties.
func (*KubernetesServiceOp) UpdateNodePool ¶ added in v1.7.0
func (svc *KubernetesServiceOp) UpdateNodePool(ctx context.Context, clusterID, poolID string, update *KubernetesNodePoolUpdateRequest) (*KubernetesNodePool, *Response, error)
UpdateNodePool updates the details of an existing node pool.
func (*KubernetesServiceOp) Upgrade ¶ added in v1.14.0
func (svc *KubernetesServiceOp) Upgrade(ctx context.Context, clusterID string, upgrade *KubernetesClusterUpgradeRequest) (*Response, error)
Upgrade upgrades a Kubernetes cluster to a new version. Valid upgrade versions for a given cluster can be retrieved with `GetUpgrades`.
type KubernetesVersion ¶ added in v1.7.0
type KubernetesVersion struct { Slug string `json:"slug,omitempty"` KubernetesVersion string `json:"kubernetes_version,omitempty"` SupportedFeatures []string `json:"supported_features,omitempty"` }
KubernetesVersion is a DigitalOcean Kubernetes release.
type LBDomain ¶ added in v1.111.0
type LBDomain struct { // Name defines the domain fqdn Name string `json:"name"` // IsManaged indicates if the domain is DO-managed IsManaged bool `json:"is_managed"` // CertificateID indicates ID of a TLS certificate CertificateID string `json:"certificate_id,omitempty"` // Status indicates the domain validation status Status string `json:"status,omitempty"` // VerificationErrorReasons indicates any domain verification errors VerificationErrorReasons []string `json:"verification_error_reasons,omitempty"` // SSLValidationErrorReasons indicates any domain SSL validation errors SSLValidationErrorReasons []string `json:"ssl_validation_error_reasons,omitempty"` }
LBDomain defines domain names required to ingress traffic to a Global LB
type LBFirewall ¶ added in v1.92.0
type LBFirewall struct { Allow []string `json:"allow,omitempty"` Deny []string `json:"deny,omitempty"` }
LBFirewall holds the allow and deny rules for a loadbalancer's firewall. Currently, allow and deny rules support cidrs and ips. Please use the helper methods (IPSourceFirewall/CIDRSourceFirewall) to format the allow/deny rules.
func (LBFirewall) String ¶ added in v1.92.0
func (f LBFirewall) String() string
String creates a human-readable description of an LBFirewall instance.
type LinkAction ¶ added in v0.3.0
type LinkAction struct { ID int `json:"id,omitempty"` Rel string `json:"rel,omitempty"` HREF string `json:"href,omitempty"` }
LinkAction is a pointer to an action
type Links ¶
type Links struct { Pages *Pages `json:"pages,omitempty"` Actions []LinkAction `json:"actions,omitempty"` }
Links manages links that are returned along with a List
func (*Links) CurrentPage ¶ added in v0.3.0
CurrentPage is current page of the list
func (*Links) IsLastPage ¶ added in v0.3.0
IsLastPage returns true if the current page is the last
func (*Links) NextPageToken ¶ added in v1.73.0
NextPageToken is the page token to request the next page of the list
func (*Links) PrevPageToken ¶ added in v1.73.0
PrevPageToken is the page token to request the previous page of the list
type ListBuildpacksResponse ¶ added in v1.98.0
type ListBuildpacksResponse struct { // List of the available buildpacks on App Platform. Buildpacks []*Buildpack `json:"buildpacks,omitempty"` }
ListBuildpacksResponse struct for ListBuildpacksResponse
func (*ListBuildpacksResponse) GetBuildpacks ¶ added in v1.98.0
func (l *ListBuildpacksResponse) GetBuildpacks() []*Buildpack
GetBuildpacks returns the Buildpacks field.
type ListDatabaseEvents ¶ added in v1.112.0
type ListDatabaseEvents struct {
Events []DatabaseEvent `json:"events"`
}
ListDatabaseEvents contains a list of project events.
type ListDatabaseEventsRoot ¶ added in v1.112.0
type ListDatabaseEventsRoot struct {
Events []DatabaseEvent `json:"events"`
}
type ListOptions ¶
type ListOptions struct { // For paginated result sets, page of results to retrieve. Page int `url:"page,omitempty"` // For paginated result sets, the number of results to include per page. PerPage int `url:"per_page,omitempty"` // Whether App responses should include project_id fields. The field will be empty if false or if omitted. (ListApps) WithProjects bool `url:"with_projects,omitempty"` }
ListOptions specifies the optional parameters to various List methods that support pagination.
type ListVolumeParams ¶ added in v1.0.0
type ListVolumeParams struct { Region string `json:"region"` Name string `json:"name"` ListOptions *ListOptions `json:"list_options,omitempty"` }
ListVolumeParams stores the options you can set for a ListVolumeCall
type LoadBalancer ¶ added in v1.0.0
type LoadBalancer struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` IP string `json:"ip,omitempty"` IPv6 string `json:"ipv6,omitempty"` // SizeSlug is mutually exclusive with SizeUnit. Only one should be specified SizeSlug string `json:"size,omitempty"` // SizeUnit is mutually exclusive with SizeSlug. Only one should be specified SizeUnit uint32 `json:"size_unit,omitempty"` Type string `json:"type,omitempty"` Algorithm string `json:"algorithm,omitempty"` Status string `json:"status,omitempty"` Created string `json:"created_at,omitempty"` ForwardingRules []ForwardingRule `json:"forwarding_rules,omitempty"` HealthCheck *HealthCheck `json:"health_check,omitempty"` StickySessions *StickySessions `json:"sticky_sessions,omitempty"` Region *Region `json:"region,omitempty"` DropletIDs []int `json:"droplet_ids,omitempty"` Tag string `json:"tag,omitempty"` Tags []string `json:"tags,omitempty"` RedirectHttpToHttps bool `json:"redirect_http_to_https,omitempty"` EnableProxyProtocol bool `json:"enable_proxy_protocol,omitempty"` EnableBackendKeepalive bool `json:"enable_backend_keepalive,omitempty"` VPCUUID string `json:"vpc_uuid,omitempty"` DisableLetsEncryptDNSRecords *bool `json:"disable_lets_encrypt_dns_records,omitempty"` ValidateOnly bool `json:"validate_only,omitempty"` ProjectID string `json:"project_id,omitempty"` HTTPIdleTimeoutSeconds *uint64 `json:"http_idle_timeout_seconds,omitempty"` Firewall *LBFirewall `json:"firewall,omitempty"` Domains []*LBDomain `json:"domains,omitempty"` GLBSettings *GLBSettings `json:"glb_settings,omitempty"` TargetLoadBalancerIDs []string `json:"target_load_balancer_ids,omitempty"` Network string `json:"network,omitempty"` NetworkStack string `json:"network_stack,omitempty"` }
LoadBalancer represents a DigitalOcean load balancer configuration. Tags can only be provided upon the creation of a Load Balancer.
func (LoadBalancer) AsRequest ¶ added in v1.1.1
func (l LoadBalancer) AsRequest() *LoadBalancerRequest
AsRequest creates a LoadBalancerRequest that can be submitted to Update with the current values of the LoadBalancer. Modifying the returned LoadBalancerRequest will not modify the original LoadBalancer.
func (LoadBalancer) String ¶ added in v1.0.0
func (l LoadBalancer) String() string
String creates a human-readable description of a LoadBalancer.
func (LoadBalancer) URN ¶ added in v1.6.0
func (l LoadBalancer) URN() string
URN returns the load balancer ID in a valid DO API URN form.
type LoadBalancerMetricsRequest ¶ added in v1.128.0
LoadBalancerMetricsRequest holds the information needed to retrieve Load Balancer various metrics.
type LoadBalancerRequest ¶ added in v1.0.0
type LoadBalancerRequest struct { Name string `json:"name,omitempty"` Algorithm string `json:"algorithm,omitempty"` Region string `json:"region,omitempty"` // SizeSlug is mutually exclusive with SizeUnit. Only one should be specified SizeSlug string `json:"size,omitempty"` // SizeUnit is mutually exclusive with SizeSlug. Only one should be specified SizeUnit uint32 `json:"size_unit,omitempty"` Type string `json:"type,omitempty"` ForwardingRules []ForwardingRule `json:"forwarding_rules,omitempty"` HealthCheck *HealthCheck `json:"health_check,omitempty"` StickySessions *StickySessions `json:"sticky_sessions,omitempty"` DropletIDs []int `json:"droplet_ids,omitempty"` Tag string `json:"tag,omitempty"` Tags []string `json:"tags,omitempty"` RedirectHttpToHttps bool `json:"redirect_http_to_https,omitempty"` EnableProxyProtocol bool `json:"enable_proxy_protocol,omitempty"` EnableBackendKeepalive bool `json:"enable_backend_keepalive,omitempty"` VPCUUID string `json:"vpc_uuid,omitempty"` DisableLetsEncryptDNSRecords *bool `json:"disable_lets_encrypt_dns_records,omitempty"` ValidateOnly bool `json:"validate_only,omitempty"` ProjectID string `json:"project_id,omitempty"` HTTPIdleTimeoutSeconds *uint64 `json:"http_idle_timeout_seconds,omitempty"` Firewall *LBFirewall `json:"firewall,omitempty"` Domains []*LBDomain `json:"domains,omitempty"` GLBSettings *GLBSettings `json:"glb_settings,omitempty"` TargetLoadBalancerIDs []string `json:"target_load_balancer_ids,omitempty"` Network string `json:"network,omitempty"` NetworkStack string `json:"network_stack,omitempty"` }
LoadBalancerRequest represents the configuration to be applied to an existing or a new load balancer.
func (LoadBalancerRequest) String ¶ added in v1.0.0
func (l LoadBalancerRequest) String() string
String creates a human-readable description of a LoadBalancerRequest.
type LoadBalancersService ¶ added in v1.0.0
type LoadBalancersService interface { Get(context.Context, string) (*LoadBalancer, *Response, error) List(context.Context, *ListOptions) ([]LoadBalancer, *Response, error) Create(context.Context, *LoadBalancerRequest) (*LoadBalancer, *Response, error) Update(ctx context.Context, lbID string, lbr *LoadBalancerRequest) (*LoadBalancer, *Response, error) Delete(ctx context.Context, lbID string) (*Response, error) AddDroplets(ctx context.Context, lbID string, dropletIDs ...int) (*Response, error) RemoveDroplets(ctx context.Context, lbID string, dropletIDs ...int) (*Response, error) AddForwardingRules(ctx context.Context, lbID string, rules ...ForwardingRule) (*Response, error) RemoveForwardingRules(ctx context.Context, lbID string, rules ...ForwardingRule) (*Response, error) PurgeCache(ctx context.Context, lbID string) (*Response, error) }
LoadBalancersService is an interface for managing load balancers with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Load-Balancers
type LoadBalancersServiceOp ¶ added in v1.0.0
type LoadBalancersServiceOp struct {
// contains filtered or unexported fields
}
LoadBalancersServiceOp handles communication with load balancer-related methods of the DigitalOcean API.
func (*LoadBalancersServiceOp) AddDroplets ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) AddDroplets(ctx context.Context, lbID string, dropletIDs ...int) (*Response, error)
AddDroplets adds droplets to a load balancer.
func (*LoadBalancersServiceOp) AddForwardingRules ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) AddForwardingRules(ctx context.Context, lbID string, rules ...ForwardingRule) (*Response, error)
AddForwardingRules adds forwarding rules to a load balancer.
func (*LoadBalancersServiceOp) Create ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) Create(ctx context.Context, lbr *LoadBalancerRequest) (*LoadBalancer, *Response, error)
Create a new load balancer with a given configuration.
func (*LoadBalancersServiceOp) Get ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) Get(ctx context.Context, lbID string) (*LoadBalancer, *Response, error)
Get an existing load balancer by its identifier.
func (*LoadBalancersServiceOp) List ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) List(ctx context.Context, opt *ListOptions) ([]LoadBalancer, *Response, error)
List load balancers, with optional pagination.
func (*LoadBalancersServiceOp) PurgeCache ¶ added in v1.111.0
PurgeCache purges the CDN cache of a global load balancer by its identifier.
func (*LoadBalancersServiceOp) RemoveDroplets ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) RemoveDroplets(ctx context.Context, lbID string, dropletIDs ...int) (*Response, error)
RemoveDroplets removes droplets from a load balancer.
func (*LoadBalancersServiceOp) RemoveForwardingRules ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) RemoveForwardingRules(ctx context.Context, lbID string, rules ...ForwardingRule) (*Response, error)
RemoveForwardingRules removes forwarding rules from a load balancer.
func (*LoadBalancersServiceOp) Update ¶ added in v1.0.0
func (l *LoadBalancersServiceOp) Update(ctx context.Context, lbID string, lbr *LoadBalancerRequest) (*LoadBalancer, *Response, error)
Update an existing load balancer with new configuration.
type Meta ¶ added in v1.29.0
type Meta struct {
Total int `json:"total"`
}
Meta describes generic information about a response.
type MetricsData ¶ added in v1.70.0
type MetricsData struct { ResultType string `json:"resultType"` Result []metrics.SampleStream `json:"result"` }
MetricsData holds the data portion of a Metrics response.
type MetricsResponse ¶ added in v1.70.0
type MetricsResponse struct { Status string `json:"status"` Data MetricsData `json:"data"` }
MetricsResponse holds a Metrics query response.
type MongoDBConfig ¶ added in v1.125.0
type MongoDBConfig struct { DefaultReadConcern *string `json:"default_read_concern,omitempty"` DefaultWriteConcern *string `json:"default_write_concern,omitempty"` TransactionLifetimeLimitSeconds *int `json:"transaction_lifetime_limit_seconds,omitempty"` SlowOpThresholdMs *int `json:"slow_op_threshold_ms,omitempty"` Verbosity *int `json:"verbosity,omitempty"` }
MongoDBConfig holds advanced configurations for MongoDB database clusters.
type MonitoringService ¶ added in v1.64.0
type MonitoringService interface { ListAlertPolicies(context.Context, *ListOptions) ([]AlertPolicy, *Response, error) GetAlertPolicy(context.Context, string) (*AlertPolicy, *Response, error) CreateAlertPolicy(context.Context, *AlertPolicyCreateRequest) (*AlertPolicy, *Response, error) UpdateAlertPolicy(context.Context, string, *AlertPolicyUpdateRequest) (*AlertPolicy, *Response, error) DeleteAlertPolicy(context.Context, string) (*Response, error) GetDropletBandwidth(context.Context, *DropletBandwidthMetricsRequest) (*MetricsResponse, *Response, error) GetDropletAvailableMemory(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletCPU(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletFilesystemFree(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletFilesystemSize(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletLoad1(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletLoad5(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletLoad15(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletCachedMemory(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletFreeMemory(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetDropletTotalMemory(context.Context, *DropletMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendHttpRequestsPerSecond(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendConnectionsCurrent(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendConnectionsLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendCpuUtilization(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendNetworkThroughputHttp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendNetworkThroughputUdp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendNetworkThroughputTcp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendNlbTcpNetworkThroughput(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendNlbUdpNetworkThroughput(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendFirewallDroppedBytes(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendFirewallDroppedPackets(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendHttpResponses(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendTlsConnectionsCurrent(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendTlsConnectionsLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerFrontendTlsConnectionsExceedingRateLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpSessionDurationAvg(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpSessionDuration50P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpSessionDuration95P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpResponseTimeAvg(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpResponseTime50P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpResponseTime95P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpResponseTime99P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsQueueSize(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHttpResponses(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsConnections(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsHealthChecks(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) GetLoadBalancerDropletsDowntime(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error) }
MonitoringService is an interface for interfacing with the monitoring endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Monitoring
type MonitoringServiceOp ¶ added in v1.64.0
type MonitoringServiceOp struct {
// contains filtered or unexported fields
}
MonitoringServiceOp handles communication with monitoring related methods of the DigitalOcean API.
func (*MonitoringServiceOp) CreateAlertPolicy ¶ added in v1.64.0
func (s *MonitoringServiceOp) CreateAlertPolicy(ctx context.Context, createRequest *AlertPolicyCreateRequest) (*AlertPolicy, *Response, error)
CreateAlertPolicy creates a new alert policy
func (*MonitoringServiceOp) DeleteAlertPolicy ¶ added in v1.64.0
func (s *MonitoringServiceOp) DeleteAlertPolicy(ctx context.Context, uuid string) (*Response, error)
DeleteAlertPolicy deletes an existing alert policy
func (*MonitoringServiceOp) GetAlertPolicy ¶ added in v1.64.0
func (s *MonitoringServiceOp) GetAlertPolicy(ctx context.Context, uuid string) (*AlertPolicy, *Response, error)
GetAlertPolicy gets a single alert policy
func (*MonitoringServiceOp) GetDropletAvailableMemory ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletAvailableMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletAvailableMemory retrieves Droplet available memory metrics.
func (*MonitoringServiceOp) GetDropletBandwidth ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletBandwidth(ctx context.Context, args *DropletBandwidthMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletBandwidth retrieves Droplet bandwidth metrics.
func (*MonitoringServiceOp) GetDropletCPU ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletCPU(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletCPU retrieves Droplet CPU metrics.
func (*MonitoringServiceOp) GetDropletCachedMemory ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletCachedMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletCachedMemory retrieves Droplet cached memory metrics.
func (*MonitoringServiceOp) GetDropletFilesystemFree ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletFilesystemFree(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletFilesystemFree retrieves Droplet filesystem free metrics.
func (*MonitoringServiceOp) GetDropletFilesystemSize ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletFilesystemSize(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletFilesystemSize retrieves Droplet filesystem size metrics.
func (*MonitoringServiceOp) GetDropletFreeMemory ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletFreeMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletFreeMemory retrieves Droplet free memory metrics.
func (*MonitoringServiceOp) GetDropletLoad1 ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletLoad1(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletLoad1 retrieves Droplet load 1 metrics.
func (*MonitoringServiceOp) GetDropletLoad15 ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletLoad15(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletLoad15 retrieves Droplet load 15 metrics.
func (*MonitoringServiceOp) GetDropletLoad5 ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletLoad5(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletLoad5 retrieves Droplet load 5 metrics.
func (*MonitoringServiceOp) GetDropletTotalMemory ¶ added in v1.70.0
func (s *MonitoringServiceOp) GetDropletTotalMemory(ctx context.Context, args *DropletMetricsRequest) (*MetricsResponse, *Response, error)
GetDropletTotalMemory retrieves Droplet total memory metrics.
func (*MonitoringServiceOp) GetLoadBalancerDropletsConnections ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsConnections(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsConnections retrieves droplet active connections for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsDowntime ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsDowntime(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsDowntime retrieves droplet downtime status for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHealthChecks ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHealthChecks(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHealthChecks retrieves droplet health check status for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime50P ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime50P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpResponseTime50P retrieves droplet 50th percentile HTTP response time for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime95P ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime95P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpResponseTime95P retrieves droplet 95th percentile HTTP response time for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime99P ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTime99P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpResponseTime99P retrieves droplet 99th percentile HTTP response time for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTimeAvg ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponseTimeAvg(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpResponseTimeAvg retrieves droplet average HTTP response time for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpResponses ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpResponses(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpResponses retrieves droplet HTTP rate of response code for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDuration50P ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDuration50P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpSessionDuration50P retrieves droplet 50th percentile HTTP session duration for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDuration95P ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDuration95P(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpSessionDuration95P retrieves droplet 95th percentile HTTP session duration for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDurationAvg ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsHttpSessionDurationAvg(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsHttpSessionDurationAvg retrieves droplet average HTTP session duration for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerDropletsQueueSize ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerDropletsQueueSize(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerDropletsQueueSize retrieves droplet queue size for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendConnectionsCurrent ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendConnectionsCurrent(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendConnectionsCurrent retrieves frontend total current active connections for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendConnectionsLimit ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendConnectionsLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendConnectionsLimit retrieves frontend max connections limit for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendCpuUtilization ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendCpuUtilization(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendCpuUtilization retrieves frontend average percentage cpu utilization for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendFirewallDroppedBytes ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendFirewallDroppedBytes(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendFirewallDroppedBytes retrieves firewall dropped bytes for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendFirewallDroppedPackets ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendFirewallDroppedPackets(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendFirewallDroppedPackets retrieves firewall dropped packets for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendHttpRequestsPerSecond ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendHttpRequestsPerSecond(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendHttpRequestsPerSecond retrieves frontend HTTP requests per second for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendHttpResponses ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendHttpResponses(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendHttpResponses retrieves frontend HTTP rate of response code for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputHttp ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputHttp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendNetworkThroughputHttp retrieves frontend HTTP throughput for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputTcp ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputTcp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendNetworkThroughputTcp retrieves frontend TCP throughput for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputUdp ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendNetworkThroughputUdp(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendNetworkThroughputUdp retrieves frontend UDP throughput for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendNlbTcpNetworkThroughput ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendNlbTcpNetworkThroughput(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendNlbTcpNetworkThroughput retrieves frontend TCP throughput for a given network load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendNlbUdpNetworkThroughput ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendNlbUdpNetworkThroughput(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendNlbUdpNetworkThroughput retrieves frontend UDP throughput for a given network load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsCurrent ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsCurrent(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendTlsConnectionsCurrent retrieves frontend current TLS connections rate for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsExceedingRateLimit ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsExceedingRateLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendTlsConnectionsExceedingRateLimit retrieves frontend closed TLS connections for exceeded rate limit for a given load balancer.
func (*MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsLimit ¶ added in v1.128.0
func (s *MonitoringServiceOp) GetLoadBalancerFrontendTlsConnectionsLimit(ctx context.Context, args *LoadBalancerMetricsRequest) (*MetricsResponse, *Response, error)
GetLoadBalancerFrontendTlsConnectionsLimit retrieves frontend max TLS connections limit for a given load balancer.
func (*MonitoringServiceOp) ListAlertPolicies ¶ added in v1.64.0
func (s *MonitoringServiceOp) ListAlertPolicies(ctx context.Context, opt *ListOptions) ([]AlertPolicy, *Response, error)
ListAlertPolicies all alert policies
func (*MonitoringServiceOp) UpdateAlertPolicy ¶ added in v1.64.0
func (s *MonitoringServiceOp) UpdateAlertPolicy(ctx context.Context, uuid string, updateRequest *AlertPolicyUpdateRequest) (*AlertPolicy, *Response, error)
UpdateAlertPolicy updates an existing alert policy
type MySQLConfig ¶ added in v1.82.0
type MySQLConfig struct { ConnectTimeout *int `json:"connect_timeout,omitempty"` DefaultTimeZone *string `json:"default_time_zone,omitempty"` InnodbLogBufferSize *int `json:"innodb_log_buffer_size,omitempty"` InnodbOnlineAlterLogMaxSize *int `json:"innodb_online_alter_log_max_size,omitempty"` InnodbLockWaitTimeout *int `json:"innodb_lock_wait_timeout,omitempty"` InteractiveTimeout *int `json:"interactive_timeout,omitempty"` MaxAllowedPacket *int `json:"max_allowed_packet,omitempty"` NetReadTimeout *int `json:"net_read_timeout,omitempty"` SortBufferSize *int `json:"sort_buffer_size,omitempty"` SQLMode *string `json:"sql_mode,omitempty"` SQLRequirePrimaryKey *bool `json:"sql_require_primary_key,omitempty"` WaitTimeout *int `json:"wait_timeout,omitempty"` NetWriteTimeout *int `json:"net_write_timeout,omitempty"` GroupConcatMaxLen *int `json:"group_concat_max_len,omitempty"` InformationSchemaStatsExpiry *int `json:"information_schema_stats_expiry,omitempty"` InnodbFtMinTokenSize *int `json:"innodb_ft_min_token_size,omitempty"` InnodbFtServerStopwordTable *string `json:"innodb_ft_server_stopword_table,omitempty"` InnodbPrintAllDeadlocks *bool `json:"innodb_print_all_deadlocks,omitempty"` InnodbRollbackOnTimeout *bool `json:"innodb_rollback_on_timeout,omitempty"` InternalTmpMemStorageEngine *string `json:"internal_tmp_mem_storage_engine,omitempty"` MaxHeapTableSize *int `json:"max_heap_table_size,omitempty"` TmpTableSize *int `json:"tmp_table_size,omitempty"` SlowQueryLog *bool `json:"slow_query_log,omitempty"` LongQueryTime *float32 `json:"long_query_time,omitempty"` BackupHour *int `json:"backup_hour,omitempty"` BackupMinute *int `json:"backup_minute,omitempty"` BinlogRetentionPeriod *int `json:"binlog_retention_period,omitempty"` InnodbChangeBufferMaxSize *int `json:"innodb_change_buffer_max_size,omitempty"` InnodbFlushNeighbors *int `json:"innodb_flush_neighbors,omitempty"` InnodbReadIoThreads *int `json:"innodb_read_io_threads,omitempty"` InnodbThreadConcurrency *int `json:"innodb_thread_concurrency,omitempty"` InnodbWriteIoThreads *int `json:"innodb_write_io_threads,omitempty"` NetBufferLength *int `json:"net_buffer_length,omitempty"` LogOutput *string `json:"log_output,omitempty"` }
MySQLConfig holds advanced configurations for MySQL database clusters.
type NetworkV4 ¶ added in v0.6.0
type NetworkV4 struct { IPAddress string `json:"ip_address,omitempty"` Netmask string `json:"netmask,omitempty"` Gateway string `json:"gateway,omitempty"` Type string `json:"type,omitempty"` }
NetworkV4 represents a DigitalOcean IPv4 Network.
type NetworkV6 ¶ added in v0.6.0
type NetworkV6 struct { IPAddress string `json:"ip_address,omitempty"` Netmask int `json:"netmask,omitempty"` Gateway string `json:"gateway,omitempty"` Type string `json:"type,omitempty"` }
NetworkV6 represents a DigitalOcean IPv6 network.
type Notifications ¶ added in v1.94.0
type Notifications struct { Email []string `json:"email"` Slack []SlackDetails `json:"slack"` }
Notifications represents a DigitalOcean Notifications configuration.
type OneClickService ¶ added in v1.37.0
type OneClickService interface { List(context.Context, string) ([]*OneClick, *Response, error) InstallKubernetes(context.Context, *InstallKubernetesAppsRequest) (*InstallKubernetesAppsResponse, *Response, error) }
OneClickService is an interface for interacting with 1-clicks with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/1-Click-Applications
type OneClickServiceOp ¶ added in v1.37.0
type OneClickServiceOp struct {
// contains filtered or unexported fields
}
OneClickServiceOp interfaces with 1-click endpoints in the DigitalOcean API.
func (*OneClickServiceOp) InstallKubernetes ¶ added in v1.38.0
func (ocs *OneClickServiceOp) InstallKubernetes(ctx context.Context, install *InstallKubernetesAppsRequest) (*InstallKubernetesAppsResponse, *Response, error)
InstallKubernetes installs an addon on a kubernetes cluster
type OneClicksRoot ¶ added in v1.37.0
type OneClicksRoot struct {
List []*OneClick `json:"1_clicks"`
}
OneClicksRoot is the root of the json payload that contains a list of 1-clicks
type OpenSearchACL ¶ added in v1.122.0
type OpenSearchACL struct { Permission string `json:"permission,omitempty"` Index string `json:"index,omitempty"` }
OpenSearchACL contains OpenSearch specific user access control information
type OpenSearchBasicAuth ¶ added in v1.117.0
type OpenSearchBasicAuth struct { // Username to authenticate with. Only required when `endpoint` is set. Defaults to `doadmin` when `cluster_name` is set. User string `json:"user,omitempty"` // Password for user defined in User. Is required when `endpoint` is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster. Password string `json:"password,omitempty"` }
OpenSearchBasicAuth Configure Username and/or Password for Basic authentication.
func (*OpenSearchBasicAuth) GetPassword ¶ added in v1.117.0
func (o *OpenSearchBasicAuth) GetPassword() string
GetPassword returns the Password field.
func (*OpenSearchBasicAuth) GetUser ¶ added in v1.117.0
func (o *OpenSearchBasicAuth) GetUser() string
GetUser returns the User field.
type OpensearchConfig ¶ added in v1.127.0
type OpensearchConfig struct { HttpMaxContentLengthBytes *int `json:"http_max_content_length_bytes,omitempty"` HttpMaxHeaderSizeBytes *int `json:"http_max_header_size_bytes,omitempty"` HttpMaxInitialLineLengthBytes *int `json:"http_max_initial_line_length_bytes,omitempty"` IndicesQueryBoolMaxClauseCount *int `json:"indices_query_bool_max_clause_count,omitempty"` IndicesFielddataCacheSizePercentage *int `json:"indices_fielddata_cache_size_percentage,omitempty"` IndicesMemoryIndexBufferSizePercentage *int `json:"indices_memory_index_buffer_size_percentage,omitempty"` IndicesMemoryMinIndexBufferSizeMb *int `json:"indices_memory_min_index_buffer_size_mb,omitempty"` IndicesMemoryMaxIndexBufferSizeMb *int `json:"indices_memory_max_index_buffer_size_mb,omitempty"` IndicesQueriesCacheSizePercentage *int `json:"indices_queries_cache_size_percentage,omitempty"` IndicesRecoveryMaxMbPerSec *int `json:"indices_recovery_max_mb_per_sec,omitempty"` IndicesRecoveryMaxConcurrentFileChunks *int `json:"indices_recovery_max_concurrent_file_chunks,omitempty"` ThreadPoolSearchSize *int `json:"thread_pool_search_size,omitempty"` ThreadPoolSearchThrottledSize *int `json:"thread_pool_search_throttled_size,omitempty"` ThreadPoolGetSize *int `json:"thread_pool_get_size,omitempty"` ThreadPoolAnalyzeSize *int `json:"thread_pool_analyze_size,omitempty"` ThreadPoolWriteSize *int `json:"thread_pool_write_size,omitempty"` ThreadPoolForceMergeSize *int `json:"thread_pool_force_merge_size,omitempty"` ThreadPoolSearchQueueSize *int `json:"thread_pool_search_queue_size,omitempty"` ThreadPoolSearchThrottledQueueSize *int `json:"thread_pool_search_throttled_queue_size,omitempty"` ThreadPoolGetQueueSize *int `json:"thread_pool_get_queue_size,omitempty"` ThreadPoolAnalyzeQueueSize *int `json:"thread_pool_analyze_queue_size,omitempty"` ThreadPoolWriteQueueSize *int `json:"thread_pool_write_queue_size,omitempty"` IsmEnabled *bool `json:"ism_enabled,omitempty"` IsmHistoryEnabled *bool `json:"ism_history_enabled,omitempty"` IsmHistoryMaxAgeHours *int `json:"ism_history_max_age_hours,omitempty"` IsmHistoryMaxDocs *int64 `json:"ism_history_max_docs,omitempty"` IsmHistoryRolloverCheckPeriodHours *int `json:"ism_history_rollover_check_period_hours,omitempty"` IsmHistoryRolloverRetentionPeriodDays *int `json:"ism_history_rollover_retention_period_days,omitempty"` SearchMaxBuckets *int `json:"search_max_buckets,omitempty"` ActionAutoCreateIndexEnabled *bool `json:"action_auto_create_index_enabled,omitempty"` EnableSecurityAudit *bool `json:"enable_security_audit,omitempty"` ActionDestructiveRequiresName *bool `json:"action_destructive_requires_name,omitempty"` ClusterMaxShardsPerNode *int `json:"cluster_max_shards_per_node,omitempty"` OverrideMainResponseVersion *bool `json:"override_main_response_version,omitempty"` ScriptMaxCompilationsRate *string `json:"script_max_compilations_rate,omitempty"` ClusterRoutingAllocationNodeConcurrentRecoveries *int `json:"cluster_routing_allocation_node_concurrent_recoveries,omitempty"` ReindexRemoteWhitelist []string `json:"reindex_remote_whitelist,omitempty"` PluginsAlertingFilterByBackendRolesEnabled *bool `json:"plugins_alerting_filter_by_backend_roles_enabled,omitempty"` }
OpensearchConfig holds advanced configurations for Opensearch database clusters.
type OutboundRule ¶ added in v1.1.0
type OutboundRule struct { Protocol string `json:"protocol,omitempty"` PortRange string `json:"ports,omitempty"` Destinations *Destinations `json:"destinations"` }
OutboundRule represents a DigitalOcean Firewall outbound rule.
type Pages ¶ added in v0.3.0
type Pages struct { First string `json:"first,omitempty"` Prev string `json:"prev,omitempty"` Last string `json:"last,omitempty"` Next string `json:"next,omitempty"` }
Pages are pages specified in Links
type PartnerInterconnectAttachment ¶ added in v1.133.0
type PartnerInterconnectAttachment struct { // ID is the generated ID of the Partner Interconnect Attachment ID string `json:"id,omitempty"` // Name is the name of the Partner Interconnect Attachment Name string `json:"name,omitempty"` // State is the state of the Partner Interconnect Attachment State string `json:"state,omitempty"` // ConnectionBandwidthInMbps is the bandwidth of the connection in Mbps ConnectionBandwidthInMbps int `json:"connection_bandwidth_in_mbps,omitempty"` // Region is the region where the Partner Interconnect Attachment is created Region string `json:"region,omitempty"` // NaaSProvider is the name of the Network as a Service provider NaaSProvider string `json:"naas_provider,omitempty"` // VPCIDs is the IDs of the VPCs to which the Partner Interconnect Attachment is connected VPCIDs []string `json:"vpc_ids,omitempty"` // BGP is the BGP configuration of the Partner Interconnect Attachment BGP BGP `json:"bgp,omitempty"` // CreatedAt is time when this Partner Interconnect Attachment was first created CreatedAt time.Time `json:"created_at,omitempty"` }
PartnerInterconnectAttachment represents a DigitalOcean Partner Interconnect Attachment.
type PartnerInterconnectAttachmentCreateRequest ¶ added in v1.133.0
type PartnerInterconnectAttachmentCreateRequest struct { // Name is the name of the Partner Interconnect Attachment Name string `json:"name,omitempty"` // ConnectionBandwidthInMbps is the bandwidth of the connection in Mbps ConnectionBandwidthInMbps int `json:"connection_bandwidth_in_mbps,omitempty"` // Region is the region where the Partner Interconnect Attachment is created Region string `json:"region,omitempty"` // NaaSProvider is the name of the Network as a Service provider NaaSProvider string `json:"naas_provider,omitempty"` // VPCIDs is the IDs of the VPCs to which the Partner Interconnect Attachment is connected VPCIDs []string `json:"vpc_ids,omitempty"` // BGP is the BGP configuration of the Partner Interconnect Attachment BGP BGP `json:"bgp,omitempty"` }
PartnerInterconnectAttachmentCreateRequest represents a request to create a Partner Interconnect Attachment.
type PartnerInterconnectAttachmentSetRoutesRequest ¶ added in v1.133.0
type PartnerInterconnectAttachmentSetRoutesRequest struct { // Routes is the list of routes to be used for the Partner Interconnect Attachment Routes []string `json:"routes,omitempty"` }
type PartnerInterconnectAttachmentUpdateRequest ¶ added in v1.133.0
type PartnerInterconnectAttachmentUpdateRequest struct { // Name is the name of the Partner Interconnect Attachment Name string `json:"name,omitempty"` //VPCIDs is the IDs of the VPCs to which the Partner Interconnect Attachment is connected VPCIDs []string `json:"vpc_ids,omitempty"` }
PartnerInterconnectAttachmentUpdateRequest represents a request to update a Partner Interconnect Attachment.
type PartnerInterconnectAttachmentsService ¶ added in v1.133.0
type PartnerInterconnectAttachmentsService interface { List(context.Context, *ListOptions) ([]*PartnerInterconnectAttachment, *Response, error) Create(context.Context, *PartnerInterconnectAttachmentCreateRequest) (*PartnerInterconnectAttachment, *Response, error) Get(context.Context, string) (*PartnerInterconnectAttachment, *Response, error) Update(context.Context, string, *PartnerInterconnectAttachmentUpdateRequest) (*PartnerInterconnectAttachment, *Response, error) Delete(context.Context, string) (*Response, error) GetServiceKey(context.Context, string) (*ServiceKey, *Response, error) SetRoutes(context.Context, string, *PartnerInterconnectAttachmentSetRoutesRequest) (*PartnerInterconnectAttachment, *Response, error) ListRoutes(context.Context, string, *ListOptions) ([]*RemoteRoute, *Response, error) }
PartnerInterconnectAttachmentsService is an interface for managing Partner Interconnect Attachments with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/PartnerInterconnectAttachments
type PartnerInterconnectAttachmentsServiceOp ¶ added in v1.133.0
type PartnerInterconnectAttachmentsServiceOp struct {
// contains filtered or unexported fields
}
PartnerInterconnectAttachmentsServiceOp interfaces with the Partner Interconnect Attachment endpoints in the DigitalOcean API.
func (*PartnerInterconnectAttachmentsServiceOp) Create ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) Create(ctx context.Context, create *PartnerInterconnectAttachmentCreateRequest) (*PartnerInterconnectAttachment, *Response, error)
Create creates a new Partner Interconnect Attachment.
func (*PartnerInterconnectAttachmentsServiceOp) Delete ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) Delete(ctx context.Context, id string) (*Response, error)
Delete deletes a Partner Interconnect Attachment.
func (*PartnerInterconnectAttachmentsServiceOp) Get ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) Get(ctx context.Context, id string) (*PartnerInterconnectAttachment, *Response, error)
Get returns the details of a Partner Interconnect Attachment.
func (*PartnerInterconnectAttachmentsServiceOp) GetServiceKey ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) GetServiceKey(ctx context.Context, id string) (*ServiceKey, *Response, error)
func (*PartnerInterconnectAttachmentsServiceOp) List ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]*PartnerInterconnectAttachment, *Response, error)
List returns a list of all Partner Interconnect Attachments, with optional pagination.
func (*PartnerInterconnectAttachmentsServiceOp) ListRoutes ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) ListRoutes(ctx context.Context, id string, opt *ListOptions) ([]*RemoteRoute, *Response, error)
ListRoutes lists all routes for a Partner Interconnect Attachment.
func (*PartnerInterconnectAttachmentsServiceOp) SetRoutes ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) SetRoutes(ctx context.Context, id string, set *PartnerInterconnectAttachmentSetRoutesRequest) (*PartnerInterconnectAttachment, *Response, error)
SetRoutes updates specific properties of a Partner Interconnect Attachment.
func (*PartnerInterconnectAttachmentsServiceOp) Update ¶ added in v1.133.0
func (s *PartnerInterconnectAttachmentsServiceOp) Update(ctx context.Context, id string, update *PartnerInterconnectAttachmentUpdateRequest) (*PartnerInterconnectAttachment, *Response, error)
Update updates a Partner Interconnect Attachment properties.
type PendingChange ¶ added in v1.1.0
type PendingChange struct { DropletID int `json:"droplet_id,omitempty"` Removing bool `json:"removing,omitempty"` Status string `json:"status,omitempty"` }
PendingChange represents a DigitalOcean Firewall status details.
type PostgreSQLBouncerConfig ¶ added in v1.82.0
type PostgreSQLBouncerConfig struct { ServerResetQueryAlways *bool `json:"server_reset_query_always,omitempty"` IgnoreStartupParameters *[]string `json:"ignore_startup_parameters,omitempty"` MinPoolSize *int `json:"min_pool_size,omitempty"` ServerLifetime *int `json:"server_lifetime,omitempty"` ServerIdleTimeout *int `json:"server_idle_timeout,omitempty"` AutodbPoolSize *int `json:"autodb_pool_size,omitempty"` AutodbPoolMode *string `json:"autodb_pool_mode,omitempty"` AutodbMaxDbConnections *int `json:"autodb_max_db_connections,omitempty"` AutodbIdleTimeout *int `json:"autodb_idle_timeout,omitempty"` }
PostgreSQLBouncerConfig configuration
type PostgreSQLConfig ¶ added in v1.82.0
type PostgreSQLConfig struct { AutovacuumFreezeMaxAge *int `json:"autovacuum_freeze_max_age,omitempty"` AutovacuumMaxWorkers *int `json:"autovacuum_max_workers,omitempty"` AutovacuumNaptime *int `json:"autovacuum_naptime,omitempty"` AutovacuumVacuumThreshold *int `json:"autovacuum_vacuum_threshold,omitempty"` AutovacuumAnalyzeThreshold *int `json:"autovacuum_analyze_threshold,omitempty"` AutovacuumVacuumScaleFactor *float32 `json:"autovacuum_vacuum_scale_factor,omitempty"` AutovacuumAnalyzeScaleFactor *float32 `json:"autovacuum_analyze_scale_factor,omitempty"` AutovacuumVacuumCostDelay *int `json:"autovacuum_vacuum_cost_delay,omitempty"` AutovacuumVacuumCostLimit *int `json:"autovacuum_vacuum_cost_limit,omitempty"` BGWriterDelay *int `json:"bgwriter_delay,omitempty"` BGWriterFlushAfter *int `json:"bgwriter_flush_after,omitempty"` BGWriterLRUMaxpages *int `json:"bgwriter_lru_maxpages,omitempty"` BGWriterLRUMultiplier *float32 `json:"bgwriter_lru_multiplier,omitempty"` DeadlockTimeoutMillis *int `json:"deadlock_timeout,omitempty"` DefaultToastCompression *string `json:"default_toast_compression,omitempty"` IdleInTransactionSessionTimeout *int `json:"idle_in_transaction_session_timeout,omitempty"` JIT *bool `json:"jit,omitempty"` LogAutovacuumMinDuration *int `json:"log_autovacuum_min_duration,omitempty"` LogErrorVerbosity *string `json:"log_error_verbosity,omitempty"` LogLinePrefix *string `json:"log_line_prefix,omitempty"` LogMinDurationStatement *int `json:"log_min_duration_statement,omitempty"` MaxFilesPerProcess *int `json:"max_files_per_process,omitempty"` MaxPreparedTransactions *int `json:"max_prepared_transactions,omitempty"` MaxPredLocksPerTransaction *int `json:"max_pred_locks_per_transaction,omitempty"` MaxLocksPerTransaction *int `json:"max_locks_per_transaction,omitempty"` MaxStackDepth *int `json:"max_stack_depth,omitempty"` MaxStandbyArchiveDelay *int `json:"max_standby_archive_delay,omitempty"` MaxStandbyStreamingDelay *int `json:"max_standby_streaming_delay,omitempty"` MaxReplicationSlots *int `json:"max_replication_slots,omitempty"` MaxLogicalReplicationWorkers *int `json:"max_logical_replication_workers,omitempty"` MaxParallelWorkers *int `json:"max_parallel_workers,omitempty"` MaxParallelWorkersPerGather *int `json:"max_parallel_workers_per_gather,omitempty"` MaxWorkerProcesses *int `json:"max_worker_processes,omitempty"` PGPartmanBGWRole *string `json:"pg_partman_bgw.role,omitempty"` PGPartmanBGWInterval *int `json:"pg_partman_bgw.interval,omitempty"` PGStatStatementsTrack *string `json:"pg_stat_statements.track,omitempty"` TempFileLimit *int `json:"temp_file_limit,omitempty"` Timezone *string `json:"timezone,omitempty"` TrackActivityQuerySize *int `json:"track_activity_query_size,omitempty"` TrackCommitTimestamp *string `json:"track_commit_timestamp,omitempty"` TrackFunctions *string `json:"track_functions,omitempty"` TrackIOTiming *string `json:"track_io_timing,omitempty"` MaxWalSenders *int `json:"max_wal_senders,omitempty"` WalSenderTimeout *int `json:"wal_sender_timeout,omitempty"` WalWriterDelay *int `json:"wal_writer_delay,omitempty"` PgBouncer *PostgreSQLBouncerConfig `json:"pgbouncer,omitempty"` BackupHour *int `json:"backup_hour,omitempty"` BackupMinute *int `json:"backup_minute,omitempty"` WorkMem *int `json:"work_mem,omitempty"` TimeScaleDB *PostgreSQLTimeScaleDBConfig `json:"timescaledb,omitempty"` SynchronousReplication *string `json:"synchronous_replication,omitempty"` StatMonitorEnable *bool `json:"stat_monitor_enable,omitempty"` MaxFailoverReplicationTimeLag *int64 `json:"max_failover_replication_time_lag,omitempty"` }
PostgreSQLConfig holds advanced configurations for PostgreSQL database clusters.
type PostgreSQLTimeScaleDBConfig ¶ added in v1.82.0
type PostgreSQLTimeScaleDBConfig struct {
MaxBackgroundWorkers *int `json:"max_background_workers,omitempty"`
}
PostgreSQLTimeScaleDBConfig configuration
type Project ¶ added in v1.6.0
type Project struct { ID string `json:"id"` OwnerUUID string `json:"owner_uuid"` OwnerID uint64 `json:"owner_id"` Name string `json:"name"` Description string `json:"description"` Purpose string `json:"purpose"` Environment string `json:"environment"` IsDefault bool `json:"is_default"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
Project represents a DigitalOcean Project configuration.
type ProjectResource ¶ added in v1.6.0
type ProjectResource struct { URN string `json:"urn"` AssignedAt string `json:"assigned_at"` Links *ProjectResourceLinks `json:"links"` Status string `json:"status,omitempty"` }
ProjectResource is the projects API's representation of a resource.
type ProjectResourceLinks ¶ added in v1.6.0
type ProjectResourceLinks struct {
Self string `json:"self"`
}
ProjectResourceLinks specify the link for more information about the resource.
type ProjectsService ¶ added in v1.6.0
type ProjectsService interface { List(context.Context, *ListOptions) ([]Project, *Response, error) GetDefault(context.Context) (*Project, *Response, error) Get(context.Context, string) (*Project, *Response, error) Create(context.Context, *CreateProjectRequest) (*Project, *Response, error) Update(context.Context, string, *UpdateProjectRequest) (*Project, *Response, error) Delete(context.Context, string) (*Response, error) ListResources(context.Context, string, *ListOptions) ([]ProjectResource, *Response, error) AssignResources(context.Context, string, ...interface{}) ([]ProjectResource, *Response, error) }
ProjectsService is an interface for creating and managing Projects with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Projects
type ProjectsServiceOp ¶ added in v1.6.0
type ProjectsServiceOp struct {
// contains filtered or unexported fields
}
ProjectsServiceOp handles communication with Projects methods of the DigitalOcean API.
func (*ProjectsServiceOp) AssignResources ¶ added in v1.6.0
func (p *ProjectsServiceOp) AssignResources(ctx context.Context, projectID string, resources ...interface{}) ([]ProjectResource, *Response, error)
AssignResources assigns one or more resources to a project. AssignResources accepts resources in two possible formats:
- The resource type, like `&Droplet{ID: 1}` or `&FloatingIP{IP: "1.2.3.4"}`
- A valid DO URN as a string, like "do:droplet:1234"
There is no unassign. To move a resource to another project, just assign it to that other project.
func (*ProjectsServiceOp) Create ¶ added in v1.6.0
func (p *ProjectsServiceOp) Create(ctx context.Context, cr *CreateProjectRequest) (*Project, *Response, error)
Create a new project.
func (*ProjectsServiceOp) Delete ¶ added in v1.6.0
Delete an existing project. You cannot have any resources in a project before deleting it. See the API documentation for more details.
func (*ProjectsServiceOp) GetDefault ¶ added in v1.6.0
GetDefault project.
func (*ProjectsServiceOp) List ¶ added in v1.6.0
func (p *ProjectsServiceOp) List(ctx context.Context, opts *ListOptions) ([]Project, *Response, error)
List Projects.
func (*ProjectsServiceOp) ListResources ¶ added in v1.6.0
func (p *ProjectsServiceOp) ListResources(ctx context.Context, projectID string, opts *ListOptions) ([]ProjectResource, *Response, error)
ListResources lists all resources in a project.
func (*ProjectsServiceOp) Update ¶ added in v1.6.0
func (p *ProjectsServiceOp) Update(ctx context.Context, projectID string, ur *UpdateProjectRequest) (*Project, *Response, error)
Update an existing project.
type Rate ¶
type Rate struct { // The number of request per hour the client is currently limited to. Limit int `json:"limit"` // The number of remaining requests the client can make this hour. Remaining int `json:"remaining"` // The time at which the current rate limit will reset. Reset Timestamp `json:"reset"` }
Rate contains the rate limit for the current client.
type RedisConfig ¶ added in v1.82.0
type RedisConfig struct { RedisMaxmemoryPolicy *string `json:"redis_maxmemory_policy,omitempty"` RedisPubsubClientOutputBufferLimit *int `json:"redis_pubsub_client_output_buffer_limit,omitempty"` RedisNumberOfDatabases *int `json:"redis_number_of_databases,omitempty"` RedisIOThreads *int `json:"redis_io_threads,omitempty"` RedisLFULogFactor *int `json:"redis_lfu_log_factor,omitempty"` RedisLFUDecayTime *int `json:"redis_lfu_decay_time,omitempty"` RedisSSL *bool `json:"redis_ssl,omitempty"` RedisTimeout *int `json:"redis_timeout,omitempty"` RedisNotifyKeyspaceEvents *string `json:"redis_notify_keyspace_events,omitempty"` RedisPersistence *string `json:"redis_persistence,omitempty"` RedisACLChannelsDefault *string `json:"redis_acl_channels_default,omitempty"` }
RedisConfig holds advanced configurations for Redis database clusters.
type Region ¶
type Region struct { Slug string `json:"slug,omitempty"` Name string `json:"name,omitempty"` Sizes []string `json:"sizes,omitempty"` Available bool `json:"available,omitempty"` Features []string `json:"features,omitempty"` }
Region represents a DigitalOcean Region
type RegionsService ¶
RegionsService is an interface for interfacing with the regions endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Regions
type RegionsServiceOp ¶ added in v0.3.0
type RegionsServiceOp struct {
// contains filtered or unexported fields
}
RegionsServiceOp handles communication with the region related methods of the DigitalOcean API.
func (*RegionsServiceOp) List ¶ added in v0.3.0
func (s *RegionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Region, *Response, error)
List all regions
type RegistriesCreateRequest ¶ added in v1.129.0
type RegistriesCreateRequest struct { Name string `json:"name,omitempty"` Region string `json:"region,omitempty"` }
RegistriesCreateRequest represents a request to create a secondary registry.
type RegistriesService ¶ added in v1.129.0
type RegistriesService interface { Get(context.Context, string) (*Registry, *Response, error) List(context.Context) ([]*Registry, *Response, error) Create(context.Context, *RegistriesCreateRequest) (*Registry, *Response, error) Delete(context.Context, string) (*Response, error) DockerCredentials(context.Context, string, *RegistryDockerCredentialsRequest) (*DockerCredentials, *Response, error) }
RegistriesService is an interface for interfacing with the new multiple-registry beta endpoints of the DigitalOcean API.
We are creating a separate Service in alignment with the new /v2/registries endpoints.
type RegistriesServiceOp ¶ added in v1.129.0
type RegistriesServiceOp struct {
// contains filtered or unexported fields
}
RegistriesServiceOp handles communication with the multiple-registry beta methods.
func (*RegistriesServiceOp) Create ¶ added in v1.129.0
func (svc *RegistriesServiceOp) Create(ctx context.Context, create *RegistriesCreateRequest) (*Registry, *Response, error)
Create creates a named Registry.
func (*RegistriesServiceOp) Delete ¶ added in v1.129.0
Delete deletes a named Registry. There is no way to recover a Registry once it has been destroyed.
func (*RegistriesServiceOp) DockerCredentials ¶ added in v1.129.0
func (svc *RegistriesServiceOp) DockerCredentials(ctx context.Context, registry string, request *RegistryDockerCredentialsRequest) (*DockerCredentials, *Response, error)
DockerCredentials retrieves a Docker config file containing named Registry's credentials.
type Registry ¶ added in v1.25.0
type Registry struct { Name string `json:"name,omitempty"` StorageUsageBytes uint64 `json:"storage_usage_bytes,omitempty"` StorageUsageBytesUpdatedAt time.Time `json:"storage_usage_bytes_updated_at,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Region string `json:"region,omitempty"` }
Registry represents a registry.
type RegistryCreateRequest ¶ added in v1.25.0
type RegistryCreateRequest struct { Name string `json:"name,omitempty"` SubscriptionTierSlug string `json:"subscription_tier_slug,omitempty"` Region string `json:"region,omitempty"` }
RegistryCreateRequest represents a request to create a registry.
type RegistryDockerCredentialsRequest ¶ added in v1.25.0
type RegistryDockerCredentialsRequest struct { ReadWrite bool `json:"read_write"` ExpirySeconds *int `json:"expiry_seconds,omitempty"` }
RegistryDockerCredentialsRequest represents a request to retrieve docker credentials for a registry.
type RegistryOptions ¶ added in v1.51.0
type RegistryOptions struct { SubscriptionTiers []*RegistrySubscriptionTier `json:"subscription_tiers,omitempty"` AvailableRegions []string `json:"available_regions"` }
RegistryOptions are options for users when creating or updating a registry.
type RegistryService ¶ added in v1.25.0
type RegistryService interface { Create(context.Context, *RegistryCreateRequest) (*Registry, *Response, error) Get(context.Context) (*Registry, *Response, error) Delete(context.Context) (*Response, error) DockerCredentials(context.Context, *RegistryDockerCredentialsRequest) (*DockerCredentials, *Response, error) ListRepositories(context.Context, string, *ListOptions) ([]*Repository, *Response, error) ListRepositoriesV2(context.Context, string, *TokenListOptions) ([]*RepositoryV2, *Response, error) ListRepositoryTags(context.Context, string, string, *ListOptions) ([]*RepositoryTag, *Response, error) DeleteTag(context.Context, string, string, string) (*Response, error) ListRepositoryManifests(context.Context, string, string, *ListOptions) ([]*RepositoryManifest, *Response, error) DeleteManifest(context.Context, string, string, string) (*Response, error) StartGarbageCollection(context.Context, string, ...*StartGarbageCollectionRequest) (*GarbageCollection, *Response, error) GetGarbageCollection(context.Context, string) (*GarbageCollection, *Response, error) ListGarbageCollections(context.Context, string, *ListOptions) ([]*GarbageCollection, *Response, error) UpdateGarbageCollection(context.Context, string, string, *UpdateGarbageCollectionRequest) (*GarbageCollection, *Response, error) GetOptions(context.Context) (*RegistryOptions, *Response, error) GetSubscription(context.Context) (*RegistrySubscription, *Response, error) UpdateSubscription(context.Context, *RegistrySubscriptionUpdateRequest) (*RegistrySubscription, *Response, error) ValidateName(context.Context, *RegistryValidateNameRequest) (*Response, error) }
RegistryService is an interface for interfacing with the Registry endpoints of the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Container-Registry
type RegistryServiceOp ¶ added in v1.25.0
type RegistryServiceOp struct {
// contains filtered or unexported fields
}
RegistryServiceOp handles communication with Registry methods of the DigitalOcean API.
func (*RegistryServiceOp) Create ¶ added in v1.25.0
func (svc *RegistryServiceOp) Create(ctx context.Context, create *RegistryCreateRequest) (*Registry, *Response, error)
Create creates a registry.
func (*RegistryServiceOp) Delete ¶ added in v1.25.0
func (svc *RegistryServiceOp) Delete(ctx context.Context) (*Response, error)
Delete deletes a registry. There is no way to recover a registry once it has been destroyed.
func (*RegistryServiceOp) DeleteManifest ¶ added in v1.35.0
func (svc *RegistryServiceOp) DeleteManifest(ctx context.Context, registry, repository, digest string) (*Response, error)
DeleteManifest deletes a manifest by its digest within a given repository.
func (*RegistryServiceOp) DeleteTag ¶ added in v1.35.0
func (svc *RegistryServiceOp) DeleteTag(ctx context.Context, registry, repository, tag string) (*Response, error)
DeleteTag deletes a tag within a given repository.
func (*RegistryServiceOp) DockerCredentials ¶ added in v1.25.0
func (svc *RegistryServiceOp) DockerCredentials(ctx context.Context, request *RegistryDockerCredentialsRequest) (*DockerCredentials, *Response, error)
DockerCredentials retrieves a Docker config file containing the registry's credentials.
func (*RegistryServiceOp) GetGarbageCollection ¶ added in v1.50.0
func (svc *RegistryServiceOp) GetGarbageCollection(ctx context.Context, registry string) (*GarbageCollection, *Response, error)
GetGarbageCollection retrieves the currently-active garbage collection for the specified registry; if there are no active garbage collections, then return a 404/NotFound error. There can only be one active garbage collection on a registry.
func (*RegistryServiceOp) GetOptions ¶ added in v1.51.0
func (svc *RegistryServiceOp) GetOptions(ctx context.Context) (*RegistryOptions, *Response, error)
GetOptions returns options the user can use when creating or updating a registry.
func (*RegistryServiceOp) GetSubscription ¶ added in v1.51.0
func (svc *RegistryServiceOp) GetSubscription(ctx context.Context) (*RegistrySubscription, *Response, error)
GetSubscription retrieves the user's subscription.
func (*RegistryServiceOp) ListGarbageCollections ¶ added in v1.50.0
func (svc *RegistryServiceOp) ListGarbageCollections(ctx context.Context, registry string, opts *ListOptions) ([]*GarbageCollection, *Response, error)
ListGarbageCollections retrieves all garbage collections (active and inactive) for the specified registry.
func (*RegistryServiceOp) ListRepositories ¶ added in v1.35.0
func (svc *RegistryServiceOp) ListRepositories(ctx context.Context, registry string, opts *ListOptions) ([]*Repository, *Response, error)
ListRepositories returns a list of the Repositories visible with the registry's credentials.
func (*RegistryServiceOp) ListRepositoriesV2 ¶ added in v1.73.0
func (svc *RegistryServiceOp) ListRepositoriesV2(ctx context.Context, registry string, opts *TokenListOptions) ([]*RepositoryV2, *Response, error)
ListRepositoriesV2 returns a list of the Repositories in a registry.
func (*RegistryServiceOp) ListRepositoryManifests ¶ added in v1.73.0
func (svc *RegistryServiceOp) ListRepositoryManifests(ctx context.Context, registry, repository string, opts *ListOptions) ([]*RepositoryManifest, *Response, error)
ListRepositoryManifests returns a list of the RepositoryManifests available within the given repository.
func (*RegistryServiceOp) ListRepositoryTags ¶ added in v1.35.0
func (svc *RegistryServiceOp) ListRepositoryTags(ctx context.Context, registry, repository string, opts *ListOptions) ([]*RepositoryTag, *Response, error)
ListRepositoryTags returns a list of the RepositoryTags available within the given repository.
func (*RegistryServiceOp) StartGarbageCollection ¶ added in v1.50.0
func (svc *RegistryServiceOp) StartGarbageCollection(ctx context.Context, registry string, request ...*StartGarbageCollectionRequest) (*GarbageCollection, *Response, error)
StartGarbageCollection requests a garbage collection for the specified registry.
func (*RegistryServiceOp) UpdateGarbageCollection ¶ added in v1.50.0
func (svc *RegistryServiceOp) UpdateGarbageCollection(ctx context.Context, registry, gcUUID string, request *UpdateGarbageCollectionRequest) (*GarbageCollection, *Response, error)
UpdateGarbageCollection updates the specified garbage collection for the specified registry. While only the currently-active garbage collection can be updated we still require the exact garbage collection to be specified to avoid race conditions that might may arise from issuing an update to the implicit "currently-active" garbage collection. Returns the updated garbage collection.
func (*RegistryServiceOp) UpdateSubscription ¶ added in v1.52.0
func (svc *RegistryServiceOp) UpdateSubscription(ctx context.Context, request *RegistrySubscriptionUpdateRequest) (*RegistrySubscription, *Response, error)
UpdateSubscription updates the user's registry subscription.
func (*RegistryServiceOp) ValidateName ¶ added in v1.99.0
func (svc *RegistryServiceOp) ValidateName(ctx context.Context, request *RegistryValidateNameRequest) (*Response, error)
ValidateName validates that a container registry name is available for use.
type RegistrySubscription ¶ added in v1.51.0
type RegistrySubscription struct { Tier *RegistrySubscriptionTier `json:"tier"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
RegistrySubscription is a user's subscription.
type RegistrySubscriptionTier ¶ added in v1.51.0
type RegistrySubscriptionTier struct { Name string `json:"name"` Slug string `json:"slug"` IncludedRepositories uint64 `json:"included_repositories"` IncludedStorageBytes uint64 `json:"included_storage_bytes"` AllowStorageOverage bool `json:"allow_storage_overage"` IncludedBandwidthBytes uint64 `json:"included_bandwidth_bytes"` MonthlyPriceInCents uint64 `json:"monthly_price_in_cents"` Eligible bool `json:"eligible,omitempty"` // EligibilityReasons is included when Eligible is false, and indicates the // reasons why this tier is not available to the user. EligibilityReasons []string `json:"eligibility_reasons,omitempty"` }
RegistrySubscriptionTier is a subscription tier for container registry.
type RegistrySubscriptionUpdateRequest ¶ added in v1.52.0
type RegistrySubscriptionUpdateRequest struct {
TierSlug string `json:"tier_slug"`
}
RegistrySubscriptionUpdateRequest represents a request to update the subscription plan for a registry.
type RegistryValidateNameRequest ¶ added in v1.99.0
type RegistryValidateNameRequest struct {
Name string `json:"name"`
}
RegistryValidateNameRequest represents a request to validate that a container registry name is available for use.
type RemoteRoute ¶ added in v1.133.0
type RemoteRoute struct { // ID is the generated ID of the Route ID string `json:"id,omitempty"` // Cidr is the CIDR of the route Cidr string `json:"cidr,omitempty"` }
RemoteRoute represents a route for a Partner Interconnect Attachment.
type Repository ¶ added in v1.35.0
type Repository struct { RegistryName string `json:"registry_name,omitempty"` Name string `json:"name,omitempty"` LatestTag *RepositoryTag `json:"latest_tag,omitempty"` TagCount uint64 `json:"tag_count,omitempty"` }
Repository represents a repository
type RepositoryManifest ¶ added in v1.73.0
type RepositoryManifest struct { RegistryName string `json:"registry_name,omitempty"` Repository string `json:"repository,omitempty"` Digest string `json:"digest,omitempty"` CompressedSizeBytes uint64 `json:"compressed_size_bytes,omitempty"` SizeBytes uint64 `json:"size_bytes,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Tags []string `json:"tags,omitempty"` Blobs []*Blob `json:"blobs,omitempty"` }
RepositoryManifest represents a repository manifest
type RepositoryTag ¶ added in v1.35.0
type RepositoryTag struct { RegistryName string `json:"registry_name,omitempty"` Repository string `json:"repository,omitempty"` Tag string `json:"tag,omitempty"` ManifestDigest string `json:"manifest_digest,omitempty"` CompressedSizeBytes uint64 `json:"compressed_size_bytes,omitempty"` SizeBytes uint64 `json:"size_bytes,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
RepositoryTag represents a repository tag
type RepositoryV2 ¶ added in v1.73.0
type RepositoryV2 struct { RegistryName string `json:"registry_name,omitempty"` Name string `json:"name,omitempty"` TagCount uint64 `json:"tag_count,omitempty"` ManifestCount uint64 `json:"manifest_count,omitempty"` LatestManifest *RepositoryManifest `json:"latest_manifest,omitempty"` }
RepositoryV2 represents a repository in the V2 format
type RequestCompletionCallback ¶ added in v0.9.0
RequestCompletionCallback defines the type of the request callback function
type ReservedIP ¶ added in v1.81.0
type ReservedIP struct { Region *Region `json:"region"` Droplet *Droplet `json:"droplet"` IP string `json:"ip"` ProjectID string `json:"project_id"` Locked bool `json:"locked"` }
ReservedIP represents a Digital Ocean reserved IP.
func (ReservedIP) String ¶ added in v1.81.0
func (f ReservedIP) String() string
func (ReservedIP) URN ¶ added in v1.81.0
func (f ReservedIP) URN() string
URN returns the reserved IP in a valid DO API URN form.
type ReservedIPActionsService ¶ added in v1.81.0
type ReservedIPActionsService interface { Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error) Unassign(ctx context.Context, ip string) (*Action, *Response, error) Get(ctx context.Context, ip string, actionID int) (*Action, *Response, error) List(ctx context.Context, ip string, opt *ListOptions) ([]Action, *Response, error) }
ReservedIPActionsService is an interface for interfacing with the reserved IPs actions endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Reserved-IP-Actions
type ReservedIPActionsServiceOp ¶ added in v1.81.0
type ReservedIPActionsServiceOp struct {
// contains filtered or unexported fields
}
ReservedIPActionsServiceOp handles communication with the reserved IPs action related methods of the DigitalOcean API.
func (*ReservedIPActionsServiceOp) Assign ¶ added in v1.81.0
func (s *ReservedIPActionsServiceOp) Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error)
Assign a reserved IP to a droplet.
func (*ReservedIPActionsServiceOp) Get ¶ added in v1.81.0
func (s *ReservedIPActionsServiceOp) Get(ctx context.Context, ip string, actionID int) (*Action, *Response, error)
Get an action for a particular reserved IP by id.
func (*ReservedIPActionsServiceOp) List ¶ added in v1.81.0
func (s *ReservedIPActionsServiceOp) List(ctx context.Context, ip string, opt *ListOptions) ([]Action, *Response, error)
List the actions for a particular reserved IP.
type ReservedIPCreateRequest ¶ added in v1.81.0
type ReservedIPCreateRequest struct { Region string `json:"region,omitempty"` DropletID int `json:"droplet_id,omitempty"` ProjectID string `json:"project_id,omitempty"` }
ReservedIPCreateRequest represents a request to create a reserved IP. Specify DropletID to assign the reserved IP to a Droplet or Region to reserve it to the region.
type ReservedIPV6 ¶ added in v1.131.0
type ReservedIPV6 struct { RegionSlug string `json:"region_slug"` IP string `json:"ip"` ReservedAt time.Time `json:"reserved_at"` Droplet *Droplet `json:"droplet,omitempty"` }
ReservedIPV6 represents a Digital Ocean reserved IP.
func (ReservedIPV6) String ¶ added in v1.131.0
func (f ReservedIPV6) String() string
func (ReservedIPV6) URN ¶ added in v1.131.0
func (f ReservedIPV6) URN() string
URN returns the reserved IP in a valid DO API URN form.
type ReservedIPV6ActionsService ¶ added in v1.131.0
type ReservedIPV6ActionsService interface { Assign(ctx context.Context, ip string, dropletID int) (*Action, *Response, error) Unassign(ctx context.Context, ip string) (*Action, *Response, error) }
ReservedIPActionsService is an interface for interfacing with the reserved IPs actions endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Reserved-IP-Actions
type ReservedIPV6ActionsServiceOp ¶ added in v1.131.0
type ReservedIPV6ActionsServiceOp struct {
// contains filtered or unexported fields
}
ReservedIPActionsServiceOp handles communication with the reserved IPs action related methods of the DigitalOcean API.
type ReservedIPV6CreateRequest ¶ added in v1.131.0
type ReservedIPV6CreateRequest struct {
Region string `json:"region_slug,omitempty"`
}
ReservedIPV6CreateRequest represents a request to reserve a reserved IP.
type ReservedIPV6sService ¶ added in v1.131.0
type ReservedIPV6sService interface { List(context.Context, *ListOptions) ([]ReservedIPV6, *Response, error) Get(context.Context, string) (*ReservedIPV6, *Response, error) Create(context.Context, *ReservedIPV6CreateRequest) (*ReservedIPV6, *Response, error) Delete(context.Context, string) (*Response, error) }
ReservedIPV6sService is an interface for interfacing with the reserved IPV6s endpoints of the Digital Ocean API.
type ReservedIPV6sServiceOp ¶ added in v1.131.0
type ReservedIPV6sServiceOp struct {
// contains filtered or unexported fields
}
ReservedIPV6sServiceOp handles communication with the reserved IPs related methods of the DigitalOcean API.
func (*ReservedIPV6sServiceOp) Create ¶ added in v1.131.0
func (r *ReservedIPV6sServiceOp) Create(ctx context.Context, reserveRequest *ReservedIPV6CreateRequest) (*ReservedIPV6, *Response, error)
Create a new IPv6
func (*ReservedIPV6sServiceOp) Get ¶ added in v1.131.0
func (r *ReservedIPV6sServiceOp) Get(ctx context.Context, ip string) (*ReservedIPV6, *Response, error)
Get an individual reserved IPv6.
func (*ReservedIPV6sServiceOp) List ¶ added in v1.131.0
func (r *ReservedIPV6sServiceOp) List(ctx context.Context, opt *ListOptions) ([]ReservedIPV6, *Response, error)
List all reserved IPV6s.
type ReservedIPsService ¶ added in v1.81.0
type ReservedIPsService interface { List(context.Context, *ListOptions) ([]ReservedIP, *Response, error) Get(context.Context, string) (*ReservedIP, *Response, error) Create(context.Context, *ReservedIPCreateRequest) (*ReservedIP, *Response, error) Delete(context.Context, string) (*Response, error) }
ReservedIPsService is an interface for interfacing with the reserved IPs endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Reserved-IPs
type ReservedIPsServiceOp ¶ added in v1.81.0
type ReservedIPsServiceOp struct {
// contains filtered or unexported fields
}
ReservedIPsServiceOp handles communication with the reserved IPs related methods of the DigitalOcean API.
func (*ReservedIPsServiceOp) Create ¶ added in v1.81.0
func (r *ReservedIPsServiceOp) Create(ctx context.Context, createRequest *ReservedIPCreateRequest) (*ReservedIP, *Response, error)
Create a reserved IP. If the DropletID field of the request is not empty, the reserved IP will also be assigned to the droplet.
func (*ReservedIPsServiceOp) Get ¶ added in v1.81.0
func (r *ReservedIPsServiceOp) Get(ctx context.Context, ip string) (*ReservedIP, *Response, error)
Get an individual reserved IP.
func (*ReservedIPsServiceOp) List ¶ added in v1.81.0
func (r *ReservedIPsServiceOp) List(ctx context.Context, opt *ListOptions) ([]ReservedIP, *Response, error)
List all reserved IPs.
type ResetDatabasePasswordRequest ¶ added in v1.109.0
type ResetDatabasePasswordRequest struct { AppID string `json:"app_id,omitempty"` ComponentName string `json:"component_name,omitempty"` }
ResetDatabasePasswordRequest struct for ResetDatabasePasswordRequest
func (*ResetDatabasePasswordRequest) GetAppID ¶ added in v1.109.0
func (r *ResetDatabasePasswordRequest) GetAppID() string
GetAppID returns the AppID field.
func (*ResetDatabasePasswordRequest) GetComponentName ¶ added in v1.109.0
func (r *ResetDatabasePasswordRequest) GetComponentName() string
GetComponentName returns the ComponentName field.
type ResetDatabasePasswordResponse ¶ added in v1.109.0
type ResetDatabasePasswordResponse struct {
Deployment *Deployment `json:"deployment,omitempty"`
}
ResetDatabasePasswordResponse struct for ResetDatabasePasswordResponse
func (*ResetDatabasePasswordResponse) GetDeployment ¶ added in v1.109.0
func (r *ResetDatabasePasswordResponse) GetDeployment() *Deployment
GetDeployment returns the Deployment field.
type Resource ¶ added in v1.0.0
type Resource struct { ID string `json:"resource_id,omitempty"` Type ResourceType `json:"resource_type,omitempty"` }
Resource represent a single resource for associating/disassociating with tags
type ResourceType ¶ added in v1.0.0
type ResourceType string
ResourceType represents a class of resource, currently only droplet are supported
const ( // DropletResourceType holds the string representing our ResourceType of Droplet. DropletResourceType ResourceType = "droplet" // ImageResourceType holds the string representing our ResourceType of Image. ImageResourceType ResourceType = "image" // VolumeResourceType holds the string representing our ResourceType of Volume. VolumeResourceType ResourceType = "volume" // LoadBalancerResourceType holds the string representing our ResourceType of LoadBalancer. LoadBalancerResourceType ResourceType = "load_balancer" // VolumeSnapshotResourceType holds the string representing our ResourceType for storage Snapshots. VolumeSnapshotResourceType ResourceType = "volume_snapshot" // DatabaseResourceType holds the string representing our ResourceType of Database. DatabaseResourceType ResourceType = "database" )
type ResourceWithURN ¶ added in v1.6.0
type ResourceWithURN interface {
URN() string
}
ResourceWithURN is an interface for interfacing with the types that implement the URN method.
type Response ¶
type Response struct { *http.Response // Links that were returned with the response. These are parsed from // request body and not the header. Links *Links // Meta describes generic information about the response. Meta *Meta // Monitoring URI // Deprecated: This field is not populated. To poll for the status of a // newly created Droplet, use Links.Actions[0].HREF Monitor string Rate }
Response is a DigitalOcean response. This wraps the standard http.Response returned from DigitalOcean.
type RetryConfig ¶ added in v1.101.0
type RetryConfig struct { RetryMax int RetryWaitMin *float64 // Minimum time to wait RetryWaitMax *float64 // Maximum time to wait Logger interface{} // Customer logger instance. Must implement either go-retryablehttp.Logger or go-retryablehttp.LeveledLogger }
RetryConfig sets the values used for enabling retries and backoffs for requests that fail with 429 or 500-level response codes using the go-retryablehttp client. RetryConfig.RetryMax must be configured to enable this behavior. RetryConfig.RetryWaitMin and RetryConfig.RetryWaitMax are optional, with the default values being 1.0 and 30.0, respectively.
You can use
godo.PtrTo(1.0)
to explicitly set the RetryWaitMin and RetryWaitMax values.
Note: Opting to use the go-retryablehttp client will overwrite any custom HTTP client passed into New(). Only the oauth2.TokenSource and Timeout will be maintained.
type ServiceAddress ¶ added in v1.110.0
ServiceAddress represents a host:port for a generic service (e.g. metrics endpoint)
type ServiceKey ¶ added in v1.133.0
type ServiceKey struct {
ServiceKey string `json:"service_key,omitempty"`
}
ServiceKey represents the service key of a Partner Interconnect Attachment.
type ServingProtocol ¶ added in v1.128.0
type ServingProtocol string
ServingProtocol - HTTP: The app is serving the HTTP protocol. Default. - HTTP2: The app is serving the HTTP/2 protocol. Currently, this needs to be implemented in the service by serving HTTP/2 with prior knowledge.
const ( SERVINGPROTOCOL_HTTP ServingProtocol = "HTTP" SERVINGPROTOCOL_HTTP2 ServingProtocol = "HTTP2" )
List of ServingProtocol
type Size ¶
type Size struct { Slug string `json:"slug,omitempty"` Memory int `json:"memory,omitempty"` Vcpus int `json:"vcpus,omitempty"` Disk int `json:"disk,omitempty"` PriceMonthly float64 `json:"price_monthly,omitempty"` PriceHourly float64 `json:"price_hourly,omitempty"` Regions []string `json:"regions,omitempty"` Available bool `json:"available,omitempty"` Transfer float64 `json:"transfer,omitempty"` Description string `json:"description,omitempty"` GPUInfo *GPUInfo `json:"gpu_info,omitempty"` DiskInfo []DiskInfo `json:"disk_info,omitempty"` }
Size represents a DigitalOcean Size
type SizesService ¶
SizesService is an interface for interfacing with the size endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Sizes
type SizesServiceOp ¶ added in v0.3.0
type SizesServiceOp struct {
// contains filtered or unexported fields
}
SizesServiceOp handles communication with the size related methods of the DigitalOcean API.
func (*SizesServiceOp) List ¶ added in v0.3.0
func (s *SizesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Size, *Response, error)
List all images
type SlackDetails ¶ added in v1.64.0
SlackDetails represents the details required to send a slack alert
type Snapshot ¶ added in v1.0.0
type Snapshot struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` ResourceID string `json:"resource_id,omitempty"` ResourceType string `json:"resource_type,omitempty"` Regions []string `json:"regions,omitempty"` MinDiskSize int `json:"min_disk_size,omitempty"` SizeGigaBytes float64 `json:"size_gigabytes,omitempty"` Created string `json:"created_at,omitempty"` Tags []string `json:"tags,omitempty"` }
Snapshot represents a DigitalOcean Snapshot
type SnapshotCreateRequest ¶ added in v1.0.0
type SnapshotCreateRequest struct { VolumeID string `json:"volume_id"` Name string `json:"name"` Description string `json:"description"` Tags []string `json:"tags"` }
SnapshotCreateRequest represents a request to create a block store volume.
type SnapshotsService ¶ added in v1.0.0
type SnapshotsService interface { List(context.Context, *ListOptions) ([]Snapshot, *Response, error) ListVolume(context.Context, *ListOptions) ([]Snapshot, *Response, error) ListDroplet(context.Context, *ListOptions) ([]Snapshot, *Response, error) Get(context.Context, string) (*Snapshot, *Response, error) Delete(context.Context, string) (*Response, error) }
SnapshotsService is an interface for interfacing with the snapshots endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Snapshots
type SnapshotsServiceOp ¶ added in v1.0.0
type SnapshotsServiceOp struct {
// contains filtered or unexported fields
}
SnapshotsServiceOp handles communication with the snapshot related methods of the DigitalOcean API.
func (*SnapshotsServiceOp) Get ¶ added in v1.0.0
func (s *SnapshotsServiceOp) Get(ctx context.Context, snapshotID string) (*Snapshot, *Response, error)
Get retrieves a snapshot by id.
func (*SnapshotsServiceOp) List ¶ added in v1.0.0
func (s *SnapshotsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Snapshot, *Response, error)
List lists all the snapshots available.
func (*SnapshotsServiceOp) ListDroplet ¶ added in v1.0.0
func (s *SnapshotsServiceOp) ListDroplet(ctx context.Context, opt *ListOptions) ([]Snapshot, *Response, error)
ListDroplet lists all the Droplet snapshots.
func (*SnapshotsServiceOp) ListVolume ¶ added in v1.0.0
func (s *SnapshotsServiceOp) ListVolume(ctx context.Context, opt *ListOptions) ([]Snapshot, *Response, error)
ListVolume lists all the volume snapshots.
type SourceSpec ¶ added in v1.85.0
type SourceSpec interface {
GetType() AppSourceType
}
SourceSpec represents a source.
type Sources ¶ added in v1.1.0
type Sources struct { Addresses []string `json:"addresses,omitempty"` Tags []string `json:"tags,omitempty"` DropletIDs []int `json:"droplet_ids,omitempty"` LoadBalancerUIDs []string `json:"load_balancer_uids,omitempty"` KubernetesIDs []string `json:"kubernetes_ids,omitempty"` }
Sources represents a DigitalOcean Firewall InboundRule sources.
type SpacesKey ¶ added in v1.134.0
type SpacesKey struct { Name string `json:"name"` AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Grants []*Grant `json:"grants"` CreatedAt string `json:"created_at"` }
SpacesKey represents a DigitalOcean Spaces key
type SpacesKeyCreateRequest ¶ added in v1.134.0
SpacesKeyCreateRequest represents a request to create a Spaces key.
type SpacesKeyPermission ¶ added in v1.134.0
type SpacesKeyPermission string
SpacesKeyPermission represents a permission for a Spaces grant
const ( // SpacesKeyRead grants read-only access to the Spaces bucket SpacesKeyRead SpacesKeyPermission = "read" // SpacesKeyReadWrite grants read and write access to the Spaces bucket SpacesKeyReadWrite SpacesKeyPermission = "readwrite" // SpacesKeyFullAccess grants full access to the Spaces bucket SpacesKeyFullAccess SpacesKeyPermission = "fullaccess" )
type SpacesKeyUpdateRequest ¶ added in v1.134.0
SpacesKeyUpdateRequest represents a request to update a Spaces key.
type SpacesKeysService ¶ added in v1.134.0
type SpacesKeysService interface { List(context.Context, *ListOptions) ([]*SpacesKey, *Response, error) Update(context.Context, string, *SpacesKeyUpdateRequest) (*SpacesKey, *Response, error) Create(context.Context, *SpacesKeyCreateRequest) (*SpacesKey, *Response, error) Delete(context.Context, string) (*Response, error) }
SpacesKeysService is an interface for managing Spaces keys with the DigitalOcean API.
type SpacesKeysServiceOp ¶ added in v1.134.0
type SpacesKeysServiceOp struct {
// contains filtered or unexported fields
}
SpacesKeysServiceOp handles communication with the Spaces key related methods of the DigitalOcean API.
func (*SpacesKeysServiceOp) Create ¶ added in v1.134.0
func (s *SpacesKeysServiceOp) Create(ctx context.Context, createRequest *SpacesKeyCreateRequest) (*SpacesKey, *Response, error)
Create creates a new Spaces key.
func (*SpacesKeysServiceOp) List ¶ added in v1.134.0
func (s *SpacesKeysServiceOp) List(ctx context.Context, opts *ListOptions) ([]*SpacesKey, *Response, error)
List returns a list of Spaces keys.
func (*SpacesKeysServiceOp) Update ¶ added in v1.134.0
func (s *SpacesKeysServiceOp) Update(ctx context.Context, accessKey string, updateRequest *SpacesKeyUpdateRequest) (*SpacesKey, *Response, error)
Update updates a Spaces key.
type StartGarbageCollectionRequest ¶ added in v1.54.0
type StartGarbageCollectionRequest struct {
Type GarbageCollectionType `json:"type"`
}
StartGarbageCollectionRequest represents options to a garbage collection start request.
type StickySessions ¶ added in v1.0.0
type StickySessions struct { Type string `json:"type,omitempty"` CookieName string `json:"cookie_name,omitempty"` CookieTtlSeconds int `json:"cookie_ttl_seconds,omitempty"` }
StickySessions represents optional load balancer session affinity rules.
func (StickySessions) String ¶ added in v1.0.0
func (s StickySessions) String() string
String creates a human-readable description of a StickySessions instance.
type StorageActionsService ¶ added in v1.0.0
type StorageActionsService interface { Attach(ctx context.Context, volumeID string, dropletID int) (*Action, *Response, error) DetachByDropletID(ctx context.Context, volumeID string, dropletID int) (*Action, *Response, error) Get(ctx context.Context, volumeID string, actionID int) (*Action, *Response, error) List(ctx context.Context, volumeID string, opt *ListOptions) ([]Action, *Response, error) Resize(ctx context.Context, volumeID string, sizeGigabytes int, regionSlug string) (*Action, *Response, error) }
StorageActionsService is an interface for interfacing with the storage actions endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Block-Storage-Actions
type StorageActionsServiceOp ¶ added in v1.0.0
type StorageActionsServiceOp struct {
// contains filtered or unexported fields
}
StorageActionsServiceOp handles communication with the storage volumes action related methods of the DigitalOcean API.
func (*StorageActionsServiceOp) Attach ¶ added in v1.0.0
func (s *StorageActionsServiceOp) Attach(ctx context.Context, volumeID string, dropletID int) (*Action, *Response, error)
Attach a storage volume to a Droplet.
func (*StorageActionsServiceOp) DetachByDropletID ¶ added in v1.0.0
func (s *StorageActionsServiceOp) DetachByDropletID(ctx context.Context, volumeID string, dropletID int) (*Action, *Response, error)
DetachByDropletID a storage volume from a Droplet by Droplet ID.
func (*StorageActionsServiceOp) Get ¶ added in v1.0.0
func (s *StorageActionsServiceOp) Get(ctx context.Context, volumeID string, actionID int) (*Action, *Response, error)
Get an action for a particular storage volume by id.
func (*StorageActionsServiceOp) List ¶ added in v1.0.0
func (s *StorageActionsServiceOp) List(ctx context.Context, volumeID string, opt *ListOptions) ([]Action, *Response, error)
List the actions for a particular storage volume.
type StorageAttachment ¶ added in v1.0.0
type StorageAttachment struct {
DropletID int `json:"droplet_id"`
}
StorageAttachment represents the attachment of a block storage volume to a specific Droplet under the device name.
type StorageService ¶ added in v1.0.0
type StorageService interface { ListVolumes(context.Context, *ListVolumeParams) ([]Volume, *Response, error) GetVolume(context.Context, string) (*Volume, *Response, error) CreateVolume(context.Context, *VolumeCreateRequest) (*Volume, *Response, error) DeleteVolume(context.Context, string) (*Response, error) ListSnapshots(ctx context.Context, volumeID string, opts *ListOptions) ([]Snapshot, *Response, error) GetSnapshot(context.Context, string) (*Snapshot, *Response, error) CreateSnapshot(context.Context, *SnapshotCreateRequest) (*Snapshot, *Response, error) DeleteSnapshot(context.Context, string) (*Response, error) }
StorageService is an interface for interfacing with the storage endpoints of the Digital Ocean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Block-Storage
type StorageServiceOp ¶ added in v1.0.0
type StorageServiceOp struct {
// contains filtered or unexported fields
}
StorageServiceOp handles communication with the storage volumes related methods of the DigitalOcean API.
func (*StorageServiceOp) CreateSnapshot ¶ added in v1.0.0
func (svc *StorageServiceOp) CreateSnapshot(ctx context.Context, createRequest *SnapshotCreateRequest) (*Snapshot, *Response, error)
CreateSnapshot creates a snapshot of a storage volume.
func (*StorageServiceOp) CreateVolume ¶ added in v1.0.0
func (svc *StorageServiceOp) CreateVolume(ctx context.Context, createRequest *VolumeCreateRequest) (*Volume, *Response, error)
CreateVolume creates a storage volume. The name must be unique.
func (*StorageServiceOp) DeleteSnapshot ¶ added in v1.0.0
DeleteSnapshot deletes a snapshot.
func (*StorageServiceOp) DeleteVolume ¶ added in v1.0.0
DeleteVolume deletes a storage volume.
func (*StorageServiceOp) GetSnapshot ¶ added in v1.0.0
func (svc *StorageServiceOp) GetSnapshot(ctx context.Context, id string) (*Snapshot, *Response, error)
GetSnapshot retrieves an individual snapshot.
func (*StorageServiceOp) GetVolume ¶ added in v1.0.0
GetVolume retrieves an individual storage volume.
func (*StorageServiceOp) ListSnapshots ¶ added in v1.0.0
func (svc *StorageServiceOp) ListSnapshots(ctx context.Context, volumeID string, opt *ListOptions) ([]Snapshot, *Response, error)
ListSnapshots lists all snapshots related to a storage volume.
func (*StorageServiceOp) ListVolumes ¶ added in v1.0.0
func (svc *StorageServiceOp) ListVolumes(ctx context.Context, params *ListVolumeParams) ([]Volume, *Response, error)
ListVolumes lists all storage volumes.
type SupportedBackupPolicy ¶ added in v1.129.0
type SupportedBackupPolicy struct { Name string `json:"name,omitempty"` PossibleWindowStarts []int `json:"possible_window_starts,omitempty"` WindowLengthHours int `json:"window_length_hours,omitempty"` RetentionPeriodDays int `json:"retention_period_days,omitempty"` PossibleDays []string `json:"possible_days,omitempty"` }
type Tag ¶ added in v1.0.0
type Tag struct { Name string `json:"name,omitempty"` Resources *TaggedResources `json:"resources,omitempty"` }
Tag represent DigitalOcean tag
type TagCreateRequest ¶ added in v1.0.0
type TagCreateRequest struct {
Name string `json:"name"`
}
TagCreateRequest represents the JSON structure of a request of that type.
type TagResourcesRequest ¶ added in v1.0.0
type TagResourcesRequest struct {
Resources []Resource `json:"resources"`
}
TagResourcesRequest represents the JSON structure of a request of that type.
type TaggedDatabasesResources ¶ added in v1.29.0
type TaggedDatabasesResources TaggedResourcesData
TaggedDatabasesResources represent the database resources a tag is attached to
type TaggedDropletsResources ¶ added in v1.0.0
type TaggedDropletsResources struct { Count int `json:"count,float64,omitempty"` LastTagged *Droplet `json:"last_tagged,omitempty"` LastTaggedURI string `json:"last_tagged_uri,omitempty"` }
TaggedDropletsResources represent the droplet resources a tag is attached to
type TaggedImagesResources ¶ added in v1.5.0
type TaggedImagesResources TaggedResourcesData
TaggedImagesResources represent the image resources a tag is attached to
type TaggedResources ¶ added in v1.0.0
type TaggedResources struct { Count int `json:"count"` LastTaggedURI string `json:"last_tagged_uri,omitempty"` Droplets *TaggedDropletsResources `json:"droplets,omitempty"` Images *TaggedImagesResources `json:"images"` Volumes *TaggedVolumesResources `json:"volumes"` VolumeSnapshots *TaggedVolumeSnapshotsResources `json:"volume_snapshots"` Databases *TaggedDatabasesResources `json:"databases"` }
TaggedResources represent the set of resources a tag is attached to
type TaggedResourcesData ¶ added in v1.7.5
type TaggedResourcesData struct { Count int `json:"count,float64,omitempty"` LastTaggedURI string `json:"last_tagged_uri,omitempty"` }
TaggedResourcesData represent the generic resources a tag is attached to
type TaggedVolumeSnapshotsResources ¶ added in v1.29.0
type TaggedVolumeSnapshotsResources TaggedResourcesData
TaggedVolumeSnapshotsResources represent the volume snapshot resources a tag is attached to
type TaggedVolumesResources ¶ added in v1.7.5
type TaggedVolumesResources TaggedResourcesData
TaggedVolumesResources represent the volume resources a tag is attached to
type TagsService ¶ added in v1.0.0
type TagsService interface { List(context.Context, *ListOptions) ([]Tag, *Response, error) Get(context.Context, string) (*Tag, *Response, error) Create(context.Context, *TagCreateRequest) (*Tag, *Response, error) Delete(context.Context, string) (*Response, error) TagResources(context.Context, string, *TagResourcesRequest) (*Response, error) UntagResources(context.Context, string, *UntagResourcesRequest) (*Response, error) }
TagsService is an interface for interfacing with the tags endpoints of the DigitalOcean API See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Tags
type TagsServiceOp ¶ added in v1.0.0
type TagsServiceOp struct {
// contains filtered or unexported fields
}
TagsServiceOp handles communication with tag related method of the DigitalOcean API.
func (*TagsServiceOp) Create ¶ added in v1.0.0
func (s *TagsServiceOp) Create(ctx context.Context, createRequest *TagCreateRequest) (*Tag, *Response, error)
Create a new tag
func (*TagsServiceOp) List ¶ added in v1.0.0
func (s *TagsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Tag, *Response, error)
List all tags
func (*TagsServiceOp) TagResources ¶ added in v1.0.0
func (s *TagsServiceOp) TagResources(ctx context.Context, name string, tagRequest *TagResourcesRequest) (*Response, error)
TagResources associates resources with a given Tag.
func (*TagsServiceOp) UntagResources ¶ added in v1.0.0
func (s *TagsServiceOp) UntagResources(ctx context.Context, name string, untagRequest *UntagResourcesRequest) (*Response, error)
UntagResources dissociates resources with a given Tag.
type Taint ¶ added in v1.45.0
Taint represents a Kubernetes taint that can be associated with a node pool (and, transitively, with all nodes of that pool).
type Timestamp ¶
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or Unix timestamp. All exported methods of time.Time can be called on Timestamp.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. Time is expected in RFC3339 or Unix format.
type ToggleDatabaseTrustedSourceOptions ¶ added in v1.109.0
type ToggleDatabaseTrustedSourceOptions struct { // Enable, if true, indicates the database should enable the trusted sources firewall. Enable bool }
ToggleDatabaseTrustedSourceOptions provides optional parameters for ToggleDatabaseTrustedSource.
type ToggleDatabaseTrustedSourceRequest ¶ added in v1.109.0
type ToggleDatabaseTrustedSourceRequest struct { AppID string `json:"app_id,omitempty"` ComponentName string `json:"component_name,omitempty"` Enable bool `json:"enable,omitempty"` }
ToggleDatabaseTrustedSourceRequest struct for ToggleDatabaseTrustedSourceRequest
func (*ToggleDatabaseTrustedSourceRequest) GetAppID ¶ added in v1.109.0
func (t *ToggleDatabaseTrustedSourceRequest) GetAppID() string
GetAppID returns the AppID field.
func (*ToggleDatabaseTrustedSourceRequest) GetComponentName ¶ added in v1.109.0
func (t *ToggleDatabaseTrustedSourceRequest) GetComponentName() string
GetComponentName returns the ComponentName field.
func (*ToggleDatabaseTrustedSourceRequest) GetEnable ¶ added in v1.109.0
func (t *ToggleDatabaseTrustedSourceRequest) GetEnable() bool
GetEnable returns the Enable field.
type ToggleDatabaseTrustedSourceResponse ¶ added in v1.109.0
type ToggleDatabaseTrustedSourceResponse struct {
IsEnabled bool `json:"is_enabled,omitempty"`
}
ToggleDatabaseTrustedSourceResponse struct for ToggleDatabaseTrustedSourceResponse
func (*ToggleDatabaseTrustedSourceResponse) GetIsEnabled ¶ added in v1.109.0
func (t *ToggleDatabaseTrustedSourceResponse) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field.
type TokenListOptions ¶ added in v1.73.0
type TokenListOptions struct { // For paginated result sets, page of results to retrieve. Page int `url:"page,omitempty"` // For paginated result sets, the number of results to include per page. PerPage int `url:"per_page,omitempty"` // For paginated result sets which support tokens, the token provided by the last set // of results in order to retrieve the next set of results. This is expected to be faster // than incrementing or decrementing the page number. Token string `url:"page_token,omitempty"` }
TokenListOptions specifies the optional parameters to various List methods that support token pagination.
type TopicConfig ¶ added in v1.103.0
type TopicConfig struct { CleanupPolicy string `json:"cleanup_policy,omitempty"` CompressionType string `json:"compression_type,omitempty"` DeleteRetentionMS *uint64 `json:"delete_retention_ms,omitempty"` FileDeleteDelayMS *uint64 `json:"file_delete_delay_ms,omitempty"` FlushMessages *uint64 `json:"flush_messages,omitempty"` FlushMS *uint64 `json:"flush_ms,omitempty"` IndexIntervalBytes *uint64 `json:"index_interval_bytes,omitempty"` MaxCompactionLagMS *uint64 `json:"max_compaction_lag_ms,omitempty"` MaxMessageBytes *uint64 `json:"max_message_bytes,omitempty"` MessageDownConversionEnable *bool `json:"message_down_conversion_enable,omitempty"` MessageFormatVersion string `json:"message_format_version,omitempty"` MessageTimestampDifferenceMaxMS *uint64 `json:"message_timestamp_difference_max_ms,omitempty"` MessageTimestampType string `json:"message_timestamp_type,omitempty"` MinCleanableDirtyRatio *float32 `json:"min_cleanable_dirty_ratio,omitempty"` MinCompactionLagMS *uint64 `json:"min_compaction_lag_ms,omitempty"` MinInsyncReplicas *uint32 `json:"min_insync_replicas,omitempty"` Preallocate *bool `json:"preallocate,omitempty"` RetentionBytes *int64 `json:"retention_bytes,omitempty"` RetentionMS *int64 `json:"retention_ms,omitempty"` SegmentBytes *uint64 `json:"segment_bytes,omitempty"` SegmentIndexBytes *uint64 `json:"segment_index_bytes,omitempty"` SegmentJitterMS *uint64 `json:"segment_jitter_ms,omitempty"` SegmentMS *uint64 `json:"segment_ms,omitempty"` }
TopicConfig represents all configurable options for a Kafka topic
type TopicConsumerGroup ¶ added in v1.105.0
type TopicConsumerGroup struct { Name string `json:"name,omitempty"` Offset uint64 `json:"offset,omitempty"` }
TopicConsumerGroup represents a consumer group for a particular Kafka topic
type TopicPartition ¶ added in v1.105.0
type TopicPartition struct { EarliestOffset uint64 `json:"earliest_offset,omitempty"` InSyncReplicas uint32 `json:"in_sync_replicas,omitempty"` Id uint32 `json:"id,omitempty"` Size uint64 `json:"size,omitempty"` ConsumerGroups []*TopicConsumerGroup `json:"consumer_groups,omitempty"` }
TopicPartition represents the state of a Kafka topic partition
type TriggerScheduledDetails ¶ added in v1.92.0
type TriggerScheduledRuns ¶ added in v1.92.0
type UntagResourcesRequest ¶ added in v1.0.0
type UntagResourcesRequest struct {
Resources []Resource `json:"resources"`
}
UntagResourcesRequest represents the JSON structure of a request of that type.
type UpdateGarbageCollectionRequest ¶ added in v1.50.0
type UpdateGarbageCollectionRequest struct {
Cancel bool `json:"cancel"`
}
UpdateGarbageCollectionRequest represents a request to update a garbage collection.
type UpdateProjectRequest ¶ added in v1.6.0
type UpdateProjectRequest struct { Name interface{} Description interface{} Purpose interface{} Environment interface{} IsDefault interface{} }
UpdateProjectRequest represents the request to update project information. This type expects certain attribute types, but is built this way to allow nil values as well. See `updateProjectRequest` for the "real" types.
func (*UpdateProjectRequest) MarshalJSON ¶ added in v1.6.0
func (upr *UpdateProjectRequest) MarshalJSON() ([]byte, error)
MarshalJSON takes an UpdateRequest and converts it to the "typed" request which is sent to the projects API. This is a PATCH request, which allows partial attributes, so `null` values are OK.
type UpdateUptimeAlertRequest ¶ added in v1.94.0
type UpdateUptimeAlertRequest struct { Name string `json:"name"` Type string `json:"type"` Threshold int `json:"threshold"` Comparison UptimeAlertComp `json:"comparison"` Notifications *Notifications `json:"notifications"` Period string `json:"period"` }
UpdateUptimeAlertRequest represents the request to update an alert.
type UpdateUptimeCheckRequest ¶ added in v1.94.0
type UpdateUptimeCheckRequest struct { Name string `json:"name"` Type string `json:"type"` Target string `json:"target"` Regions []string `json:"regions"` Enabled bool `json:"enabled"` }
UpdateUptimeCheckRequest represents the request to update uptime check information.
type UpgradeBuildpackOptions ¶ added in v1.88.0
type UpgradeBuildpackOptions struct { // The ID of the buildpack to upgrade. BuildpackID string `json:"buildpack_id,omitempty"` // The Major Version to upgrade the buildpack to. If omitted, the latest available major version will be used. MajorVersion int32 `json:"major_version,omitempty"` // Whether or not to trigger a deployment for the app after upgrading the buildpack. TriggerDeployment bool `json:"trigger_deployment,omitempty"` }
UpgradeBuildpackOptions struct for UpgradeBuildpackOptions
type UpgradeBuildpackResponse ¶ added in v1.85.0
type UpgradeBuildpackResponse struct { // The components that were affected by the upgrade. AffectedComponents []string `json:"affected_components,omitempty"` Deployment *Deployment `json:"deployment,omitempty"` }
UpgradeBuildpackResponse struct for UpgradeBuildpackResponse
func (*UpgradeBuildpackResponse) GetAffectedComponents ¶ added in v1.85.0
func (u *UpgradeBuildpackResponse) GetAffectedComponents() []string
GetAffectedComponents returns the AffectedComponents field.
func (*UpgradeBuildpackResponse) GetDeployment ¶ added in v1.85.0
func (u *UpgradeBuildpackResponse) GetDeployment() *Deployment
GetDeployment returns the Deployment field.
type UpgradeVersionRequest ¶ added in v1.95.0
type UpgradeVersionRequest struct {
Version string `json:"version"`
}
type UptimeAlert ¶ added in v1.94.0
type UptimeAlert struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` Threshold int `json:"threshold"` Comparison UptimeAlertComp `json:"comparison"` Notifications *Notifications `json:"notifications"` Period string `json:"period"` }
UptimeAlert represents a DigitalOcean Uptime Alert configuration.
type UptimeAlertComp ¶ added in v1.104.0
type UptimeAlertComp string
UptimeAlertComp represents an uptime alert comparison operation
const ( // UptimeAlertGreaterThan is the comparison > UptimeAlertGreaterThan UptimeAlertComp = "greater_than" // UptimeAlertLessThan is the comparison < UptimeAlertLessThan UptimeAlertComp = "less_than" )
type UptimeCheck ¶ added in v1.94.0
type UptimeCheck struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` Target string `json:"target"` Regions []string `json:"regions"` Enabled bool `json:"enabled"` }
UptimeCheck represents a DigitalOcean UptimeCheck configuration.
type UptimeCheckState ¶ added in v1.94.0
type UptimeCheckState struct { Regions map[string]UptimeRegion `json:"regions"` PreviousOutage UptimePreviousOutage `json:"previous_outage"` }
UptimeCheckState represents a DigitalOcean Uptime Check's state configuration.
type UptimeChecksService ¶ added in v1.94.0
type UptimeChecksService interface { List(context.Context, *ListOptions) ([]UptimeCheck, *Response, error) Get(context.Context, string) (*UptimeCheck, *Response, error) GetState(context.Context, string) (*UptimeCheckState, *Response, error) Create(context.Context, *CreateUptimeCheckRequest) (*UptimeCheck, *Response, error) Update(context.Context, string, *UpdateUptimeCheckRequest) (*UptimeCheck, *Response, error) Delete(context.Context, string) (*Response, error) GetAlert(context.Context, string, string) (*UptimeAlert, *Response, error) ListAlerts(context.Context, string, *ListOptions) ([]UptimeAlert, *Response, error) CreateAlert(context.Context, string, *CreateUptimeAlertRequest) (*UptimeAlert, *Response, error) UpdateAlert(context.Context, string, string, *UpdateUptimeAlertRequest) (*UptimeAlert, *Response, error) DeleteAlert(context.Context, string, string) (*Response, error) }
UptimeChecksService is an interface for creating and managing Uptime checks with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Uptime
type UptimeChecksServiceOp ¶ added in v1.94.0
type UptimeChecksServiceOp struct {
// contains filtered or unexported fields
}
UptimeChecksServiceOp handles communication with Uptime Check methods of the DigitalOcean API.
func (*UptimeChecksServiceOp) Create ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) Create(ctx context.Context, cr *CreateUptimeCheckRequest) (*UptimeCheck, *Response, error)
Create a new uptime check.
func (*UptimeChecksServiceOp) CreateAlert ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) CreateAlert(ctx context.Context, uptimeCheckID string, cr *CreateUptimeAlertRequest) (*UptimeAlert, *Response, error)
CreateAlert creates a new check alert.
func (*UptimeChecksServiceOp) Delete ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) Delete(ctx context.Context, uptimeCheckID string) (*Response, error)
Delete an existing uptime check.
func (*UptimeChecksServiceOp) DeleteAlert ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) DeleteAlert(ctx context.Context, uptimeCheckID string, alertID string) (*Response, error)
DeleteAlert deletes an existing check's alert.
func (*UptimeChecksServiceOp) Get ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) Get(ctx context.Context, uptimeCheckID string) (*UptimeCheck, *Response, error)
Get retrieves a single uptime check by its ID.
func (*UptimeChecksServiceOp) GetAlert ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) GetAlert(ctx context.Context, uptimeCheckID string, alertID string) (*UptimeAlert, *Response, error)
GetAlert retrieves a single uptime check alert by its ID.
func (*UptimeChecksServiceOp) GetState ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) GetState(ctx context.Context, uptimeCheckID string) (*UptimeCheckState, *Response, error)
GetState of uptime check.
func (*UptimeChecksServiceOp) List ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) List(ctx context.Context, opts *ListOptions) ([]UptimeCheck, *Response, error)
List Checks.
func (*UptimeChecksServiceOp) ListAlerts ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) ListAlerts(ctx context.Context, uptimeCheckID string, opts *ListOptions) ([]UptimeAlert, *Response, error)
ListAlerts lists alerts for a check.
func (*UptimeChecksServiceOp) Update ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) Update(ctx context.Context, uptimeCheckID string, ur *UpdateUptimeCheckRequest) (*UptimeCheck, *Response, error)
Update an uptime check.
func (*UptimeChecksServiceOp) UpdateAlert ¶ added in v1.94.0
func (p *UptimeChecksServiceOp) UpdateAlert(ctx context.Context, uptimeCheckID string, alertID string, ur *UpdateUptimeAlertRequest) (*UptimeAlert, *Response, error)
UpdateAlert updates an check's alert.
type UptimePreviousOutage ¶ added in v1.94.0
type UptimePreviousOutage struct { Region string `json:"region"` StartedAt string `json:"started_at"` EndedAt string `json:"ended_at"` DurationSeconds int `json:"duration_seconds"` }
UptimePreviousOutage represents a DigitalOcean Uptime Check's previous outage configuration.
type UptimeRegion ¶ added in v1.94.0
type VCSSourceSpec ¶ added in v1.85.0
type VCSSourceSpec interface { SourceSpec GetRepo() string GetBranch() string }
VCSSourceSpec represents a VCS source.
type VPC ¶ added in v1.11.0
type VPC struct { ID string `json:"id,omitempty"` URN string `json:"urn"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` IPRange string `json:"ip_range,omitempty"` RegionSlug string `json:"region,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Default bool `json:"default,omitempty"` }
VPC represents a DigitalOcean Virtual Private Cloud configuration.
type VPCCreateRequest ¶ added in v1.11.0
type VPCCreateRequest struct { Name string `json:"name,omitempty"` RegionSlug string `json:"region,omitempty"` Description string `json:"description,omitempty"` IPRange string `json:"ip_range,omitempty"` }
VPCCreateRequest represents a request to create a Virtual Private Cloud.
type VPCListMembersRequest ¶ added in v1.59.0
type VPCListMembersRequest struct {
ResourceType string `url:"resource_type,omitempty"`
}
type VPCPeering ¶ added in v1.116.0
type VPCPeering struct { // ID is the generated ID of the VPC Peering ID string `json:"id"` // Name is the name of the VPC Peering Name string `json:"name"` // VPCIDs is the IDs of the pair of VPCs between which a peering is created VPCIDs []string `json:"vpc_ids"` // CreatedAt is time when this VPC Peering was first created CreatedAt time.Time `json:"created_at"` // Status is the status of the VPC Peering Status string `json:"status"` }
VPCPeering represents a DigitalOcean Virtual Private Cloud Peering configuration.
type VPCPeeringCreateRequest ¶ added in v1.116.0
type VPCPeeringCreateRequest struct { // Name is the name of the VPC Peering Name string `json:"name"` // VPCIDs is the IDs of the pair of VPCs between which a peering is created VPCIDs []string `json:"vpc_ids"` }
VPCPeeringCreateRequest represents a request to create a Virtual Private Cloud Peering for a list of associated VPC IDs.
type VPCPeeringCreateRequestByVPCID ¶ added in v1.116.0
type VPCPeeringCreateRequestByVPCID struct { // Name is the name of the VPC Peering Name string `json:"name"` // VPCID is the ID of one of the VPCs with which the peering has to be created VPCID string `json:"vpc_id"` }
VPCPeeringCreateRequestByVPCID represents a request to create a Virtual Private Cloud Peering for an associated VPC ID.
type VPCPeeringUpdateRequest ¶ added in v1.116.0
type VPCPeeringUpdateRequest struct { // Name is the name of the VPC Peering Name string `json:"name"` }
VPCPeeringUpdateRequest represents a request to update a Virtual Private Cloud Peering.
type VPCSetDescription ¶ added in v1.34.0
type VPCSetDescription string
VPCSetDescription is used when one want to set the `description` field of a VPC. Ex.: VPCs.Set(..., VPCSetDescription("vpc description"))
type VPCSetField ¶ added in v1.11.0
type VPCSetField interface {
// contains filtered or unexported methods
}
VPCSetField allows one to set individual fields within a VPC configuration.
func VPCSetDefault ¶ added in v1.50.0
func VPCSetDefault() VPCSetField
VPCSetDefault is used when one wants to enable the `default` field of a VPC, to set a VPC as the default one in the region Ex.: VPCs.Set(..., VPCSetDefault())
type VPCSetName ¶ added in v1.11.0
type VPCSetName string
VPCSetName is used when one want to set the `name` field of a VPC. Ex.: VPCs.Set(..., VPCSetName("new-name"))
type VPCUpdateRequest ¶ added in v1.11.0
type VPCUpdateRequest struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Default *bool `json:"default,omitempty"` }
VPCUpdateRequest represents a request to update a Virtual Private Cloud.
type VPCsService ¶ added in v1.11.0
type VPCsService interface { Create(context.Context, *VPCCreateRequest) (*VPC, *Response, error) Get(context.Context, string) (*VPC, *Response, error) List(context.Context, *ListOptions) ([]*VPC, *Response, error) ListMembers(context.Context, string, *VPCListMembersRequest, *ListOptions) ([]*VPCMember, *Response, error) Update(context.Context, string, *VPCUpdateRequest) (*VPC, *Response, error) Set(context.Context, string, ...VPCSetField) (*VPC, *Response, error) Delete(context.Context, string) (*Response, error) CreateVPCPeering(context.Context, *VPCPeeringCreateRequest) (*VPCPeering, *Response, error) GetVPCPeering(context.Context, string) (*VPCPeering, *Response, error) ListVPCPeerings(context.Context, *ListOptions) ([]*VPCPeering, *Response, error) UpdateVPCPeering(context.Context, string, *VPCPeeringUpdateRequest) (*VPCPeering, *Response, error) DeleteVPCPeering(context.Context, string) (*Response, error) CreateVPCPeeringByVPCID(context.Context, string, *VPCPeeringCreateRequestByVPCID) (*VPCPeering, *Response, error) ListVPCPeeringsByVPCID(context.Context, string, *ListOptions) ([]*VPCPeering, *Response, error) UpdateVPCPeeringByVPCID(context.Context, string, string, *VPCPeeringUpdateRequest) (*VPCPeering, *Response, error) }
VPCsService is an interface for managing Virtual Private Cloud configurations with the DigitalOcean API. See: https://docs.digitalocean.com/reference/api/api-reference/#tag/VPCs
type VPCsServiceOp ¶ added in v1.11.0
type VPCsServiceOp struct {
// contains filtered or unexported fields
}
VPCsServiceOp interfaces with VPC endpoints in the DigitalOcean API.
func (*VPCsServiceOp) Create ¶ added in v1.11.0
func (v *VPCsServiceOp) Create(ctx context.Context, create *VPCCreateRequest) (*VPC, *Response, error)
Create creates a new Virtual Private Cloud.
func (*VPCsServiceOp) CreateVPCPeering ¶ added in v1.116.0
func (v *VPCsServiceOp) CreateVPCPeering(ctx context.Context, create *VPCPeeringCreateRequest) (*VPCPeering, *Response, error)
CreateVPCPeering creates a new Virtual Private Cloud Peering.
func (*VPCsServiceOp) CreateVPCPeeringByVPCID ¶ added in v1.116.0
func (v *VPCsServiceOp) CreateVPCPeeringByVPCID(ctx context.Context, id string, create *VPCPeeringCreateRequestByVPCID) (*VPCPeering, *Response, error)
CreateVPCPeeringByVPCID creates a new Virtual Private Cloud Peering for requested VPC ID.
func (*VPCsServiceOp) Delete ¶ added in v1.11.0
Delete deletes a Virtual Private Cloud. There is no way to recover a VPC once it has been destroyed.
func (*VPCsServiceOp) DeleteVPCPeering ¶ added in v1.116.0
DeleteVPCPeering deletes a Virtual Private Cloud Peering.
func (*VPCsServiceOp) GetVPCPeering ¶ added in v1.116.0
func (v *VPCsServiceOp) GetVPCPeering(ctx context.Context, id string) (*VPCPeering, *Response, error)
GetVPCPeering retrieves a Virtual Private Cloud Peering.
func (*VPCsServiceOp) List ¶ added in v1.11.0
func (v *VPCsServiceOp) List(ctx context.Context, opt *ListOptions) ([]*VPC, *Response, error)
List returns a list of the caller's VPCs, with optional pagination.
func (*VPCsServiceOp) ListMembers ¶ added in v1.59.0
func (v *VPCsServiceOp) ListMembers(ctx context.Context, id string, request *VPCListMembersRequest, opt *ListOptions) ([]*VPCMember, *Response, error)
func (*VPCsServiceOp) ListVPCPeerings ¶ added in v1.116.0
func (v *VPCsServiceOp) ListVPCPeerings(ctx context.Context, opt *ListOptions) ([]*VPCPeering, *Response, error)
ListVPCPeerings lists all Virtual Private Cloud Peerings.
func (*VPCsServiceOp) ListVPCPeeringsByVPCID ¶ added in v1.116.0
func (v *VPCsServiceOp) ListVPCPeeringsByVPCID(ctx context.Context, id string, opt *ListOptions) ([]*VPCPeering, *Response, error)
ListVPCPeeringsByVPCID lists all Virtual Private Cloud Peerings for requested VPC ID.
func (*VPCsServiceOp) Set ¶ added in v1.11.0
func (v *VPCsServiceOp) Set(ctx context.Context, id string, fields ...VPCSetField) (*VPC, *Response, error)
Set updates specific properties of a Virtual Private Cloud.
func (*VPCsServiceOp) Update ¶ added in v1.11.0
func (v *VPCsServiceOp) Update(ctx context.Context, id string, update *VPCUpdateRequest) (*VPC, *Response, error)
Update updates a Virtual Private Cloud's properties.
func (*VPCsServiceOp) UpdateVPCPeering ¶ added in v1.116.0
func (v *VPCsServiceOp) UpdateVPCPeering(ctx context.Context, id string, update *VPCPeeringUpdateRequest) (*VPCPeering, *Response, error)
UpdateVPCPeering updates a Virtual Private Cloud Peering.
func (*VPCsServiceOp) UpdateVPCPeeringByVPCID ¶ added in v1.116.0
func (v *VPCsServiceOp) UpdateVPCPeeringByVPCID(ctx context.Context, vpcID, peerID string, update *VPCPeeringUpdateRequest) (*VPCPeering, *Response, error)
UpdateVPCPeeringByVPCID updates a Virtual Private Cloud Peering for requested VPC ID.
type VRAM ¶ added in v1.129.0
VRAM provides information about the amount of VRAM available to the GPU.
type Volume ¶ added in v1.0.0
type Volume struct { ID string `json:"id"` Region *Region `json:"region"` Name string `json:"name"` SizeGigaBytes int64 `json:"size_gigabytes"` Description string `json:"description"` DropletIDs []int `json:"droplet_ids"` CreatedAt time.Time `json:"created_at"` FilesystemType string `json:"filesystem_type"` FilesystemLabel string `json:"filesystem_label"` Tags []string `json:"tags"` }
Volume represents a Digital Ocean block store volume.
type VolumeCreateRequest ¶ added in v1.0.0
type VolumeCreateRequest struct { Region string `json:"region"` Name string `json:"name"` Description string `json:"description"` SizeGigaBytes int64 `json:"size_gigabytes"` SnapshotID string `json:"snapshot_id"` FilesystemType string `json:"filesystem_type"` FilesystemLabel string `json:"filesystem_label"` Tags []string `json:"tags"` }
VolumeCreateRequest represents a request to create a block store volume.
Source Files
¶
- 1-click.go
- account.go
- action.go
- apps.gen.go
- apps.go
- apps_accessors.go
- balance.go
- billing_history.go
- cdn.go
- certificates.go
- databases.go
- doc.go
- domains.go
- droplet_actions.go
- droplet_autoscale.go
- droplets.go
- errors.go
- firewalls.go
- floating_ips.go
- floating_ips_actions.go
- functions.go
- godo.go
- image_actions.go
- images.go
- invoices.go
- keys.go
- kubernetes.go
- links.go
- load_balancers.go
- meta.go
- monitoring.go
- partner_interconnect_attachments.go
- projects.go
- regions.go
- registry.go
- reserved_ips.go
- reserved_ips_actions.go
- reserved_ipv6.go
- reserved_ipv6_actions.go
- sizes.go
- snapshots.go
- spaces_keys.go
- storage.go
- storage_actions.go
- strings.go
- tags.go
- timestamp.go
- uptime.go
- vpc_peerings.go
- vpcs.go
Directories
¶
Path | Synopsis |
---|---|
Package metrics is a minimal copy of github.com/prometheus/common/model providing types to work with the Prometheus-style results in a DigitalOcean Monitoring metrics response.
|
Package metrics is a minimal copy of github.com/prometheus/common/model providing types to work with the Prometheus-style results in a DigitalOcean Monitoring metrics response. |