resourcereleasebinding

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceReleaseBindingNotFound      = errors.New("resource release binding not found")
	ErrResourceReleaseBindingAlreadyExists = errors.New("resource release binding already exists")
	ErrResourceNotFound                    = errors.New("referenced resource not found")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateResourceReleaseBinding(ctx context.Context, namespaceName string, rb *openchoreov1alpha1.ResourceReleaseBinding) (*openchoreov1alpha1.ResourceReleaseBinding, error)
	UpdateResourceReleaseBinding(ctx context.Context, namespaceName string, rb *openchoreov1alpha1.ResourceReleaseBinding) (*openchoreov1alpha1.ResourceReleaseBinding, error)
	ListResourceReleaseBindings(ctx context.Context, namespaceName, resourceName string, opts services.ListOptions) (*services.ListResult[openchoreov1alpha1.ResourceReleaseBinding], error)
	GetResourceReleaseBinding(ctx context.Context, namespaceName, resourceReleaseBindingName string) (*openchoreov1alpha1.ResourceReleaseBinding, error)
	DeleteResourceReleaseBinding(ctx context.Context, namespaceName, resourceReleaseBindingName string) error
}

Service defines the resource release binding service interface.

func NewService

func NewService(k8sClient client.Client, logger *slog.Logger) Service

NewService creates a new resource release binding service without authorization.

func NewServiceWithAuthz

func NewServiceWithAuthz(k8sClient client.Client, authzPDP authz.PDP, logger *slog.Logger) Service

NewServiceWithAuthz creates a resource release binding service with authorization checks.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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