bo

package
v0.0.0-...-fee78ac Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* Copyright (c) 2024 OceanBase. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CdbObRestoreHistory

type CdbObRestoreHistory struct {
	RestoreInfo

	BackupClusterVersion int    `json:"backup_cluster_version"`
	LsCount              int    `json:"ls_count"`
	FinishLsCount        int    `json:"finish_ls_count"`
	Comment              string `json:"comment"`
	FinishTimestamp      string `json:"finish_timestamp"`
}

type CdbObRestoreProgress

type CdbObRestoreProgress struct {
	RestoreInfo

	RecoverScn        int64  `json:"recover_scn"`
	RecoverScnDisplay string `json:"recover_scn_display"`
	RecoverProgress   string `json:"recover_progress"`
	RestoreProgress   string `json:"restore_progress"`
}

type DagInstance

type DagInstance struct {
	Id                int64
	Name              string
	Type              string
	Stage             int
	MaxStage          int
	State             int
	ExecuterAgentIp   string
	ExecuterAgentPort int
	IsMaintenance     bool
	MaintenanceType   int
	MaintenanceKey    string
	IsFinished        bool
	Context           []byte
	Operator          int
	StartTime         time.Time
	EndTime           time.Time
	GmtCreate         time.Time
	GmtModify         time.Time
}

type DbaObTenantJobBo

type DbaObTenantJobBo struct {
	JobId         int
	JobType       string
	JobStatus     string
	ResultCode    int
	Progress      int
	TenantId      int
	SqlText       string
	ExtraInfo     string
	StartTime     time.Time
	ModifyTime    time.Time
	CurrentTarget interface{}
}

func (*DbaObTenantJobBo) TargetIs

func (a *DbaObTenantJobBo) TargetIs(target interface{}) bool

type NodeInstance

type NodeInstance struct {
	Id                int64
	Name              string
	DagId             int64
	DagStage          int
	StructName        string
	Type              string
	State             int
	MaxStage          int
	ExecuterAgentIp   string
	ExecuterAgentPort int
	Context           []byte
	Operator          int
	StartTime         time.Time
	EndTime           time.Time
	GmtCreate         time.Time
	GmtModify         time.Time
}

type ObUnitConfig

type ObUnitConfig struct {
	GmtCreate    time.Time `json:"create_time"`
	GmtModified  time.Time `json:"modify_time"`
	UnitConfigId int       `json:"unit_config_id"`
	Name         string    `json:"name"`
	MaxCpu       float64   `json:"max_cpu"`
	MinCpu       float64   `json:"min_cpu"`
	MemorySize   int       `json:"memory_size"`
	LogDiskSize  int       `json:"log_disk_size"`
	MaxIops      uint      `json:"max_iops"`
	MinIops      uint      `json:"min_iops"`
}

type PartialMaintenance

type PartialMaintenance struct {
	Id        int64
	LockType  int
	LockName  string
	DagID     int64
	Count     int
	GmtLocked time.Time
}

type ResourcePoolWithUnit

type ResourcePoolWithUnit struct {
	Name     string        `json:"pool_name"`
	Id       int           `json:"pool_id"`
	ZoneList string        `json:"zone_list"`
	UnitNum  int           `json:"unit_num"`
	Unit     *ObUnitConfig `json:"unit_config"`
}

type RestoreInfo

type RestoreInfo struct {
	TenantId          int64  `json:"tenant_id"`
	JobID             int64  `json:"job_id"`
	RestoreTenantName string `json:"restore_tenant_name"`
	RestoreTenantId   int64  `json:"restore_tenant_id"`
	BackupTenantName  string `json:"backup_tenant_name"`
	BackupTenantId    int64  `json:"backup_tenant_id"`
	BackupClusterName string `json:"backup_cluster_name"`

	RestoreOption     string `json:"restore_option"`
	RestoreScn        int64  `json:"restore_scn"`
	RestoreScnDisplay string `json:"restore_scn_display"`

	Status         string `json:"status"`
	StartTimestamp string `json:"start_timestamp"`

	BackupSetList   string `json:"backup_set_list"`
	BackupPieceList string `json:"backup_piece_list"`

	TabletCount        int64  `json:"tablet_count"`
	FinishTabletCount  int64  `json:"finish_tablet_count"`
	TotalBytes         int64  `json:"total_bytes"`
	TotalBytesDisplay  string `json:"total_bytes_display"`
	FinishBytes        int64  `json:"finish_bytes"`
	FinishBytesDisplay string `json:"finish_bytes_display"`
	Description        string `json:"description"`
}

type SubTaskInstance

type SubTaskInstance struct {
	Id                int64
	NodeId            int64
	Name              string
	StructName        string
	ExecuterAgentIp   string
	ExecuterAgentPort int
	ExecuteTimes      int
	CanCancel         bool
	CanContinue       bool
	CanPass           bool
	CanRetry          bool
	CanRollback       bool
	Context           []byte
	State             int
	Operator          int
	StartTime         time.Time
	EndTime           time.Time
	GmtCreate         time.Time
	GmtModify         time.Time
}

type SubTaskLog

type SubTaskLog struct {
	Id           int64
	SubTaskId    int64
	ExecuteTimes int
	LogContent   string
	IsSync       bool
	CreateTime   time.Time
	UpdateTime   time.Time
}

type TenantInfo

type TenantInfo struct {
	Name         string                  `json:"tenant_name"`
	Id           int                     `json:"tenant_id"`
	CreatedTime  time.Time               `json:"created_time"`
	Mode         string                  `json:"mode"`
	Status       string                  `json:"status"`
	Locked       string                  `json:"locked"`
	PrimaryZone  string                  `json:"primary_zone"`
	Locality     string                  `json:"locality"`
	InRecyclebin string                  `json:"in_recyclebin"`
	Charset      string                  `json:"charset"`   // Only for ORACLE tenant
	Collation    string                  `json:"collation"` // Only for ORACLE tenant
	Whitelist    string                  `json:"whitelist"`
	Pools        []*ResourcePoolWithUnit `json:"pools"`
}

Jump to

Keyboard shortcuts

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