branch

package
v0.53.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ProtectionSettingKey = "protected_branches"

Variables

View Source
var (
	ErrRuleAlreadyExists = errors.New("branch protection rule already exists")
	ErrRuleNotExists     = errors.New("branch protection rule does not exist")
)

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, repositoryID graveler.RepositoryID, branchNamePattern string, blockedActions []graveler.BranchProtectionBlockedAction) error

func (*ProtectionManager) Delete

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

func (*ProtectionManager) Get

func (m *ProtectionManager) Get(ctx context.Context, repositoryID graveler.RepositoryID, branchNamePattern string) ([]graveler.BranchProtectionBlockedAction, error)

func (*ProtectionManager) GetRules

func (*ProtectionManager) IsBlocked

Jump to

Keyboard shortcuts

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