branch

package
v0.111.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ProtectionSettingKey = "protected_branches"

Variables

View Source
var (
	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) GetRules

func (*ProtectionManager) IsBlocked

func (*ProtectionManager) SetRules added in v0.111.0

func (*ProtectionManager) SetRulesIf added in v0.111.0

func (m *ProtectionManager) SetRulesIf(ctx context.Context, repository *graveler.RepositoryRecord, rules *graveler.BranchProtectionRules, lastKnownChecksum *string) error

Jump to

Keyboard shortcuts

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