Documentation
¶
Index ¶
- func DeploymentStatusTypeChoices() []string
- func ServiceFlinkApplicationDeploymentStatusTypeChoices() []string
- type DeploymentOut
- type DeploymentStatusType
- type FlinkApplicationDeploymentHandler
- func (h *FlinkApplicationDeploymentHandler) ServiceFlinkCancelApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, ...) (*ServiceFlinkCancelApplicationDeploymentOut, error)
- func (h *FlinkApplicationDeploymentHandler) ServiceFlinkCreateApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, ...) (*ServiceFlinkCreateApplicationDeploymentOut, error)
- func (h *FlinkApplicationDeploymentHandler) ServiceFlinkDeleteApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, ...) (*ServiceFlinkDeleteApplicationDeploymentOut, error)
- func (h *FlinkApplicationDeploymentHandler) ServiceFlinkGetApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, ...) (*ServiceFlinkGetApplicationDeploymentOut, error)
- func (h *FlinkApplicationDeploymentHandler) ServiceFlinkListApplicationDeployments(ctx context.Context, project string, serviceName string, applicationId string) ([]DeploymentOut, error)
- func (h *FlinkApplicationDeploymentHandler) ServiceFlinkStopApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, ...) (*ServiceFlinkStopApplicationDeploymentOut, error)
- type Handler
- type ServiceFlinkApplicationDeploymentStatusType
- type ServiceFlinkCancelApplicationDeploymentOut
- type ServiceFlinkCreateApplicationDeploymentIn
- type ServiceFlinkCreateApplicationDeploymentOut
- type ServiceFlinkDeleteApplicationDeploymentOut
- type ServiceFlinkGetApplicationDeploymentOut
- type ServiceFlinkStopApplicationDeploymentOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentStatusTypeChoices ¶ added in v0.3.0
func DeploymentStatusTypeChoices() []string
func ServiceFlinkApplicationDeploymentStatusTypeChoices ¶ added in v0.3.0
func ServiceFlinkApplicationDeploymentStatusTypeChoices() []string
Types ¶
type DeploymentOut ¶
type DeploymentOut struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
ErrorMsg string `json:"error_msg,omitempty"`
Id string `json:"id"`
JobId string `json:"job_id,omitempty"`
LastSavepoint string `json:"last_savepoint,omitempty"`
Parallelism int `json:"parallelism"`
RestartEnabled bool `json:"restart_enabled"`
StartingSavepoint string `json:"starting_savepoint,omitempty"`
Status DeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
type DeploymentStatusType ¶ added in v0.3.0
type DeploymentStatusType string
const ( DeploymentStatusTypeInitializing DeploymentStatusType = "INITIALIZING" DeploymentStatusTypeCreated DeploymentStatusType = "CREATED" DeploymentStatusTypeRunning DeploymentStatusType = "RUNNING" DeploymentStatusTypeFailing DeploymentStatusType = "FAILING" DeploymentStatusTypeFailed DeploymentStatusType = "FAILED" DeploymentStatusTypeSaving DeploymentStatusType = "SAVING" DeploymentStatusTypeCancellingRequested DeploymentStatusType = "CANCELLING_REQUESTED" DeploymentStatusTypeCancelling DeploymentStatusType = "CANCELLING" DeploymentStatusTypeCanceled DeploymentStatusType = "CANCELED" DeploymentStatusTypeSavingAndStopRequested DeploymentStatusType = "SAVING_AND_STOP_REQUESTED" DeploymentStatusTypeSavingAndStop DeploymentStatusType = "SAVING_AND_STOP" DeploymentStatusTypeFinished DeploymentStatusType = "FINISHED" DeploymentStatusTypeRestarting DeploymentStatusType = "RESTARTING" DeploymentStatusTypeSuspended DeploymentStatusType = "SUSPENDED" DeploymentStatusTypeDeleteRequested DeploymentStatusType = "DELETE_REQUESTED" DeploymentStatusTypeDeleting DeploymentStatusType = "DELETING" DeploymentStatusTypeReconciling DeploymentStatusType = "RECONCILING" )
type FlinkApplicationDeploymentHandler ¶
type FlinkApplicationDeploymentHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) FlinkApplicationDeploymentHandler
func (*FlinkApplicationDeploymentHandler) ServiceFlinkCancelApplicationDeployment ¶
func (h *FlinkApplicationDeploymentHandler) ServiceFlinkCancelApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkCancelApplicationDeploymentOut, error)
func (*FlinkApplicationDeploymentHandler) ServiceFlinkCreateApplicationDeployment ¶
func (h *FlinkApplicationDeploymentHandler) ServiceFlinkCreateApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, in *ServiceFlinkCreateApplicationDeploymentIn) (*ServiceFlinkCreateApplicationDeploymentOut, error)
func (*FlinkApplicationDeploymentHandler) ServiceFlinkDeleteApplicationDeployment ¶
func (h *FlinkApplicationDeploymentHandler) ServiceFlinkDeleteApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkDeleteApplicationDeploymentOut, error)
func (*FlinkApplicationDeploymentHandler) ServiceFlinkGetApplicationDeployment ¶
func (h *FlinkApplicationDeploymentHandler) ServiceFlinkGetApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkGetApplicationDeploymentOut, error)
func (*FlinkApplicationDeploymentHandler) ServiceFlinkListApplicationDeployments ¶
func (h *FlinkApplicationDeploymentHandler) ServiceFlinkListApplicationDeployments(ctx context.Context, project string, serviceName string, applicationId string) ([]DeploymentOut, error)
func (*FlinkApplicationDeploymentHandler) ServiceFlinkStopApplicationDeployment ¶
func (h *FlinkApplicationDeploymentHandler) ServiceFlinkStopApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkStopApplicationDeploymentOut, error)
type Handler ¶
type Handler interface {
// ServiceFlinkCancelApplicationDeployment cancel an ApplicationDeployment
// POST /v1/project/{project}/service/{service_name}/flink/application/{application_id}/deployment/{deployment_id}/cancel
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkCancelApplicationDeployment
ServiceFlinkCancelApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkCancelApplicationDeploymentOut, error)
// ServiceFlinkCreateApplicationDeployment create an ApplicationDeployment
// POST /v1/project/{project}/service/{service_name}/flink/application/{application_id}/deployment
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkCreateApplicationDeployment
ServiceFlinkCreateApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, in *ServiceFlinkCreateApplicationDeploymentIn) (*ServiceFlinkCreateApplicationDeploymentOut, error)
// ServiceFlinkDeleteApplicationDeployment delete an ApplicationDeployment
// DELETE /v1/project/{project}/service/{service_name}/flink/application/{application_id}/deployment/{deployment_id}
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkDeleteApplicationDeployment
ServiceFlinkDeleteApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkDeleteApplicationDeploymentOut, error)
// ServiceFlinkGetApplicationDeployment get an ApplicationDeployment
// GET /v1/project/{project}/service/{service_name}/flink/application/{application_id}/deployment/{deployment_id}
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkGetApplicationDeployment
ServiceFlinkGetApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkGetApplicationDeploymentOut, error)
// ServiceFlinkListApplicationDeployments get all ApplicationDeployments
// GET /v1/project/{project}/service/{service_name}/flink/application/{application_id}/deployment
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkListApplicationDeployments
ServiceFlinkListApplicationDeployments(ctx context.Context, project string, serviceName string, applicationId string) ([]DeploymentOut, error)
// ServiceFlinkStopApplicationDeployment stop an ApplicationDeployment
// POST /v1/project/{project}/service/{service_name}/flink/application/{application_id}/deployment/{deployment_id}/stop
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkStopApplicationDeployment
ServiceFlinkStopApplicationDeployment(ctx context.Context, project string, serviceName string, applicationId string, deploymentId string) (*ServiceFlinkStopApplicationDeploymentOut, error)
}
type ServiceFlinkApplicationDeploymentStatusType ¶ added in v0.3.0
type ServiceFlinkApplicationDeploymentStatusType string
const ( ServiceFlinkApplicationDeploymentStatusTypeInitializing ServiceFlinkApplicationDeploymentStatusType = "INITIALIZING" ServiceFlinkApplicationDeploymentStatusTypeCreated ServiceFlinkApplicationDeploymentStatusType = "CREATED" ServiceFlinkApplicationDeploymentStatusTypeRunning ServiceFlinkApplicationDeploymentStatusType = "RUNNING" ServiceFlinkApplicationDeploymentStatusTypeFailing ServiceFlinkApplicationDeploymentStatusType = "FAILING" ServiceFlinkApplicationDeploymentStatusTypeFailed ServiceFlinkApplicationDeploymentStatusType = "FAILED" ServiceFlinkApplicationDeploymentStatusTypeSaving ServiceFlinkApplicationDeploymentStatusType = "SAVING" ServiceFlinkApplicationDeploymentStatusTypeCancellingRequested ServiceFlinkApplicationDeploymentStatusType = "CANCELLING_REQUESTED" ServiceFlinkApplicationDeploymentStatusTypeCancelling ServiceFlinkApplicationDeploymentStatusType = "CANCELLING" ServiceFlinkApplicationDeploymentStatusTypeCanceled ServiceFlinkApplicationDeploymentStatusType = "CANCELED" ServiceFlinkApplicationDeploymentStatusTypeSavingAndStopRequested ServiceFlinkApplicationDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" ServiceFlinkApplicationDeploymentStatusTypeSavingAndStop ServiceFlinkApplicationDeploymentStatusType = "SAVING_AND_STOP" ServiceFlinkApplicationDeploymentStatusTypeFinished ServiceFlinkApplicationDeploymentStatusType = "FINISHED" ServiceFlinkApplicationDeploymentStatusTypeRestarting ServiceFlinkApplicationDeploymentStatusType = "RESTARTING" ServiceFlinkApplicationDeploymentStatusTypeSuspended ServiceFlinkApplicationDeploymentStatusType = "SUSPENDED" ServiceFlinkApplicationDeploymentStatusTypeDeleteRequested ServiceFlinkApplicationDeploymentStatusType = "DELETE_REQUESTED" ServiceFlinkApplicationDeploymentStatusTypeDeleting ServiceFlinkApplicationDeploymentStatusType = "DELETING" ServiceFlinkApplicationDeploymentStatusTypeReconciling ServiceFlinkApplicationDeploymentStatusType = "RECONCILING" )
type ServiceFlinkCancelApplicationDeploymentOut ¶
type ServiceFlinkCancelApplicationDeploymentOut struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
ErrorMsg string `json:"error_msg,omitempty"`
Id string `json:"id"`
JobId string `json:"job_id,omitempty"`
LastSavepoint string `json:"last_savepoint,omitempty"`
Parallelism int `json:"parallelism"`
RestartEnabled bool `json:"restart_enabled"`
StartingSavepoint string `json:"starting_savepoint,omitempty"`
Status ServiceFlinkApplicationDeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
type ServiceFlinkCreateApplicationDeploymentOut ¶
type ServiceFlinkCreateApplicationDeploymentOut struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
ErrorMsg string `json:"error_msg,omitempty"`
Id string `json:"id"`
JobId string `json:"job_id,omitempty"`
LastSavepoint string `json:"last_savepoint,omitempty"`
Parallelism int `json:"parallelism"`
RestartEnabled bool `json:"restart_enabled"`
StartingSavepoint string `json:"starting_savepoint,omitempty"`
Status ServiceFlinkApplicationDeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
type ServiceFlinkDeleteApplicationDeploymentOut ¶
type ServiceFlinkDeleteApplicationDeploymentOut struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
ErrorMsg string `json:"error_msg,omitempty"`
Id string `json:"id"`
JobId string `json:"job_id,omitempty"`
LastSavepoint string `json:"last_savepoint,omitempty"`
Parallelism int `json:"parallelism"`
RestartEnabled bool `json:"restart_enabled"`
StartingSavepoint string `json:"starting_savepoint,omitempty"`
Status ServiceFlinkApplicationDeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
type ServiceFlinkGetApplicationDeploymentOut ¶
type ServiceFlinkGetApplicationDeploymentOut struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
ErrorMsg string `json:"error_msg,omitempty"`
Id string `json:"id"`
JobId string `json:"job_id,omitempty"`
LastSavepoint string `json:"last_savepoint,omitempty"`
Parallelism int `json:"parallelism"`
RestartEnabled bool `json:"restart_enabled"`
StartingSavepoint string `json:"starting_savepoint,omitempty"`
Status ServiceFlinkApplicationDeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
type ServiceFlinkStopApplicationDeploymentOut ¶
type ServiceFlinkStopApplicationDeploymentOut struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
ErrorMsg string `json:"error_msg,omitempty"`
Id string `json:"id"`
JobId string `json:"job_id,omitempty"`
LastSavepoint string `json:"last_savepoint,omitempty"`
Parallelism int `json:"parallelism"`
RestartEnabled bool `json:"restart_enabled"`
StartingSavepoint string `json:"starting_savepoint,omitempty"`
Status ServiceFlinkApplicationDeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
Click to show internal directories.
Click to hide internal directories.