p4

package
v0.0.0-...-fd38cd5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoneObject interface{}

Functions

func Decode

func Decode(r io.Reader) (interface{}, error)

Types

type Change

type Change struct {
	Desc   string
	User   string
	Status string
	Change int
	Time   int

	Path       string
	Code       string
	ChangeType string
	Client     string
}

func (*Change) String

func (c *Change) String() string

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func NewConn

func NewConn(opts ConnOptions) *Conn

func (*Conn) Changes

func (p *Conn) Changes(paths []string) ([]Result, error)

func (*Conn) Dirs

func (p *Conn) Dirs(paths []string) ([]Result, error)

func (*Conn) Fstat

func (p *Conn) Fstat(paths []string) (results []Result, err error)

func (*Conn) Output

func (p *Conn) Output(args []string) ([]byte, error)

Output runs p4 and captures stdout.

func (*Conn) Print

func (p *Conn) Print(path string) (content []byte, err error)

func (*Conn) RunMarshaled

func (p *Conn) RunMarshaled(command string, args []string) (result []Result, err error)

Runs p4 with -G and captures the result lines.

type ConnOptions

type ConnOptions struct {
	Address string
	Binary  string
}

type Dir

type Dir struct {
	Dir string
}

func (*Dir) String

func (f *Dir) String() string

type Error

type Error struct {
	Generic  int
	Severity int
	Data     string
}

func (*Error) String

func (e *Error) String() string

type Result

type Result interface {
	String() string
}

//////////////

type Stat

type Stat struct {
	DepotFile   string
	HeadAction  string
	HeadType    string
	HeadTime    int64
	HeadRev     int64
	HeadChange  int64
	HeadModTime int64
	FileSize    int64
	Digest      string
}

Stat has the data for a single file revision.

func (*Stat) String

func (f *Stat) String() string

type TagLine

type TagLine struct {
	Tag   string
	Value []byte
}

Jump to

Keyboard shortcuts

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