repositoryimpl

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YAMLRepository

type YAMLRepository struct {
	// contains filtered or unexported fields
}

YAMLRepository stores permission sets as YAML files keyed by project ID.

func NewYAMLRepository

func NewYAMLRepository(s storage.Storage) *YAMLRepository

NewYAMLRepository creates a new YAML-backed permission repository.

func (*YAMLRepository) Get

func (r *YAMLRepository) Get(ctx context.Context, projectID string) (*permission.PermissionSet, error)

Get returns the permission set for a project. Returns an empty PermissionSet (not an error) if none exists yet.

func (*YAMLRepository) Upsert

Upsert creates or replaces the permission set for a project.

Jump to

Keyboard shortcuts

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