Documentation ¶
Index ¶
- Variables
- func RegisterBuildSlaveServer(s grpc.ServiceRegistrar, srv BuildSlaveServer)
- func RegisterGoBuildSlaveServer(s grpc.ServiceRegistrar, srv GoBuildSlaveServer)
- type BuildSlaveClient
- type BuildSlaveServer
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetDisk() int64
- func (x *Config) GetExternal() bool
- func (x *Config) GetGoVersion() string
- func (x *Config) GetMemory() int64
- func (x *Config) GetSupportsCds() bool
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ConfigRequest
- type ConfigResponse
- type Empty
- type GoBuildSlaveClient
- type GoBuildSlaveServer
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetBootstrap() bool
- func (x *Job) GetBreakout() bool
- func (x *Job) GetGoPath() string
- func (x *Job) GetName() string
- func (x *Job) GetPartialBootstrap() bool
- func (x *Job) GetRequirements() []*Requirement
- func (x *Job) GetSudo() bool
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- type JobAssignment
- func (*JobAssignment) Descriptor() ([]byte, []int)deprecated
- func (x *JobAssignment) GetBits() int32
- func (x *JobAssignment) GetBuildFail() int32
- func (x *JobAssignment) GetCommandKey() string
- func (x *JobAssignment) GetDiscoverCount() int32
- func (x *JobAssignment) GetHost() string
- func (x *JobAssignment) GetJob() *Job
- func (x *JobAssignment) GetLastTransitionTime() int64
- func (x *JobAssignment) GetLastUpdateTime() int64
- func (x *JobAssignment) GetLastVersionPull() int64
- func (x *JobAssignment) GetPort() int32
- func (x *JobAssignment) GetQueuePos() int32
- func (x *JobAssignment) GetRunningVersion() string
- func (x *JobAssignment) GetServer() string
- func (x *JobAssignment) GetStartTime() int64
- func (x *JobAssignment) GetState() State
- func (x *JobAssignment) GetStatus() string
- func (x *JobAssignment) GetSubState() string
- func (*JobAssignment) ProtoMessage()
- func (x *JobAssignment) ProtoReflect() protoreflect.Message
- func (x *JobAssignment) Reset()
- func (x *JobAssignment) String() string
- type JobDetails
- func (*JobDetails) Descriptor() ([]byte, []int)deprecated
- func (x *JobDetails) GetSpec() *JobSpec
- func (x *JobDetails) GetStartTime() int64
- func (x *JobDetails) GetState() State
- func (x *JobDetails) GetTestCount() int32
- func (*JobDetails) ProtoMessage()
- func (x *JobDetails) ProtoReflect() protoreflect.Message
- func (x *JobDetails) Reset()
- func (x *JobDetails) String() string
- type JobList
- type JobSpec
- func (*JobSpec) Descriptor() ([]byte, []int)deprecated
- func (x *JobSpec) GetArgs() []string
- func (x *JobSpec) GetCds() bool
- func (x *JobSpec) GetDisk() int64
- func (x *JobSpec) GetExternal() bool
- func (x *JobSpec) GetHost() string
- func (x *JobSpec) GetName() string
- func (x *JobSpec) GetPort() int32
- func (x *JobSpec) GetServer() string
- func (*JobSpec) ProtoMessage()
- func (x *JobSpec) ProtoReflect() protoreflect.Message
- func (x *JobSpec) Reset()
- func (x *JobSpec) String() string
- type KillRequest
- type KillResponse
- type ListRequest
- type ListResponse
- type Requirement
- func (*Requirement) Descriptor() ([]byte, []int)deprecated
- func (x *Requirement) GetCategory() RequirementCategory
- func (x *Requirement) GetProperties() string
- func (*Requirement) ProtoMessage()
- func (x *Requirement) ProtoReflect() protoreflect.Message
- func (x *Requirement) Reset()
- func (x *Requirement) String() string
- type RequirementCategory
- func (RequirementCategory) Descriptor() protoreflect.EnumDescriptor
- func (x RequirementCategory) Enum() *RequirementCategory
- func (RequirementCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x RequirementCategory) Number() protoreflect.EnumNumber
- func (x RequirementCategory) String() string
- func (RequirementCategory) Type() protoreflect.EnumType
- type RunRequest
- type RunResponse
- type ShutdownRequest
- type ShutdownResponse
- type SlaveConfig
- type State
- type UnimplementedBuildSlaveServer
- func (UnimplementedBuildSlaveServer) FullShutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
- func (UnimplementedBuildSlaveServer) KillJob(context.Context, *KillRequest) (*KillResponse, error)
- func (UnimplementedBuildSlaveServer) ListJobs(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedBuildSlaveServer) RunJob(context.Context, *RunRequest) (*RunResponse, error)
- func (UnimplementedBuildSlaveServer) SlaveConfig(context.Context, *ConfigRequest) (*ConfigResponse, error)
- func (UnimplementedBuildSlaveServer) UpdateJob(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnimplementedGoBuildSlaveServer
- func (UnimplementedGoBuildSlaveServer) BuildJob(context.Context, *JobSpec) (*Empty, error)
- func (UnimplementedGoBuildSlaveServer) GetConfig(context.Context, *Empty) (*Config, error)
- func (UnimplementedGoBuildSlaveServer) Kill(context.Context, *JobSpec) (*Empty, error)
- func (UnimplementedGoBuildSlaveServer) List(context.Context, *Empty) (*JobList, error)
- func (UnimplementedGoBuildSlaveServer) Run(context.Context, *JobSpec) (*Empty, error)
- func (UnimplementedGoBuildSlaveServer) Update(context.Context, *JobSpec) (*Empty, error)
- type UnsafeBuildSlaveServer
- type UnsafeGoBuildSlaveServer
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var ( RequirementCategory_name = map[int32]string{ 0: "UNKNOWN", 1: "DISK", 2: "EXTERNAL", 3: "SERVER", 4: "NETWORK", 5: "ACCESS_POINT", 6: "RECEIPT_PRINTER", 7: "BITS", 8: "HOST_TYPE", 9: "ZONE", } RequirementCategory_value = map[string]int32{ "UNKNOWN": 0, "DISK": 1, "EXTERNAL": 2, "SERVER": 3, "NETWORK": 4, "ACCESS_POINT": 5, "RECEIPT_PRINTER": 6, "BITS": 7, "HOST_TYPE": 8, "ZONE": 9, } )
Enum value maps for RequirementCategory.
var ( State_name = map[int32]string{ 0: "WARMUP", 11: "ACKNOWLEDGED", 1: "BUILDING", 2: "BUILT", 12: "VERSION_CHECK", 3: "RUNNING", 4: "UPDATE_STARTING", 5: "UPDATING", 6: "KILLING", 7: "DEAD", 8: "PENDING", 9: "DIED", 10: "BRINK_OF_DEATH", } State_value = map[string]int32{ "WARMUP": 0, "ACKNOWLEDGED": 11, "BUILDING": 1, "BUILT": 2, "VERSION_CHECK": 12, "RUNNING": 3, "UPDATE_STARTING": 4, "UPDATING": 5, "KILLING": 6, "DEAD": 7, "PENDING": 8, "DIED": 9, "BRINK_OF_DEATH": 10, } )
Enum value maps for State.
var File_slave_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuildSlaveServer ¶
func RegisterBuildSlaveServer(s grpc.ServiceRegistrar, srv BuildSlaveServer)
func RegisterGoBuildSlaveServer ¶
func RegisterGoBuildSlaveServer(s grpc.ServiceRegistrar, srv GoBuildSlaveServer)
Types ¶
type BuildSlaveClient ¶
type BuildSlaveClient interface { RunJob(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error) UpdateJob(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) KillJob(ctx context.Context, in *KillRequest, opts ...grpc.CallOption) (*KillResponse, error) ListJobs(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) SlaveConfig(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error) FullShutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) }
BuildSlaveClient is the client API for BuildSlave 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.
func NewBuildSlaveClient ¶
func NewBuildSlaveClient(cc grpc.ClientConnInterface) BuildSlaveClient
type BuildSlaveServer ¶
type BuildSlaveServer interface { RunJob(context.Context, *RunRequest) (*RunResponse, error) UpdateJob(context.Context, *UpdateRequest) (*UpdateResponse, error) KillJob(context.Context, *KillRequest) (*KillResponse, error) ListJobs(context.Context, *ListRequest) (*ListResponse, error) SlaveConfig(context.Context, *ConfigRequest) (*ConfigResponse, error) FullShutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) }
BuildSlaveServer is the server API for BuildSlave service. All implementations should embed UnimplementedBuildSlaveServer for forward compatibility
type Config ¶
type Config struct { Memory int64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` Disk int64 `protobuf:"varint,2,opt,name=disk,proto3" json:"disk,omitempty"` External bool `protobuf:"varint,3,opt,name=external,proto3" json:"external,omitempty"` GoVersion string `protobuf:"bytes,4,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` SupportsCds bool `protobuf:"varint,5,opt,name=supports_cds,json=supportsCds,proto3" json:"supports_cds,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetExternal ¶
func (*Config) GetGoVersion ¶
func (*Config) GetSupportsCds ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type ConfigRequest ¶
type ConfigRequest struct {
// contains filtered or unexported fields
}
func (*ConfigRequest) Descriptor
deprecated
func (*ConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.
func (*ConfigRequest) ProtoMessage ¶
func (*ConfigRequest) ProtoMessage()
func (*ConfigRequest) ProtoReflect ¶
func (x *ConfigRequest) ProtoReflect() protoreflect.Message
func (*ConfigRequest) Reset ¶
func (x *ConfigRequest) Reset()
func (*ConfigRequest) String ¶
func (x *ConfigRequest) String() string
type ConfigResponse ¶
type ConfigResponse struct { Config *SlaveConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*ConfigResponse) Descriptor
deprecated
func (*ConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigResponse.ProtoReflect.Descriptor instead.
func (*ConfigResponse) GetConfig ¶
func (x *ConfigResponse) GetConfig() *SlaveConfig
func (*ConfigResponse) ProtoMessage ¶
func (*ConfigResponse) ProtoMessage()
func (*ConfigResponse) ProtoReflect ¶
func (x *ConfigResponse) ProtoReflect() protoreflect.Message
func (*ConfigResponse) Reset ¶
func (x *ConfigResponse) Reset()
func (*ConfigResponse) String ¶
func (x *ConfigResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GoBuildSlaveClient ¶
type GoBuildSlaveClient interface { Update(ctx context.Context, in *JobSpec, opts ...grpc.CallOption) (*Empty, error) BuildJob(ctx context.Context, in *JobSpec, opts ...grpc.CallOption) (*Empty, error) Run(ctx context.Context, in *JobSpec, opts ...grpc.CallOption) (*Empty, error) Kill(ctx context.Context, in *JobSpec, opts ...grpc.CallOption) (*Empty, error) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*JobList, error) GetConfig(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Config, error) }
GoBuildSlaveClient is the client API for GoBuildSlave 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.
func NewGoBuildSlaveClient ¶
func NewGoBuildSlaveClient(cc grpc.ClientConnInterface) GoBuildSlaveClient
type GoBuildSlaveServer ¶
type GoBuildSlaveServer interface { Update(context.Context, *JobSpec) (*Empty, error) BuildJob(context.Context, *JobSpec) (*Empty, error) Run(context.Context, *JobSpec) (*Empty, error) Kill(context.Context, *JobSpec) (*Empty, error) List(context.Context, *Empty) (*JobList, error) GetConfig(context.Context, *Empty) (*Config, error) }
GoBuildSlaveServer is the server API for GoBuildSlave service. All implementations should embed UnimplementedGoBuildSlaveServer for forward compatibility
type Job ¶
type Job struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` GoPath string `protobuf:"bytes,2,opt,name=go_path,json=goPath,proto3" json:"go_path,omitempty"` Requirements []*Requirement `protobuf:"bytes,3,rep,name=requirements,proto3" json:"requirements,omitempty"` Sudo bool `protobuf:"varint,4,opt,name=sudo,proto3" json:"sudo,omitempty"` Bootstrap bool `protobuf:"varint,5,opt,name=bootstrap,proto3" json:"bootstrap,omitempty"` Breakout bool `protobuf:"varint,6,opt,name=breakout,proto3" json:"breakout,omitempty"` // We partial bootstrap if we need something to come up // when it doesn't currently exist. PartialBootstrap bool `protobuf:"varint,7,opt,name=partial_bootstrap,json=partialBootstrap,proto3" json:"partial_bootstrap,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) GetBootstrap ¶
func (*Job) GetBreakout ¶
func (*Job) GetPartialBootstrap ¶
func (*Job) GetRequirements ¶
func (x *Job) GetRequirements() []*Requirement
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type JobAssignment ¶
type JobAssignment struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` State State `protobuf:"varint,4,opt,name=state,proto3,enum=gobuildslave.State" json:"state,omitempty"` StartTime int64 `protobuf:"varint,6,opt,name=startTime,proto3" json:"startTime,omitempty"` CommandKey string `protobuf:"bytes,7,opt,name=command_key,json=commandKey,proto3" json:"command_key,omitempty"` BuildFail int32 `protobuf:"varint,8,opt,name=build_fail,json=buildFail,proto3" json:"build_fail,omitempty"` RunningVersion string `protobuf:"bytes,9,opt,name=running_version,json=runningVersion,proto3" json:"running_version,omitempty"` DiscoverCount int32 `protobuf:"varint,10,opt,name=discover_count,json=discoverCount,proto3" json:"discover_count,omitempty"` Status string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` LastTransitionTime int64 `protobuf:"varint,12,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"` QueuePos int32 `protobuf:"varint,13,opt,name=queue_pos,json=queuePos,proto3" json:"queue_pos,omitempty"` LastVersionPull int64 `protobuf:"varint,14,opt,name=last_version_pull,json=lastVersionPull,proto3" json:"last_version_pull,omitempty"` LastUpdateTime int64 `protobuf:"varint,15,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` SubState string `protobuf:"bytes,16,opt,name=sub_state,json=subState,proto3" json:"sub_state,omitempty"` Bits int32 `protobuf:"varint,17,opt,name=bits,proto3" json:"bits,omitempty"` // contains filtered or unexported fields }
func (*JobAssignment) Descriptor
deprecated
func (*JobAssignment) Descriptor() ([]byte, []int)
Deprecated: Use JobAssignment.ProtoReflect.Descriptor instead.
func (*JobAssignment) GetBits ¶
func (x *JobAssignment) GetBits() int32
func (*JobAssignment) GetBuildFail ¶
func (x *JobAssignment) GetBuildFail() int32
func (*JobAssignment) GetCommandKey ¶
func (x *JobAssignment) GetCommandKey() string
func (*JobAssignment) GetDiscoverCount ¶
func (x *JobAssignment) GetDiscoverCount() int32
func (*JobAssignment) GetHost ¶
func (x *JobAssignment) GetHost() string
func (*JobAssignment) GetJob ¶
func (x *JobAssignment) GetJob() *Job
func (*JobAssignment) GetLastTransitionTime ¶
func (x *JobAssignment) GetLastTransitionTime() int64
func (*JobAssignment) GetLastUpdateTime ¶
func (x *JobAssignment) GetLastUpdateTime() int64
func (*JobAssignment) GetLastVersionPull ¶
func (x *JobAssignment) GetLastVersionPull() int64
func (*JobAssignment) GetPort ¶
func (x *JobAssignment) GetPort() int32
func (*JobAssignment) GetQueuePos ¶
func (x *JobAssignment) GetQueuePos() int32
func (*JobAssignment) GetRunningVersion ¶
func (x *JobAssignment) GetRunningVersion() string
func (*JobAssignment) GetServer ¶
func (x *JobAssignment) GetServer() string
func (*JobAssignment) GetStartTime ¶
func (x *JobAssignment) GetStartTime() int64
func (*JobAssignment) GetState ¶
func (x *JobAssignment) GetState() State
func (*JobAssignment) GetStatus ¶
func (x *JobAssignment) GetStatus() string
func (*JobAssignment) GetSubState ¶
func (x *JobAssignment) GetSubState() string
func (*JobAssignment) ProtoMessage ¶
func (*JobAssignment) ProtoMessage()
func (*JobAssignment) ProtoReflect ¶
func (x *JobAssignment) ProtoReflect() protoreflect.Message
func (*JobAssignment) Reset ¶
func (x *JobAssignment) Reset()
func (*JobAssignment) String ¶
func (x *JobAssignment) String() string
type JobDetails ¶
type JobDetails struct { Spec *JobSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` State State `protobuf:"varint,2,opt,name=state,proto3,enum=gobuildslave.State" json:"state,omitempty"` StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` TestCount int32 `protobuf:"varint,4,opt,name=test_count,json=testCount,proto3" json:"test_count,omitempty"` // contains filtered or unexported fields }
func (*JobDetails) Descriptor
deprecated
func (*JobDetails) Descriptor() ([]byte, []int)
Deprecated: Use JobDetails.ProtoReflect.Descriptor instead.
func (*JobDetails) GetSpec ¶
func (x *JobDetails) GetSpec() *JobSpec
func (*JobDetails) GetStartTime ¶
func (x *JobDetails) GetStartTime() int64
func (*JobDetails) GetState ¶
func (x *JobDetails) GetState() State
func (*JobDetails) GetTestCount ¶
func (x *JobDetails) GetTestCount() int32
func (*JobDetails) ProtoMessage ¶
func (*JobDetails) ProtoMessage()
func (*JobDetails) ProtoReflect ¶
func (x *JobDetails) ProtoReflect() protoreflect.Message
func (*JobDetails) Reset ¶
func (x *JobDetails) Reset()
func (*JobDetails) String ¶
func (x *JobDetails) String() string
type JobList ¶
type JobList struct { Details []*JobDetails `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*JobList) Descriptor
deprecated
func (*JobList) GetDetails ¶
func (x *JobList) GetDetails() []*JobDetails
func (*JobList) ProtoMessage ¶
func (*JobList) ProtoMessage()
func (*JobList) ProtoReflect ¶
func (x *JobList) ProtoReflect() protoreflect.Message
type JobSpec ¶
type JobSpec struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` Disk int64 `protobuf:"varint,3,opt,name=disk,proto3" json:"disk,omitempty"` Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"` External bool `protobuf:"varint,5,opt,name=external,proto3" json:"external,omitempty"` Host string `protobuf:"bytes,6,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"` Cds bool `protobuf:"varint,8,opt,name=cds,proto3" json:"cds,omitempty"` // contains filtered or unexported fields }
func (*JobSpec) Descriptor
deprecated
func (*JobSpec) GetExternal ¶
func (*JobSpec) ProtoMessage ¶
func (*JobSpec) ProtoMessage()
func (*JobSpec) ProtoReflect ¶
func (x *JobSpec) ProtoReflect() protoreflect.Message
type KillRequest ¶
type KillRequest struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*KillRequest) Descriptor
deprecated
func (*KillRequest) Descriptor() ([]byte, []int)
Deprecated: Use KillRequest.ProtoReflect.Descriptor instead.
func (*KillRequest) GetJob ¶
func (x *KillRequest) GetJob() *Job
func (*KillRequest) ProtoMessage ¶
func (*KillRequest) ProtoMessage()
func (*KillRequest) ProtoReflect ¶
func (x *KillRequest) ProtoReflect() protoreflect.Message
func (*KillRequest) Reset ¶
func (x *KillRequest) Reset()
func (*KillRequest) String ¶
func (x *KillRequest) String() string
type KillResponse ¶
type KillResponse struct {
// contains filtered or unexported fields
}
func (*KillResponse) Descriptor
deprecated
func (*KillResponse) Descriptor() ([]byte, []int)
Deprecated: Use KillResponse.ProtoReflect.Descriptor instead.
func (*KillResponse) ProtoMessage ¶
func (*KillResponse) ProtoMessage()
func (*KillResponse) ProtoReflect ¶
func (x *KillResponse) ProtoReflect() protoreflect.Message
func (*KillResponse) Reset ¶
func (x *KillResponse) Reset()
func (*KillResponse) String ¶
func (x *KillResponse) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Jobs []*JobAssignment `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetJobs ¶
func (x *ListResponse) GetJobs() []*JobAssignment
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type Requirement ¶
type Requirement struct { Category RequirementCategory `protobuf:"varint,1,opt,name=category,proto3,enum=gobuildslave.RequirementCategory" json:"category,omitempty"` Properties string `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"` // contains filtered or unexported fields }
func (*Requirement) Descriptor
deprecated
func (*Requirement) Descriptor() ([]byte, []int)
Deprecated: Use Requirement.ProtoReflect.Descriptor instead.
func (*Requirement) GetCategory ¶
func (x *Requirement) GetCategory() RequirementCategory
func (*Requirement) GetProperties ¶
func (x *Requirement) GetProperties() string
func (*Requirement) ProtoMessage ¶
func (*Requirement) ProtoMessage()
func (*Requirement) ProtoReflect ¶
func (x *Requirement) ProtoReflect() protoreflect.Message
func (*Requirement) Reset ¶
func (x *Requirement) Reset()
func (*Requirement) String ¶
func (x *Requirement) String() string
type RequirementCategory ¶
type RequirementCategory int32
const ( RequirementCategory_UNKNOWN RequirementCategory = 0 RequirementCategory_DISK RequirementCategory = 1 RequirementCategory_EXTERNAL RequirementCategory = 2 RequirementCategory_SERVER RequirementCategory = 3 RequirementCategory_NETWORK RequirementCategory = 4 RequirementCategory_ACCESS_POINT RequirementCategory = 5 RequirementCategory_RECEIPT_PRINTER RequirementCategory = 6 RequirementCategory_BITS RequirementCategory = 7 RequirementCategory_HOST_TYPE RequirementCategory = 8 RequirementCategory_ZONE RequirementCategory = 9 )
func (RequirementCategory) Descriptor ¶
func (RequirementCategory) Descriptor() protoreflect.EnumDescriptor
func (RequirementCategory) Enum ¶
func (x RequirementCategory) Enum() *RequirementCategory
func (RequirementCategory) EnumDescriptor
deprecated
func (RequirementCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use RequirementCategory.Descriptor instead.
func (RequirementCategory) Number ¶
func (x RequirementCategory) Number() protoreflect.EnumNumber
func (RequirementCategory) String ¶
func (x RequirementCategory) String() string
func (RequirementCategory) Type ¶
func (RequirementCategory) Type() protoreflect.EnumType
type RunRequest ¶
type RunRequest struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Bits int32 `protobuf:"varint,2,opt,name=bits,proto3" json:"bits,omitempty"` // contains filtered or unexported fields }
func (*RunRequest) Descriptor
deprecated
func (*RunRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.
func (*RunRequest) GetBits ¶
func (x *RunRequest) GetBits() int32
func (*RunRequest) GetJob ¶
func (x *RunRequest) GetJob() *Job
func (*RunRequest) ProtoMessage ¶
func (*RunRequest) ProtoMessage()
func (*RunRequest) ProtoReflect ¶
func (x *RunRequest) ProtoReflect() protoreflect.Message
func (*RunRequest) Reset ¶
func (x *RunRequest) Reset()
func (*RunRequest) String ¶
func (x *RunRequest) String() string
type RunResponse ¶
type RunResponse struct {
// contains filtered or unexported fields
}
func (*RunResponse) Descriptor
deprecated
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) ProtoMessage ¶
func (*RunResponse) ProtoMessage()
func (*RunResponse) ProtoReflect ¶
func (x *RunResponse) ProtoReflect() protoreflect.Message
func (*RunResponse) Reset ¶
func (x *RunResponse) Reset()
func (*RunResponse) String ¶
func (x *RunResponse) String() string
type ShutdownRequest ¶
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type SlaveConfig ¶
type SlaveConfig struct { Requirements []*Requirement `protobuf:"bytes,1,rep,name=requirements,proto3" json:"requirements,omitempty"` // contains filtered or unexported fields }
func (*SlaveConfig) Descriptor
deprecated
func (*SlaveConfig) Descriptor() ([]byte, []int)
Deprecated: Use SlaveConfig.ProtoReflect.Descriptor instead.
func (*SlaveConfig) GetRequirements ¶
func (x *SlaveConfig) GetRequirements() []*Requirement
func (*SlaveConfig) ProtoMessage ¶
func (*SlaveConfig) ProtoMessage()
func (*SlaveConfig) ProtoReflect ¶
func (x *SlaveConfig) ProtoReflect() protoreflect.Message
func (*SlaveConfig) Reset ¶
func (x *SlaveConfig) Reset()
func (*SlaveConfig) String ¶
func (x *SlaveConfig) String() string
type State ¶
type State int32
const ( State_WARMUP State = 0 State_ACKNOWLEDGED State = 11 State_BUILDING State = 1 State_BUILT State = 2 State_VERSION_CHECK State = 12 State_RUNNING State = 3 State_UPDATE_STARTING State = 4 State_UPDATING State = 5 State_KILLING State = 6 State_DEAD State = 7 State_PENDING State = 8 State_DIED State = 9 State_BRINK_OF_DEATH State = 10 )
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
type UnimplementedBuildSlaveServer ¶
type UnimplementedBuildSlaveServer struct { }
UnimplementedBuildSlaveServer should be embedded to have forward compatible implementations.
func (UnimplementedBuildSlaveServer) FullShutdown ¶
func (UnimplementedBuildSlaveServer) FullShutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
func (UnimplementedBuildSlaveServer) KillJob ¶
func (UnimplementedBuildSlaveServer) KillJob(context.Context, *KillRequest) (*KillResponse, error)
func (UnimplementedBuildSlaveServer) ListJobs ¶
func (UnimplementedBuildSlaveServer) ListJobs(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedBuildSlaveServer) RunJob ¶
func (UnimplementedBuildSlaveServer) RunJob(context.Context, *RunRequest) (*RunResponse, error)
func (UnimplementedBuildSlaveServer) SlaveConfig ¶
func (UnimplementedBuildSlaveServer) SlaveConfig(context.Context, *ConfigRequest) (*ConfigResponse, error)
func (UnimplementedBuildSlaveServer) UpdateJob ¶
func (UnimplementedBuildSlaveServer) UpdateJob(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnimplementedGoBuildSlaveServer ¶
type UnimplementedGoBuildSlaveServer struct { }
UnimplementedGoBuildSlaveServer should be embedded to have forward compatible implementations.
type UnsafeBuildSlaveServer ¶
type UnsafeBuildSlaveServer interface {
// contains filtered or unexported methods
}
UnsafeBuildSlaveServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildSlaveServer will result in compilation errors.
type UnsafeGoBuildSlaveServer ¶
type UnsafeGoBuildSlaveServer interface {
// contains filtered or unexported methods
}
UnsafeGoBuildSlaveServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoBuildSlaveServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetJob ¶
func (x *UpdateRequest) GetJob() *Job
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string