proto

package
v0.0.0-...-87f9d05 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Crash_CrashType_name = map[int32]string{
		0: "UNKNOWN",
		1: "MEMORY",
		2: "PANIC",
	}
	Crash_CrashType_value = map[string]int32{
		"UNKNOWN": 0,
		"MEMORY":  1,
		"PANIC":   2,
	}
)

Enum value maps for Crash_CrashType.

View Source
var File_buildserver_proto protoreflect.FileDescriptor

Functions

func RegisterBuildServiceServer

func RegisterBuildServiceServer(s grpc.ServiceRegistrar, srv BuildServiceServer)

Types

type BuildRequest

type BuildRequest struct {
	Job        *proto1.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	ForceBuild bool        `protobuf:"varint,2,opt,name=force_build,json=forceBuild,proto3" json:"force_build,omitempty"`
	Origin     string      `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	BitSize    int32       `protobuf:"varint,4,opt,name=bit_size,json=bitSize,proto3" json:"bit_size,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildRequest) Descriptor deprecated

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

Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.

func (*BuildRequest) GetBitSize

func (x *BuildRequest) GetBitSize() int32

func (*BuildRequest) GetForceBuild

func (x *BuildRequest) GetForceBuild() bool

func (*BuildRequest) GetJob

func (x *BuildRequest) GetJob() *proto1.Job

func (*BuildRequest) GetOrigin

func (x *BuildRequest) GetOrigin() string

func (*BuildRequest) ProtoMessage

func (*BuildRequest) ProtoMessage()

func (*BuildRequest) ProtoReflect

func (x *BuildRequest) ProtoReflect() protoreflect.Message

func (*BuildRequest) Reset

func (x *BuildRequest) Reset()

func (*BuildRequest) String

func (x *BuildRequest) String() string

type BuildResponse

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

func (*BuildResponse) Descriptor deprecated

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

Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.

func (*BuildResponse) ProtoMessage

func (*BuildResponse) ProtoMessage()

func (*BuildResponse) ProtoReflect

func (x *BuildResponse) ProtoReflect() protoreflect.Message

func (*BuildResponse) Reset

func (x *BuildResponse) Reset()

func (*BuildResponse) String

func (x *BuildResponse) String() string

type BuildServiceClient

type BuildServiceClient interface {
	Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error)
	GetVersions(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
	ReportCrash(ctx context.Context, in *CrashRequest, opts ...grpc.CallOption) (*CrashResponse, error)
}

BuildServiceClient is the client API for BuildService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type BuildServiceServer

type BuildServiceServer interface {
	Build(context.Context, *BuildRequest) (*BuildResponse, error)
	GetVersions(context.Context, *VersionRequest) (*VersionResponse, error)
	ReportCrash(context.Context, *CrashRequest) (*CrashResponse, error)
}

BuildServiceServer is the server API for BuildService service. All implementations should embed UnimplementedBuildServiceServer for forward compatibility

type Config

type Config struct {
	LatestVersions   map[string]*Version `` /* 191-byte string literal not displayed */
	Latest64Versions map[string]*Version `` /* 197-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetLatest64Versions

func (x *Config) GetLatest64Versions() map[string]*Version

func (*Config) GetLatestVersions

func (x *Config) GetLatestVersions() map[string]*Version

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Crash

type Crash struct {
	ErrorMessage string          `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	CrashType    Crash_CrashType `protobuf:"varint,2,opt,name=crash_type,json=crashType,proto3,enum=buildserver.Crash_CrashType" json:"crash_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Crash) Descriptor deprecated

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

Deprecated: Use Crash.ProtoReflect.Descriptor instead.

func (*Crash) GetCrashType

func (x *Crash) GetCrashType() Crash_CrashType

func (*Crash) GetErrorMessage

func (x *Crash) GetErrorMessage() string

func (*Crash) ProtoMessage

func (*Crash) ProtoMessage()

func (*Crash) ProtoReflect

func (x *Crash) ProtoReflect() protoreflect.Message

func (*Crash) Reset

func (x *Crash) Reset()

func (*Crash) String

func (x *Crash) String() string

type CrashRequest

type CrashRequest struct {
	Job     *proto1.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	Crash   *Crash      `protobuf:"bytes,2,opt,name=crash,proto3" json:"crash,omitempty"`
	Version string      `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Origin  string      `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*CrashRequest) Descriptor deprecated

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

Deprecated: Use CrashRequest.ProtoReflect.Descriptor instead.

func (*CrashRequest) GetCrash

func (x *CrashRequest) GetCrash() *Crash

func (*CrashRequest) GetJob

func (x *CrashRequest) GetJob() *proto1.Job

func (*CrashRequest) GetOrigin

func (x *CrashRequest) GetOrigin() string

func (*CrashRequest) GetVersion

func (x *CrashRequest) GetVersion() string

func (*CrashRequest) ProtoMessage

func (*CrashRequest) ProtoMessage()

func (*CrashRequest) ProtoReflect

func (x *CrashRequest) ProtoReflect() protoreflect.Message

func (*CrashRequest) Reset

func (x *CrashRequest) Reset()

func (*CrashRequest) String

func (x *CrashRequest) String() string

type CrashResponse

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

func (*CrashResponse) Descriptor deprecated

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

Deprecated: Use CrashResponse.ProtoReflect.Descriptor instead.

func (*CrashResponse) ProtoMessage

func (*CrashResponse) ProtoMessage()

func (*CrashResponse) ProtoReflect

func (x *CrashResponse) ProtoReflect() protoreflect.Message

func (*CrashResponse) Reset

func (x *CrashResponse) Reset()

func (*CrashResponse) String

func (x *CrashResponse) String() string

type Crash_CrashType

type Crash_CrashType int32
const (
	Crash_UNKNOWN Crash_CrashType = 0
	Crash_MEMORY  Crash_CrashType = 1
	Crash_PANIC   Crash_CrashType = 2
)

func (Crash_CrashType) Descriptor

func (Crash_CrashType) Enum

func (x Crash_CrashType) Enum() *Crash_CrashType

func (Crash_CrashType) EnumDescriptor deprecated

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

Deprecated: Use Crash_CrashType.Descriptor instead.

func (Crash_CrashType) Number

func (Crash_CrashType) String

func (x Crash_CrashType) String() string

func (Crash_CrashType) Type

type UnimplementedBuildServiceServer

type UnimplementedBuildServiceServer struct {
}

UnimplementedBuildServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedBuildServiceServer) Build

func (UnimplementedBuildServiceServer) GetVersions

func (UnimplementedBuildServiceServer) ReportCrash

type UnsafeBuildServiceServer

type UnsafeBuildServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBuildServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildServiceServer will result in compilation errors.

type Version

type Version struct {
	Job           *proto1.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	Version       string      `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Path          string      `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Server        string      `protobuf:"bytes,4,opt,name=server,proto3" json:"server,omitempty"`
	VersionDate   int64       `protobuf:"varint,5,opt,name=version_date,json=versionDate,proto3" json:"version_date,omitempty"`
	Crashes       []*Crash    `protobuf:"bytes,6,rep,name=crashes,proto3" json:"crashes,omitempty"`
	GithubHash    string      `protobuf:"bytes,7,opt,name=github_hash,json=githubHash,proto3" json:"github_hash,omitempty"`
	LastBuildTime int64       `protobuf:"varint,8,opt,name=last_build_time,json=lastBuildTime,proto3" json:"last_build_time,omitempty"`
	BitSize       int32       `protobuf:"varint,9,opt,name=bit_size,json=bitSize,proto3" json:"bit_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetBitSize

func (x *Version) GetBitSize() int32

func (*Version) GetCrashes

func (x *Version) GetCrashes() []*Crash

func (*Version) GetGithubHash

func (x *Version) GetGithubHash() string

func (*Version) GetJob

func (x *Version) GetJob() *proto1.Job

func (*Version) GetLastBuildTime

func (x *Version) GetLastBuildTime() int64

func (*Version) GetPath

func (x *Version) GetPath() string

func (*Version) GetServer

func (x *Version) GetServer() string

func (*Version) GetVersion

func (x *Version) GetVersion() string

func (*Version) GetVersionDate

func (x *Version) GetVersionDate() int64

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type VersionRequest

type VersionRequest struct {
	JustLatest bool        `protobuf:"varint,1,opt,name=just_latest,json=justLatest,proto3" json:"just_latest,omitempty"`
	Job        *proto1.Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
	Origin     string      `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	BitSize    int32       `protobuf:"varint,4,opt,name=bit_size,json=bitSize,proto3" json:"bit_size,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionRequest) Descriptor deprecated

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

Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.

func (*VersionRequest) GetBitSize

func (x *VersionRequest) GetBitSize() int32

func (*VersionRequest) GetJob

func (x *VersionRequest) GetJob() *proto1.Job

func (*VersionRequest) GetJustLatest

func (x *VersionRequest) GetJustLatest() bool

func (*VersionRequest) GetOrigin

func (x *VersionRequest) GetOrigin() string

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) ProtoReflect

func (x *VersionRequest) ProtoReflect() protoreflect.Message

func (*VersionRequest) Reset

func (x *VersionRequest) Reset()

func (*VersionRequest) String

func (x *VersionRequest) String() string

type VersionResponse

type VersionResponse struct {
	Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetVersions

func (x *VersionResponse) GetVersions() []*Version

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

func (x *VersionResponse) ProtoReflect() protoreflect.Message

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

Jump to

Keyboard shortcuts

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