pb

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package pb provides generated Protocol Buffers for cache serialization.

Package pb is a generated protocol buffer package.

It is generated from these files:

source_cache.proto

It has these top-level messages:

Constraint
ProjectProperties
LockedProject

Index

Constants

This section is empty.

Variables

View Source
var Constraint_Type_name = map[int32]string{
	0: "Revision",
	1: "Branch",
	2: "DefaultBranch",
	3: "Version",
	4: "Semver",
}
View Source
var Constraint_Type_value = map[string]int32{
	"Revision":      0,
	"Branch":        1,
	"DefaultBranch": 2,
	"Version":       3,
	"Semver":        4,
}

Functions

This section is empty.

Types

type Constraint

type Constraint struct {
	Type  Constraint_Type `protobuf:"varint,1,opt,name=type,enum=pb.Constraint_Type" json:"type,omitempty"`
	Value string          `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Constraint is a serializable representation of a gps.Constraint or gps.UnpairedVersion.

func (*Constraint) Descriptor

func (*Constraint) Descriptor() ([]byte, []int)

func (*Constraint) GetType

func (m *Constraint) GetType() Constraint_Type

func (*Constraint) GetValue

func (m *Constraint) GetValue() string

func (*Constraint) ProtoMessage

func (*Constraint) ProtoMessage()

func (*Constraint) Reset

func (m *Constraint) Reset()

func (*Constraint) String

func (m *Constraint) String() string

type Constraint_Type

type Constraint_Type int32
const (
	Constraint_Revision      Constraint_Type = 0
	Constraint_Branch        Constraint_Type = 1
	Constraint_DefaultBranch Constraint_Type = 2
	Constraint_Version       Constraint_Type = 3
	Constraint_Semver        Constraint_Type = 4
)

func (Constraint_Type) EnumDescriptor

func (Constraint_Type) EnumDescriptor() ([]byte, []int)

func (Constraint_Type) String

func (x Constraint_Type) String() string

type LockedProject

type LockedProject struct {
	Root            string      `protobuf:"bytes,1,opt,name=root" json:"root,omitempty"`
	Source          string      `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"`
	UnpairedVersion *Constraint `protobuf:"bytes,3,opt,name=unpairedVersion" json:"unpairedVersion,omitempty"`
	Revision        string      `protobuf:"bytes,4,opt,name=revision" json:"revision,omitempty"`
	Packages        []string    `protobuf:"bytes,5,rep,name=packages" json:"packages,omitempty"`
}

LockedProject is a serializable representation of gps.LockedProject.

func (*LockedProject) Descriptor

func (*LockedProject) Descriptor() ([]byte, []int)

func (*LockedProject) GetPackages

func (m *LockedProject) GetPackages() []string

func (*LockedProject) GetRevision

func (m *LockedProject) GetRevision() string

func (*LockedProject) GetRoot

func (m *LockedProject) GetRoot() string

func (*LockedProject) GetSource

func (m *LockedProject) GetSource() string

func (*LockedProject) GetUnpairedVersion

func (m *LockedProject) GetUnpairedVersion() *Constraint

func (*LockedProject) ProtoMessage

func (*LockedProject) ProtoMessage()

func (*LockedProject) Reset

func (m *LockedProject) Reset()

func (*LockedProject) String

func (m *LockedProject) String() string

type ProjectProperties

type ProjectProperties struct {
	Root       string      `protobuf:"bytes,1,opt,name=root" json:"root,omitempty"`
	Source     string      `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"`
	Constraint *Constraint `protobuf:"bytes,3,opt,name=constraint" json:"constraint,omitempty"`
}

ProjectProperties is a serializable representation of gps.ProjectRoot and gps.ProjectProperties.

func (*ProjectProperties) Descriptor

func (*ProjectProperties) Descriptor() ([]byte, []int)

func (*ProjectProperties) GetConstraint

func (m *ProjectProperties) GetConstraint() *Constraint

func (*ProjectProperties) GetRoot

func (m *ProjectProperties) GetRoot() string

func (*ProjectProperties) GetSource

func (m *ProjectProperties) GetSource() string

func (*ProjectProperties) ProtoMessage

func (*ProjectProperties) ProtoMessage()

func (*ProjectProperties) Reset

func (m *ProjectProperties) Reset()

func (*ProjectProperties) String

func (m *ProjectProperties) String() string

Jump to

Keyboard shortcuts

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