Documentation
¶
Index ¶
- func CurrentDeploymentStatusTypeChoices() []string
- type ApplicationOut
- type ApplicationVersionIn
- type ApplicationVersionOut
- type ColumnOut
- type CurrentDeploymentOut
- type CurrentDeploymentStatusType
- type FlinkApplicationHandler
- func (h *FlinkApplicationHandler) ServiceFlinkCreateApplication(ctx context.Context, project string, serviceName string, ...) (*ServiceFlinkCreateApplicationOut, error)
- func (h *FlinkApplicationHandler) ServiceFlinkDeleteApplication(ctx context.Context, project string, serviceName string, applicationId string) (*ServiceFlinkDeleteApplicationOut, error)
- func (h *FlinkApplicationHandler) ServiceFlinkGetApplication(ctx context.Context, project string, serviceName string, applicationId string) (*ServiceFlinkGetApplicationOut, error)
- func (h *FlinkApplicationHandler) ServiceFlinkListApplications(ctx context.Context, project string, serviceName string) ([]ApplicationOut, error)
- func (h *FlinkApplicationHandler) ServiceFlinkUpdateApplication(ctx context.Context, project string, serviceName string, applicationId string, ...) (*ServiceFlinkUpdateApplicationOut, error)
- type Handler
- type ServiceFlinkCreateApplicationIn
- type ServiceFlinkCreateApplicationOut
- type ServiceFlinkDeleteApplicationOut
- type ServiceFlinkGetApplicationOut
- type ServiceFlinkUpdateApplicationIn
- type ServiceFlinkUpdateApplicationOut
- type SinkIn
- type SinkOut
- type SourceIn
- type SourceOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentDeploymentStatusTypeChoices ¶ added in v0.3.0
func CurrentDeploymentStatusTypeChoices() []string
Types ¶
type ApplicationOut ¶
type ApplicationVersionIn ¶
type ApplicationVersionOut ¶
type CurrentDeploymentOut ¶
type CurrentDeploymentOut 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 CurrentDeploymentStatusType `json:"status"`
VersionId string `json:"version_id"`
}
type CurrentDeploymentStatusType ¶ added in v0.3.0
type CurrentDeploymentStatusType string
const ( CurrentDeploymentStatusTypeInitializing CurrentDeploymentStatusType = "INITIALIZING" CurrentDeploymentStatusTypeCreated CurrentDeploymentStatusType = "CREATED" CurrentDeploymentStatusTypeRunning CurrentDeploymentStatusType = "RUNNING" CurrentDeploymentStatusTypeFailing CurrentDeploymentStatusType = "FAILING" CurrentDeploymentStatusTypeFailed CurrentDeploymentStatusType = "FAILED" CurrentDeploymentStatusTypeSaving CurrentDeploymentStatusType = "SAVING" CurrentDeploymentStatusTypeCancellingRequested CurrentDeploymentStatusType = "CANCELLING_REQUESTED" CurrentDeploymentStatusTypeCancelling CurrentDeploymentStatusType = "CANCELLING" CurrentDeploymentStatusTypeCanceled CurrentDeploymentStatusType = "CANCELED" CurrentDeploymentStatusTypeSavingAndStopRequested CurrentDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" CurrentDeploymentStatusTypeSavingAndStop CurrentDeploymentStatusType = "SAVING_AND_STOP" CurrentDeploymentStatusTypeFinished CurrentDeploymentStatusType = "FINISHED" CurrentDeploymentStatusTypeRestarting CurrentDeploymentStatusType = "RESTARTING" CurrentDeploymentStatusTypeSuspended CurrentDeploymentStatusType = "SUSPENDED" CurrentDeploymentStatusTypeDeleteRequested CurrentDeploymentStatusType = "DELETE_REQUESTED" CurrentDeploymentStatusTypeDeleting CurrentDeploymentStatusType = "DELETING" CurrentDeploymentStatusTypeReconciling CurrentDeploymentStatusType = "RECONCILING" )
type FlinkApplicationHandler ¶
type FlinkApplicationHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) FlinkApplicationHandler
func (*FlinkApplicationHandler) ServiceFlinkCreateApplication ¶
func (h *FlinkApplicationHandler) ServiceFlinkCreateApplication(ctx context.Context, project string, serviceName string, in *ServiceFlinkCreateApplicationIn) (*ServiceFlinkCreateApplicationOut, error)
func (*FlinkApplicationHandler) ServiceFlinkDeleteApplication ¶
func (h *FlinkApplicationHandler) ServiceFlinkDeleteApplication(ctx context.Context, project string, serviceName string, applicationId string) (*ServiceFlinkDeleteApplicationOut, error)
func (*FlinkApplicationHandler) ServiceFlinkGetApplication ¶
func (h *FlinkApplicationHandler) ServiceFlinkGetApplication(ctx context.Context, project string, serviceName string, applicationId string) (*ServiceFlinkGetApplicationOut, error)
func (*FlinkApplicationHandler) ServiceFlinkListApplications ¶
func (h *FlinkApplicationHandler) ServiceFlinkListApplications(ctx context.Context, project string, serviceName string) ([]ApplicationOut, error)
func (*FlinkApplicationHandler) ServiceFlinkUpdateApplication ¶
func (h *FlinkApplicationHandler) ServiceFlinkUpdateApplication(ctx context.Context, project string, serviceName string, applicationId string, in *ServiceFlinkUpdateApplicationIn) (*ServiceFlinkUpdateApplicationOut, error)
type Handler ¶
type Handler interface {
// ServiceFlinkCreateApplication create a Flink Application
// POST /project/{project}/service/{service_name}/flink/application
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkCreateApplication
ServiceFlinkCreateApplication(ctx context.Context, project string, serviceName string, in *ServiceFlinkCreateApplicationIn) (*ServiceFlinkCreateApplicationOut, error)
// ServiceFlinkDeleteApplication delete a Flink Application
// DELETE /project/{project}/service/{service_name}/flink/application/{application_id}
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkDeleteApplication
ServiceFlinkDeleteApplication(ctx context.Context, project string, serviceName string, applicationId string) (*ServiceFlinkDeleteApplicationOut, error)
// ServiceFlinkGetApplication get a Flink Application
// GET /project/{project}/service/{service_name}/flink/application/{application_id}
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkGetApplication
ServiceFlinkGetApplication(ctx context.Context, project string, serviceName string, applicationId string) (*ServiceFlinkGetApplicationOut, error)
// ServiceFlinkListApplications get all Flink Applications
// GET /project/{project}/service/{service_name}/flink/application
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkListApplications
ServiceFlinkListApplications(ctx context.Context, project string, serviceName string) ([]ApplicationOut, error)
// ServiceFlinkUpdateApplication update a Flink Application
// PUT /project/{project}/service/{service_name}/flink/application/{application_id}
// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkUpdateApplication
ServiceFlinkUpdateApplication(ctx context.Context, project string, serviceName string, applicationId string, in *ServiceFlinkUpdateApplicationIn) (*ServiceFlinkUpdateApplicationOut, error)
}
type ServiceFlinkCreateApplicationIn ¶
type ServiceFlinkCreateApplicationIn struct {
ApplicationVersion *ApplicationVersionIn `json:"application_version,omitempty"`
Name string `json:"name"`
}
type ServiceFlinkCreateApplicationOut ¶
type ServiceFlinkCreateApplicationOut struct {
ApplicationVersions []ApplicationVersionOut `json:"application_versions"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
CurrentDeployment *CurrentDeploymentOut `json:"current_deployment,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy string `json:"updated_by"`
}
type ServiceFlinkDeleteApplicationOut ¶
type ServiceFlinkDeleteApplicationOut struct {
ApplicationVersions []ApplicationVersionOut `json:"application_versions"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
CurrentDeployment *CurrentDeploymentOut `json:"current_deployment,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy string `json:"updated_by"`
}
type ServiceFlinkGetApplicationOut ¶
type ServiceFlinkGetApplicationOut struct {
ApplicationVersions []ApplicationVersionOut `json:"application_versions"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
CurrentDeployment *CurrentDeploymentOut `json:"current_deployment,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy string `json:"updated_by"`
}
type ServiceFlinkUpdateApplicationIn ¶
type ServiceFlinkUpdateApplicationIn struct {
Name string `json:"name"`
}
type ServiceFlinkUpdateApplicationOut ¶
type ServiceFlinkUpdateApplicationOut struct {
ApplicationVersions []ApplicationVersionOut `json:"application_versions"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
CurrentDeployment *CurrentDeploymentOut `json:"current_deployment,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy string `json:"updated_by"`
}
Click to show internal directories.
Click to hide internal directories.