validation

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBranch

func ValidateBranch(branch string) error

ValidateBranch validates if the provided branch name follows git branch naming rules

func ValidateBranchStrategy

func ValidateBranchStrategy(strategy string) error

ValidateBranchStrategy validates if the branch strategy is valid

func ValidateDirection

func ValidateDirection(direction string) error

ValidateDirection validates if the sync direction is valid

func ValidateGitRepository

func ValidateGitRepository() error

ValidateGitRepository validates if the current directory is a git repository

func ValidateGitURL

func ValidateGitURL(repoURL string) error

ValidateGitURL validates if the provided URL is a valid git repository URL

func ValidateInterval

func ValidateInterval(intervalStr string) error

ValidateInterval validates if the sync interval is within reasonable bounds

func ValidatePath

func ValidatePath(path string) error

ValidatePath validates if the provided path is valid and writable

func ValidateRemote

func ValidateRemote(remoteName string) error

ValidateRemote validates if the git remote exists in the current repository

func ValidateTargetBranch

func ValidateTargetBranch(branchName string) error

ValidateTargetBranch validates if the target branch exists (for specific branch strategy)

Types

This section is empty.

Jump to

Keyboard shortcuts

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