v1alpha1

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 defines versioned interfaces for archive capability

Index

Constants

This section is empty.

Variables

View Source
var ArchiveV1alpha1GV = schema.GroupVersion{Group: archive.CapabilityName, Version: "v1alpha1"}

ArchiveV1alpha1GV is group version used to register these objects

Functions

This section is empty.

Types

type ArchiveCapable

type ArchiveCapable interface {
	// Upsert create or update a record
	Upsert(ctx context.Context, record *archivev1alpha1.Record) error
	// Delete delete a record
	Delete(ctx context.Context, cluster string, uid string, opts *archivev1alpha1.DeleteOption) error
	// DeleteBatch delete records by conditions
	DeleteBatch(ctx context.Context, conditions []archivev1alpha1.Condition, opts *archivev1alpha1.DeleteOption) error

	// ListRecords list records by conditions
	ListRecords(ctx context.Context, query archivev1alpha1.Query, opts *archivev1alpha1.ListOptions) (*archivev1alpha1.RecordList, error)
	// ListRelatedRecords list related records by conditions
	ListRelatedRecords(ctx context.Context, query archivev1alpha1.Query, opts *archivev1alpha1.ListOptions) (*archivev1alpha1.RecordList, error)
	// Aggregate aggregate records by conditions
	Aggregate(ctx context.Context, aggs archivev1alpha1.AggregateQuery, opts *archivev1alpha1.ListOptions) (*archivev1alpha1.AggregateResult, error)
}

ArchiveCapable defines methods of archive capability

Jump to

Keyboard shortcuts

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