branch

package
v0.108.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ProtectionSettingKey = "protected_branches"

Variables

View Source
var (
	ErrRuleAlreadyExists = fmt.Errorf("branch protection rule already exists: %w", graveler.ErrNotUnique)
	ErrRuleNotExists     = fmt.Errorf("branch protection rule does not exist: %w", graveler.ErrNotFound)
)

Functions

This section is empty.

Types

type ProtectionManager

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

func NewProtectionManager

func NewProtectionManager(settingManager *settings.Manager) *ProtectionManager

func (*ProtectionManager) Add

func (m *ProtectionManager) Add(ctx context.Context, repository *graveler.RepositoryRecord, branchNamePattern string, blockedActions []graveler.BranchProtectionBlockedAction) error

func (*ProtectionManager) Delete

func (m *ProtectionManager) Delete(ctx context.Context, repository *graveler.RepositoryRecord, branchNamePattern string) error

func (*ProtectionManager) Get

func (*ProtectionManager) GetRules

func (*ProtectionManager) IsBlocked

Jump to

Keyboard shortcuts

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