ecosystem

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 13 Imported by: 0

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)

	// UpdateStatusFailed sets the status of the backup to "failed".
	UpdateStatusFailed(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)

	// AddLabels adds the app=ces and k8s.cloudogu.com/part-of=backup labels to the backup.
	AddLabels(ctx context.Context, backup *v1.Backup) (*v1.Backup, error)

	// RemoveFinalizer removes the given finalizer to the backup.
	RemoveFinalizer(ctx context.Context, backup *v1.Backup, finalizer string) (*v1.Backup, error)
}

type BackupScheduleInterface added in v0.5.0

type BackupScheduleInterface interface {
	// Create takes the representation of a backup schedule and creates it.  Returns the server's representation of the backup schedule, and an error, if there is any.
	Create(ctx context.Context, backupSchedule *v1.BackupSchedule, opts metav1.CreateOptions) (*v1.BackupSchedule, error)

	// Update takes the representation of a backup schedule and updates it. Returns the server's representation of the backup schedule, and an error, if there is any.
	Update(ctx context.Context, backupSchedule *v1.BackupSchedule, opts metav1.UpdateOptions) (*v1.BackupSchedule, error)

	// UpdateStatus was generated because the type contains a Status member.
	UpdateStatus(ctx context.Context, backupSchedule *v1.BackupSchedule, opts metav1.UpdateOptions) (*v1.BackupSchedule, error)

	// UpdateStatusCreated sets the status of the backup schedule to "created".
	UpdateStatusCreated(ctx context.Context, backupSchedule *v1.BackupSchedule) (*v1.BackupSchedule, error)

	// UpdateStatusCreating sets the status of the backup schedule to "creating".
	UpdateStatusCreating(ctx context.Context, backupSchedule *v1.BackupSchedule) (*v1.BackupSchedule, error)

	// UpdateStatusUpdating sets the status of the backup schedule to "updating".
	UpdateStatusUpdating(ctx context.Context, backupSchedule *v1.BackupSchedule) (*v1.BackupSchedule, error)

	// UpdateStatusDeleting sets the status of the backup schedule to "deleting".
	UpdateStatusDeleting(ctx context.Context, backupSchedule *v1.BackupSchedule) (*v1.BackupSchedule, error)

	// UpdateStatusFailed sets the status of the backup schedule to "failed".
	UpdateStatusFailed(ctx context.Context, backupSchedule *v1.BackupSchedule) (*v1.BackupSchedule, error)

	// Delete takes name of the backup schedule 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 schedule, and returns the corresponding backup schedule object, and an error if there is any.
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.BackupSchedule, error)

	// List takes label and field selectors, and returns the list of BackupSchedules that match those selectors.
	List(ctx context.Context, opts metav1.ListOptions) (*v1.BackupScheduleList, error)

	// Watch returns a watch.Interface that watches the requested backup schedules.
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

	// Patch applies the patch and returns the patched backup schedule.
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.BackupSchedule, err error)

	// AddFinalizer adds the given finalizer to the backup schedule.
	AddFinalizer(ctx context.Context, backupSchedule *v1.BackupSchedule, finalizer string) (*v1.BackupSchedule, error)

	// AddLabels adds the app=ces and k8s.cloudogu.com/part-of=backup labels to the backup schedule.
	AddLabels(ctx context.Context, backupSchedule *v1.BackupSchedule) (*v1.BackupSchedule, error)

	// RemoveFinalizer removes the given finalizer to the backup schedule.
	RemoveFinalizer(ctx context.Context, backupSchedule *v1.BackupSchedule, finalizer string) (*v1.BackupSchedule, error)
}

type BackupSchedulesGetter added in v0.5.0

type BackupSchedulesGetter interface {
	// BackupSchedules returns a client for backup schedules in the given namespace.
	BackupSchedules(namespace string) BackupScheduleInterface
}

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

func NewClientSet(config *rest.Config, clientSet *kubernetes.Clientset) (*ClientSet, error)

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)

	// UpdateStatusFailed sets the status of the restore to "failed".
	UpdateStatusFailed(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)

	// AddLabels adds the app=ces and k8s.cloudogu.com/part-of=backup labels to the restore.
	AddLabels(ctx context.Context, restore *v1.Restore) (*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) BackupSchedules added in v0.5.0

func (brc *V1Alpha1Client) BackupSchedules(namespace string) BackupScheduleInterface

BackupSchedules returns a client for backup schedules in the given namespace.

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
	BackupSchedulesGetter
}

V1Alpha1Interface is a getter for the custom resources of this operator.

Jump to

Keyboard shortcuts

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