checkout_mode

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	All             = ModeConstructor(^0)
	Default         = ModeConstructor(metadata)
	Blob            = ModeConstructor(blob)
	Metadata        = ModeConstructor(metadata)
	Lockfile        = ModeConstructor(lockfile)
	Conflict        = ModeConstructor(conflict)
	MetadataAndBlob = ModeConstructor(metadata | blob)
)

Variables

View Source
var AvailableModes = []Mode{
	none,
	metadata,
	blob,
	lockfile,
}

Functions

func IsErrInvalidCheckoutMode

func IsErrInvalidCheckoutMode(err error) bool

func MakeErrInvalidCheckoutMode

func MakeErrInvalidCheckoutMode(err error) errInvalidCheckoutMode

func MakeErrInvalidCheckoutModeMode

func MakeErrInvalidCheckoutModeMode(mode Mode) errInvalidCheckoutMode

Types

type Getter

type Getter interface {
	GetCheckoutMode() (Mode, error)
}

type Mode

type Mode int

func Make

func Make(constructors ...ModeConstructor) Mode

func MakeWith

func MakeWith(constructors map[ModeConstructor]bool) Mode

func (Mode) IncludesBlob

func (mode Mode) IncludesBlob() bool

func (Mode) IncludesLockfile

func (mode Mode) IncludesLockfile() bool

func (Mode) IncludesMetadata

func (mode Mode) IncludesMetadata() bool

func (Mode) IsBlobOnly

func (mode Mode) IsBlobOnly() bool

func (Mode) IsBlobRecognized

func (mode Mode) IsBlobRecognized() bool

func (Mode) IsConflict

func (mode Mode) IsConflict() bool

func (Mode) IsEmpty

func (mode Mode) IsEmpty() bool

func (Mode) IsMetadataOnly

func (mode Mode) IsMetadataOnly() bool

func (*Mode) Set

func (mode *Mode) Set(value string) (err error)

func (Mode) String

func (mode Mode) String() string

type ModeConstructor

type ModeConstructor int

Jump to

Keyboard shortcuts

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