Help us shape the future of Go! Take the 2026 Go Developer Survey

p4

package module
v0.0.0-...-2ad0538 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func Connect

func Connect(port string, username string, password string, client string) *Connection

func (*Connection) Counters

func (c *Connection) Counters() (map[string]string, error)

func (*Connection) Describe

func (c *Connection) Describe(change int) (Describe, error)

func (*Connection) GetCounter

func (c *Connection) GetCounter(counter string) (string, error)

func (*Connection) Print

func (c *Connection) Print(path string, clNumber int) ([]byte, error)

func (*Connection) ReviewByChangelist

func (c *Connection) ReviewByChangelist(clNumber int) ([]Review, error)

func (*Connection) ReviewByCounter

func (c *Connection) ReviewByCounter(counter string) ([]Review, error)

func (*Connection) SetCounter

func (c *Connection) SetCounter(counter string, value string) error

func (*Connection) Sync

func (c *Connection) Sync(path string, clNumber int) error

func (*Connection) User

func (c *Connection) User(username string) (User, error)

type Describe

type Describe struct {
	Change      int
	User        string
	Client      string
	Time        string
	Description string
	Status      string
	Files       []DescribeFile
}

type DescribeFile

type DescribeFile struct {
	Path    string
	Version int
	Action  string
}

type P4Error

type P4Error struct {
	Status    error
	Arguments []string
	Output    []byte
}

func (P4Error) Error

func (err P4Error) Error() string

type Review

type Review struct {
	Change int
	User   string
	Email  string
	Name   string
}

type User

type User struct {
	User     string
	Email    string
	FullName string
}

Jump to

Keyboard shortcuts

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