backupservice

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// The address to listen on.
	Address string `json:"address,omitempty"`

	// ContextPath customizes path for the API endpoints.
	ContextPath string `json:"context-path,omitempty"`

	// The port to listen on.
	Port int32 `json:"port,omitempty"`
}

func GetBackupServiceClient

func GetBackupServiceClient(k8sClient client.Client, svc *v1beta1.BackupService) (*Client, error)

func NewClient

func NewClient(address string, port int32, contextPath string) *Client

func (*Client) API

func (c *Client) API(pattern string) string

func (*Client) AddBackupPolicy

func (c *Client) AddBackupPolicy(name string, policy interface{}) error

func (*Client) AddBackupRoutine

func (c *Client) AddBackupRoutine(name string, routine interface{}) error

func (*Client) AddCluster

func (c *Client) AddCluster(name, cluster interface{}) error

func (*Client) AddStorage

func (c *Client) AddStorage(name string, storage interface{}) error

func (*Client) ApplyConfig

func (c *Client) ApplyConfig() error

func (*Client) CancelRestoreJob

func (c *Client) CancelRestoreJob(jobID int64) (int, error)

func (*Client) CheckBackupServiceHealth

func (c *Client) CheckBackupServiceHealth() error

func (*Client) CheckRestoreStatus

func (c *Client) CheckRestoreStatus(jobID int64) (map[string]interface{}, error)

func (*Client) DeleteBackupRoutine

func (c *Client) DeleteBackupRoutine(name string) error

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(name string) error

func (*Client) GetBackupPolicies

func (c *Client) GetBackupPolicies() (map[string]interface{}, error)

func (*Client) GetBackupRoutines

func (c *Client) GetBackupRoutines()

func (*Client) GetBackupServiceConfig

func (c *Client) GetBackupServiceConfig() (map[string]interface{}, error)

func (*Client) GetClusters

func (c *Client) GetClusters() (map[string]interface{}, error)

func (*Client) GetFullBackups

func (c *Client) GetFullBackups() (map[string][]interface{}, error)

func (*Client) GetFullBackupsForRoutine

func (c *Client) GetFullBackupsForRoutine(routineName string) ([]interface{}, error)

func (*Client) GetStorage

func (c *Client) GetStorage() (map[string]interface{}, error)

func (*Client) PutBackupPolicy

func (c *Client) PutBackupPolicy(name string, policy interface{}) error

func (*Client) PutBackupRoutine

func (c *Client) PutBackupRoutine(name string, routine interface{}) error

func (*Client) PutCluster

func (c *Client) PutCluster(name, cluster interface{}) error

func (*Client) PutStorage

func (c *Client) PutStorage(name string, storage interface{}) error

func (*Client) ScheduleBackup

func (c *Client) ScheduleBackup(routineName string, delay metav1.Duration) error

func (*Client) TriggerRestoreWithType

func (c *Client) TriggerRestoreWithType(log logr.Logger, restoreType string,
	request []byte) (jobID *int64, statusCode *int, err error)

Jump to

Keyboard shortcuts

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