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 ¶
- type BackupStoragesInterface
- type Client
- func (c *Client) BackupStorage(namespace string) BackupStoragesInterface
- func (c *Client) DBClusterBackups(namespace string) DBClusterBackupInterface
- func (c *Client) DBClusterRestores(namespace string) DBClusterRestoreInterface
- func (c *Client) DBClusters(namespace string) DBClusterInterface
- func (c *Client) DBEngines(namespace string) DBEngineInterface
- func (c *Client) MonitoringConfig(namespace string) MonitoringConfigsInterface
- type DBClusterBackupInterface
- type DBClusterInterface
- type DBClusterRestoreInterface
- type DBEngineInterface
- type MonitoringConfigsInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupStoragesInterface ¶
type BackupStoragesInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.BackupStorageList, error) Create(ctx context.Context, storage *everestv1alpha1.BackupStorage, opts metav1.CreateOptions) (*everestv1alpha1.BackupStorage, error) Update(ctx context.Context, storage *everestv1alpha1.BackupStorage, opts metav1.UpdateOptions) (*everestv1alpha1.BackupStorage, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*everestv1alpha1.BackupStorage, error) }
BackupStoragesInterface supports methods to work with BackupStorages.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains a rest client.
func NewForConfig ¶
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 ¶
type DBClusterBackupInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.DatabaseClusterBackupList, error) Get(ctx context.Context, name string, options metav1.GetOptions) (*everestv1alpha1.DatabaseClusterBackup, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) Update(ctx context.Context, backup *everestv1alpha1.DatabaseClusterBackup, opts metav1.UpdateOptions) (*everestv1alpha1.DatabaseClusterBackup, error) }
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 ¶
type DBClusterRestoreInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.DatabaseClusterRestoreList, error) Get(ctx context.Context, name string, options metav1.GetOptions) (*everestv1alpha1.DatabaseClusterRestore, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) }
DBClusterRestoreInterface supports list, get and watch methods.
type DBEngineInterface ¶
type DBEngineInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.DatabaseEngineList, error) Get(ctx context.Context, name string, options metav1.GetOptions) (*everestv1alpha1.DatabaseEngine, error) Update(ctx context.Context, engine *everestv1alpha1.DatabaseEngine, opts metav1.UpdateOptions) (*everestv1alpha1.DatabaseEngine, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) }
DBEngineInterface supports list, get and watch methods.
type MonitoringConfigsInterface ¶
type MonitoringConfigsInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*everestv1alpha1.MonitoringConfigList, error) Create(ctx context.Context, storage *everestv1alpha1.MonitoringConfig, opts metav1.CreateOptions) (*everestv1alpha1.MonitoringConfig, error) Update(ctx context.Context, storage *everestv1alpha1.MonitoringConfig, opts metav1.UpdateOptions) (*everestv1alpha1.MonitoringConfig, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*everestv1alpha1.MonitoringConfig, error) }
MonitoringConfigsInterface supports methods to work with MonitoringConfigs.