containerprofile

package
v0.0.337 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a ContainerProfile

func MatchContainerProfile added in v0.0.303

func MatchContainerProfile(label labels.Selector, field fields.Selector) storage.SelectionPredicate

MatchContainerProfile is the filter used by the generic etcd backend to watch events from etcd to clients of the apiserver only interested in specific labels/fields.

func NewREST

func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*registry.REST, error)

NewREST returns a RESTStorage object that will work against API services.

func SelectableFields

func SelectableFields(obj *softwarecomposition.ContainerProfile) fields.Set

SelectableFields returns a field set that represents the object.

Types

type ContainerProfileStrategy added in v0.0.303

type ContainerProfileStrategy struct {
	runtime.ObjectTyper
	names.NameGenerator
}

func NewStrategy

func NewStrategy(typer runtime.ObjectTyper) ContainerProfileStrategy

NewStrategy creates and returns a ContainerProfileStrategy instance

func (ContainerProfileStrategy) AllowCreateOnUpdate added in v0.0.303

func (ContainerProfileStrategy) AllowCreateOnUpdate() bool

func (ContainerProfileStrategy) AllowUnconditionalUpdate added in v0.0.303

func (ContainerProfileStrategy) AllowUnconditionalUpdate() bool

func (ContainerProfileStrategy) Canonicalize added in v0.0.303

func (ContainerProfileStrategy) Canonicalize(_ runtime.Object)

func (ContainerProfileStrategy) NamespaceScoped added in v0.0.303

func (ContainerProfileStrategy) NamespaceScoped() bool

func (ContainerProfileStrategy) PrepareForCreate added in v0.0.303

func (ContainerProfileStrategy) PrepareForCreate(_ context.Context, _ runtime.Object)

func (ContainerProfileStrategy) PrepareForUpdate added in v0.0.303

func (ContainerProfileStrategy) PrepareForUpdate(_ context.Context, obj, old runtime.Object)

func (ContainerProfileStrategy) Validate added in v0.0.303

func (ContainerProfileStrategy) ValidateUpdate added in v0.0.303

func (ContainerProfileStrategy) WarningsOnCreate added in v0.0.303

func (ContainerProfileStrategy) WarningsOnCreate(_ context.Context, _ runtime.Object) []string

WarningsOnCreate returns warnings for the creation of the given object.

func (ContainerProfileStrategy) WarningsOnUpdate added in v0.0.303

func (ContainerProfileStrategy) WarningsOnUpdate(_ context.Context, _, _ runtime.Object) []string

WarningsOnUpdate returns warnings for the given update.

type CustomREST added in v0.0.318

type CustomREST = genericrest.Store

CustomREST is a hand-written rest.Storage implementation for ContainerProfile, gated behind config.Config.CustomContainerProfileRestEnabled (see pkg/apiserver/apiserver.go). It talks directly to whatever storage.Interface it's given via NewCustomREST -- it does not reimplement SQLite/file access or the consolidation processor.

func NewCustomREST added in v0.0.318

func NewCustomREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*CustomREST, error)

NewCustomREST returns the custom rest.Storage implementation for containerprofile. Its signature intentionally matches NewREST's so it can be wired in as a drop-in alternative in pkg/apiserver/apiserver.go, including being passed the same non-default containerProfileStorageImpl storage.Interface NewREST is wired with today.

Jump to

Keyboard shortcuts

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