maintenancewindow

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaintenanceWindow

type MaintenanceWindow struct {
	*project.MaintenanceWindow
}

func NewMaintenanceWindow

func NewMaintenanceWindow(spec *project.MaintenanceWindow) *MaintenanceWindow

func (*MaintenanceWindow) EqualTo

func (mw *MaintenanceWindow) EqualTo(target *MaintenanceWindow) bool

func (*MaintenanceWindow) WithStartASAP

func (mw *MaintenanceWindow) WithStartASAP(asap bool) *MaintenanceWindow

type MaintenanceWindowAPI

type MaintenanceWindowAPI struct {
	// contains filtered or unexported fields
}

func NewMaintenanceWindowAPIService

func NewMaintenanceWindowAPIService(api admin.MaintenanceWindowsApi) *MaintenanceWindowAPI

func (*MaintenanceWindowAPI) Defer

func (mw *MaintenanceWindowAPI) Defer(ctx context.Context, projectID string) error

func (*MaintenanceWindowAPI) Get

func (mw *MaintenanceWindowAPI) Get(ctx context.Context, projectID string) (*MaintenanceWindow, error)

func (*MaintenanceWindowAPI) Reset

func (mw *MaintenanceWindowAPI) Reset(ctx context.Context, projectID string) error

func (*MaintenanceWindowAPI) ToggleAutoDefer

func (mw *MaintenanceWindowAPI) ToggleAutoDefer(ctx context.Context, projectID string) error

func (*MaintenanceWindowAPI) Update

func (mw *MaintenanceWindowAPI) Update(ctx context.Context, projectID string, maintenanceWindow *MaintenanceWindow) error

type MaintenanceWindowService

type MaintenanceWindowService interface {
	Get(context.Context, string) (*MaintenanceWindow, error)
	Update(context.Context, string, *MaintenanceWindow) error
	Reset(context.Context, string) error
	Defer(context.Context, string) error
	ToggleAutoDefer(context.Context, string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳