Versions in this module Expand all Collapse all v0 v0.3.0 Aug 2, 2017 Changes in this version + type FakeBackupService struct + func (f *FakeBackupService) DeleteBackup(bucket, backupName string) error + func (f *FakeBackupService) DownloadBackup(bucket, name string) (io.ReadCloser, error) + func (f *FakeBackupService) GetAllBackups(bucket string) ([]*v1.Backup, error) + func (f *FakeBackupService) UploadBackup(bucket, name string, metadata, backup io.ReadSeeker) error + type FakeDynamicClient struct + func (c *FakeDynamicClient) Create(obj *unstructured.Unstructured) (*unstructured.Unstructured, error) + func (c *FakeDynamicClient) List(options metav1.ListOptions) (runtime.Object, error) + func (c *FakeDynamicClient) Watch(options metav1.ListOptions) (watch.Interface, error) + type FakeDynamicFactory struct + func (df *FakeDynamicFactory) ClientForGroupVersionKind(gvk schema.GroupVersionKind, resource metav1.APIResource, namespace string) (client.Dynamic, error) + func (df *FakeDynamicFactory) ClientForGroupVersionResource(gvr schema.GroupVersionResource, resource metav1.APIResource, namespace string) (client.Dynamic, error) + type FakeMapper struct + AutoReturnResource bool + Resources map[schema.GroupVersionResource]schema.GroupVersionResource + func (m *FakeMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error) + type FakeSnapshotService struct + RestorableVolumes map[api.VolumeBackupInfo]string + SnapshotsTaken sets.String + SnapshottableVolumes map[string]api.VolumeBackupInfo + func (s *FakeSnapshotService) CreateSnapshot(volumeID string) (string, error) + func (s *FakeSnapshotService) CreateVolumeFromSnapshot(snapshotID, volumeType string, iops *int) (string, error) + func (s *FakeSnapshotService) DeleteSnapshot(snapshotID string) error + func (s *FakeSnapshotService) GetAllSnapshots() ([]string, error) + func (s *FakeSnapshotService) GetVolumeInfo(volumeID string) (string, *int, error) + type TestBackup struct + func NewTestBackup() *TestBackup + func (b *TestBackup) WithExcludedNamespaces(ns ...string) *TestBackup + func (b *TestBackup) WithExcludedResources(r ...string) *TestBackup + func (b *TestBackup) WithExpiration(expiration time.Time) *TestBackup + func (b *TestBackup) WithIncludedNamespaces(ns ...string) *TestBackup + func (b *TestBackup) WithIncludedResources(r ...string) *TestBackup + func (b *TestBackup) WithLabel(key, value string) *TestBackup + func (b *TestBackup) WithName(name string) *TestBackup + func (b *TestBackup) WithNamespace(namespace string) *TestBackup + func (b *TestBackup) WithPhase(phase v1.BackupPhase) *TestBackup + func (b *TestBackup) WithSnapshot(pv string, snapshot string) *TestBackup + func (b *TestBackup) WithTTL(ttl time.Duration) *TestBackup + func (b *TestBackup) WithVersion(version int) *TestBackup + type TestRestore struct + func NewTestRestore(ns, name string, phase api.RestorePhase) *TestRestore + func (r *TestRestore) WithBackup(name string) *TestRestore + func (r *TestRestore) WithErrors(e api.RestoreResult) *TestRestore + func (r *TestRestore) WithRestorableNamespace(name string) *TestRestore + func (r *TestRestore) WithValidationError(err string) *TestRestore + type TestSchedule struct + func NewTestSchedule(namespace, name string) *TestSchedule + func (s *TestSchedule) WithCronSchedule(cronExpression string) *TestSchedule + func (s *TestSchedule) WithLastBackupTime(timeString string) *TestSchedule + func (s *TestSchedule) WithPhase(phase api.SchedulePhase) *TestSchedule + func (s *TestSchedule) WithValidationError(msg string) *TestSchedule