object

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Sha1HexLength = 40
View Source
const Sha1Length = 20

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID [20]byte

func ParseID

func ParseID(sha1hex string) (ID, error)

func (ID) MarshalJSON

func (id ID) MarshalJSON() ([]byte, error)

func (ID) String

func (id ID) String() string

type Mode

type Mode int
const (
	UnknownMode Mode = iota
	RegularFileMode
	ExecutableFileMode
	SymLinkMode
	GitLinkMode
	DirectoryMode
)

func ParseMode

func ParseMode(str string) (Mode, error)

func (Mode) MarshalJSON

func (m Mode) MarshalJSON() ([]byte, error)

func (Mode) String

func (m Mode) String() string

type Type

type Type int
const (
	UnknownType Type = iota
	Blob
	Tree
	Commit
	Tag
)

func ParseType

func ParseType(typeString string) (Type, error)

func (Type) MarshalJSON

func (t Type) MarshalJSON() ([]byte, error)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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