Help us shape the future of Go! Take the 2026 Go Developer Survey

maintenance

package
v0.345.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd lists maintenance schedules for a database.

func MaintenanceCmd

func MaintenanceCmd(ch *cmdutil.Helper) *cobra.Command

MaintenanceCmd manages maintenance schedules for a database.

func ShowCmd

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

ShowCmd shows a single maintenance schedule.

func WindowsCmd

func WindowsCmd(ch *cmdutil.Helper) *cobra.Command

WindowsCmd lists maintenance windows for a schedule.

Types

type MaintenanceSchedule

type MaintenanceSchedule struct {
	ID                   string `header:"id" json:"id"`
	Name                 string `header:"name" json:"name"`
	Enabled              bool   `header:"enabled" json:"enabled"`
	Required             bool   `header:"required" json:"required"`
	Frequency            string `header:"frequency" json:"frequency"`
	Day                  string `header:"day" json:"day"`
	Week                 string `header:"week" json:"week"`
	HourUTC              int    `header:"hour_utc" json:"hour_utc"`
	DurationHours        int    `header:"duration_hours" json:"duration_hours"`
	NextWindow           int64  `header:"next_window,timestamp(ms|utc|human)" json:"next_window"`
	LastWindow           int64  `header:"last_window,timestamp(ms|utc|human)" json:"last_window"`
	PendingVitessVersion string `header:"pending_vitess" json:"pending_vitess"`
	PendingMySQLVersion  string `header:"pending_mysql" json:"pending_mysql"`
	ExpiresAt            *int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
	DeadlineAt           *int64 `header:"deadline_at,timestamp(ms|utc|human)" json:"deadline_at"`
	CreatedAt            int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt            int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

MaintenanceSchedule is the human/JSON/CSV view of a maintenance schedule.

func (*MaintenanceSchedule) MarshalCSVValue

func (s *MaintenanceSchedule) MarshalCSVValue() interface{}

func (*MaintenanceSchedule) MarshalJSON

func (s *MaintenanceSchedule) MarshalJSON() ([]byte, error)

type MaintenanceWindow

type MaintenanceWindow struct {
	ID         string `header:"id" json:"id"`
	StartedAt  *int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
	FinishedAt *int64 `header:"finished_at,timestamp(ms|utc|human)" json:"finished_at"`
	CreatedAt  int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt  int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

MaintenanceWindow is the human/JSON/CSV view of a maintenance window.

func (*MaintenanceWindow) MarshalCSVValue

func (w *MaintenanceWindow) MarshalCSVValue() interface{}

func (*MaintenanceWindow) MarshalJSON

func (w *MaintenanceWindow) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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