api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPolicyReportsInterface

type ClusterPolicyReportsInterface interface {
	Get(ctx context.Context, name string) (v1alpha2.ClusterPolicyReport, error)
	List(ctx context.Context) ([]v1alpha2.ClusterPolicyReport, error)
	Create(ctx context.Context, cpolr v1alpha2.ClusterPolicyReport) error
	Update(ctx context.Context, cpolr v1alpha2.ClusterPolicyReport) error
	Delete(ctx context.Context, name string) error
}

type EphemeralReportsInterface

type EphemeralReportsInterface interface {
	Get(ctx context.Context, name, namespace string) (reportsv1.EphemeralReport, error)
	List(ctx context.Context, namespace string) ([]reportsv1.EphemeralReport, error)
	Create(ctx context.Context, polr reportsv1.EphemeralReport) error
	Update(ctx context.Context, polr reportsv1.EphemeralReport) error
	Delete(ctx context.Context, name, namespace string) error
}

type PolicyReportsInterface

type PolicyReportsInterface interface {
	Get(ctx context.Context, name, namespace string) (v1alpha2.PolicyReport, error)
	List(ctx context.Context, namespace string) ([]v1alpha2.PolicyReport, error)
	Create(ctx context.Context, polr v1alpha2.PolicyReport) error
	Update(ctx context.Context, polr v1alpha2.PolicyReport) error
	Delete(ctx context.Context, name, namespace string) error
}

type Storage

type Storage interface {
	Ready() bool
	PolicyReports() PolicyReportsInterface
	ClusterPolicyReports() ClusterPolicyReportsInterface
	EphemeralReports() EphemeralReportsInterface
	ClusterEphemeralReports() ClusterEphemeralReportsInterface
}

type Versioning

type Versioning interface {
	// SetResourceVersion sets the resource version to the provided value if its higher
	SetResourceVersion(string) error
	// UseResourceVersion returns the current resource version and increments the value by one
	UseResourceVersion() string
}

Jump to

Keyboard shortcuts

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