customresources

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package customresources provides methods to work with custom everest k8s resources.

Package customresources provides methods to work with custom everest k8s resources.

Package customresources ... everest Copyright (C) 2023 Percona LLC

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.

Package customresources ... everest Copyright (C) 2023 Percona LLC

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.

Package customresources ... everest Copyright (C) 2023 Percona LLC

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.

Package customresources ... everest Copyright (C) 2023 Percona LLC

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.

Package customresources provides methods to work with custom everest k8s resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupStoragesInterface

BackupStoragesInterface supports methods to work with BackupStorages.

type Client

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

Client contains a rest client.

func NewForConfig

func NewForConfig(c *rest.Config) (*Client, error)

NewForConfig creates a new database cluster client based on config.

func (*Client) BackupStorage

func (c *Client) BackupStorage(
	namespace string,
) BackupStoragesInterface

BackupStorage returns a db cluster client.

func (*Client) DBClusterBackups

func (c *Client) DBClusterBackups(namespace string) DBClusterBackupInterface

DBClusterBackups returns a db cluster backup.

func (*Client) DBClusterRestores

func (c *Client) DBClusterRestores(namespace string) DBClusterRestoreInterface

DBClusterRestores returns a db cluster client.

func (*Client) DBClusters

func (c *Client) DBClusters(namespace string) DBClusterInterface

DBClusters returns a db cluster client.

func (*Client) DBEngines

func (c *Client) DBEngines(namespace string) DBEngineInterface

DBEngines returns a db engine.

func (*Client) MonitoringConfig

func (c *Client) MonitoringConfig(
	namespace string,
) MonitoringConfigsInterface

MonitoringConfig returns a db cluster monitoringConfigClient.

type DBClusterBackupInterface

DBClusterBackupInterface supports list, get and watch methods.

type DBClusterInterface

type DBClusterInterface interface {
	List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.DatabaseClusterList, error)
	Get(ctx context.Context, name string, options metav1.GetOptions) (*everestv1alpha1.DatabaseCluster, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
}

DBClusterInterface supports list, get and watch methods.

type DBClusterRestoreInterface

DBClusterRestoreInterface supports list, get and watch methods.

type DBEngineInterface

DBEngineInterface supports list, get and watch methods.

type MonitoringConfigsInterface

MonitoringConfigsInterface supports methods to work with MonitoringConfigs.

Jump to

Keyboard shortcuts

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