projectreleasebinding

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProjectReleaseBindingNotFound      = errors.New("project release binding not found")
	ErrProjectReleaseBindingAlreadyExists = errors.New("project release binding already exists")
	ErrProjectNotFound                    = errors.New("referenced project not found")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateProjectReleaseBinding(ctx context.Context, namespaceName string, rb *openchoreov1alpha1.ProjectReleaseBinding) (*openchoreov1alpha1.ProjectReleaseBinding, error)
	UpdateProjectReleaseBinding(ctx context.Context, namespaceName string, rb *openchoreov1alpha1.ProjectReleaseBinding) (*openchoreov1alpha1.ProjectReleaseBinding, error)
	ListProjectReleaseBindings(ctx context.Context, namespaceName, projectName string, opts services.ListOptions) (*services.ListResult[openchoreov1alpha1.ProjectReleaseBinding], error)
	GetProjectReleaseBinding(ctx context.Context, namespaceName, projectReleaseBindingName string) (*openchoreov1alpha1.ProjectReleaseBinding, error)
	DeleteProjectReleaseBinding(ctx context.Context, namespaceName, projectReleaseBindingName string) error
}

Service defines the project release binding service interface.

func NewService

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

NewService creates a new project release binding service without authorization.

func NewServiceWithAuthz

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

NewServiceWithAuthz creates a project 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