Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupInterface ¶
type BackupInterface interface { // Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any. Create(ctx context.Context, backup *v1.Backup, opts metav1.CreateOptions) (*v1.Backup, error) // Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any. Update(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (*v1.Backup, error) // UpdateStatus was generated because the type contains a Status member. UpdateStatus(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (*v1.Backup, error) // UpdateStatusInProgress sets the status of the backup to "in progress". UpdateStatusInProgress(ctx context.Context, backup *v1.Backup) (*v1.Backup, error) // UpdateStatusCompleted sets the status of the backup to "completed". UpdateStatusCompleted(ctx context.Context, backup *v1.Backup) (*v1.Backup, error) // UpdateStatusDeleting sets the status of the backup to "deleting". UpdateStatusDeleting(ctx context.Context, backup *v1.Backup) (*v1.Backup, error) // Delete takes name of the backup and deletes it. Returns an error if one occurs. Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error // DeleteCollection deletes a collection of objects. DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error // Get takes name of the backup, and returns the corresponding backup object, and an error if there is any. Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Backup, error) // List takes label and field selectors, and returns the list of Backups that match those selectors. List(ctx context.Context, opts metav1.ListOptions) (*v1.BackupList, error) // Watch returns a watch.Interface that watches the requested backups. Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) // Patch applies the patch and returns the patched backup. Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Backup, err error) // AddFinalizer adds the given finalizer to the backup. AddFinalizer(ctx context.Context, backup *v1.Backup, finalizer string) (*v1.Backup, error) // RemoveFinalizer removes the given finalizer to the backup. RemoveFinalizer(ctx context.Context, backup *v1.Backup, finalizer string) (*v1.Backup, error) }
type BackupsGetter ¶
type BackupsGetter interface { // Backups returns a client for backups in the given namespace. Backups(namespace string) BackupInterface }
type ClientSet ¶
type ClientSet struct { kubernetes.Interface // contains filtered or unexported fields }
ClientSet extends the kubernetes.Interface to add functionality for handling the custom resources of this operator.
func NewClientSet ¶
NewClientSet creates a new instance of the client set for this operator.
func (*ClientSet) EcosystemV1Alpha1 ¶
func (cs *ClientSet) EcosystemV1Alpha1() V1Alpha1Interface
EcosystemV1Alpha1 returns a getter for the custom resources of this operator.
type Interface ¶
type Interface interface { kubernetes.Interface // EcosystemV1Alpha1 returns a getter for the custom resources of this operator. EcosystemV1Alpha1() V1Alpha1Interface }
Interface extends the kubernetes.Interface to add functionality for handling the custom resources of this operator.
type RestoreInterface ¶
type RestoreInterface interface { // Create takes the representation of a restore and creates it. Returns the server's representation of the restore, and an error, if there is any. Create(ctx context.Context, restore *v1.Restore, opts metav1.CreateOptions) (*v1.Restore, error) // Update takes the representation of a restore and updates it. Returns the server's representation of the restore, and an error, if there is any. Update(ctx context.Context, restore *v1.Restore, opts metav1.UpdateOptions) (*v1.Restore, error) // UpdateStatus was generated because the type contains a Status member. UpdateStatus(ctx context.Context, restore *v1.Restore, opts metav1.UpdateOptions) (*v1.Restore, error) // UpdateStatusInProgress sets the status of the restore to "in progress". UpdateStatusInProgress(ctx context.Context, restore *v1.Restore) (*v1.Restore, error) // UpdateStatusCompleted sets the status of the restore to "completed". UpdateStatusCompleted(ctx context.Context, restore *v1.Restore) (*v1.Restore, error) // UpdateStatusDeleting sets the status of the restore to "deleting". UpdateStatusDeleting(ctx context.Context, restore *v1.Restore) (*v1.Restore, error) // Delete takes name of the restore and deletes it. Returns an error if one occurs. Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error // DeleteCollection deletes a collection of objects. DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error // Get takes name of the restore, and returns the corresponding restore object, and an error if there is any. Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Restore, error) // List takes label and field selectors, and returns the list of Restores that match those selectors. List(ctx context.Context, opts metav1.ListOptions) (*v1.RestoreList, error) // Watch returns a watch.Interface that watches the requested restores. Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) // Patch applies the patch and returns the patched restore. Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Restore, err error) // AddFinalizer adds the given finalizer to the restore. AddFinalizer(ctx context.Context, restore *v1.Restore, finalizer string) (*v1.Restore, error) // RemoveFinalizer removes the given finalizer to the restore. RemoveFinalizer(ctx context.Context, restore *v1.Restore, finalizer string) (*v1.Restore, error) }
type RestoresGetter ¶
type RestoresGetter interface { // Restores returns a client for restores in the given namespace. Restores(namespace string) RestoreInterface }
type V1Alpha1Client ¶
type V1Alpha1Client struct {
// contains filtered or unexported fields
}
V1Alpha1Client is a getter for the custom resources of this operator.
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*V1Alpha1Client, error)
NewForConfig creates a new V1Alpha1Client for a given rest.Config.
func (*V1Alpha1Client) Backups ¶
func (brc *V1Alpha1Client) Backups(namespace string) BackupInterface
Backups returns a client for backups in the given namespace.
func (*V1Alpha1Client) Restores ¶
func (brc *V1Alpha1Client) Restores(namespace string) RestoreInterface
Restores returns a client for restores in the given namespace.
type V1Alpha1Interface ¶
type V1Alpha1Interface interface { BackupsGetter RestoresGetter }
V1Alpha1Interface is a getter for the custom resources of this operator.