Documentation
¶
Overview ¶
Package lookout is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLookoutHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLookoutHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LookoutClient) error
- func RegisterLookoutHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLookoutHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LookoutServer) error
- func RegisterLookoutServer(s *grpc.Server, srv LookoutServer)
- func SwaggerJsonTemplate() string
- type DurationStats
- func (*DurationStats) Descriptor() ([]byte, []int)
- func (m *DurationStats) GetAverage() *types.Duration
- func (m *DurationStats) GetLongest() *types.Duration
- func (m *DurationStats) GetMedian() *types.Duration
- func (m *DurationStats) GetQ1() *types.Duration
- func (m *DurationStats) GetQ3() *types.Duration
- func (m *DurationStats) GetShortest() *types.Duration
- func (m *DurationStats) Marshal() (dAtA []byte, err error)
- func (m *DurationStats) MarshalTo(dAtA []byte) (int, error)
- func (m *DurationStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DurationStats) ProtoMessage()
- func (m *DurationStats) Reset()
- func (m *DurationStats) Size() (n int)
- func (this *DurationStats) String() string
- func (m *DurationStats) Unmarshal(dAtA []byte) error
- func (m *DurationStats) XXX_DiscardUnknown()
- func (m *DurationStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DurationStats) XXX_Merge(src proto.Message)
- func (m *DurationStats) XXX_Size() int
- func (m *DurationStats) XXX_Unmarshal(b []byte) error
- type GetJobSetsRequest
- func (*GetJobSetsRequest) Descriptor() ([]byte, []int)
- func (m *GetJobSetsRequest) GetActiveOnly() bool
- func (m *GetJobSetsRequest) GetNewestFirst() bool
- func (m *GetJobSetsRequest) GetQueue() string
- func (m *GetJobSetsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetJobSetsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetJobSetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetJobSetsRequest) ProtoMessage()
- func (m *GetJobSetsRequest) Reset()
- func (m *GetJobSetsRequest) Size() (n int)
- func (this *GetJobSetsRequest) String() string
- func (m *GetJobSetsRequest) Unmarshal(dAtA []byte) error
- func (m *GetJobSetsRequest) XXX_DiscardUnknown()
- func (m *GetJobSetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetJobSetsRequest) XXX_Merge(src proto.Message)
- func (m *GetJobSetsRequest) XXX_Size() int
- func (m *GetJobSetsRequest) XXX_Unmarshal(b []byte) error
- type GetJobSetsResponse
- func (*GetJobSetsResponse) Descriptor() ([]byte, []int)
- func (m *GetJobSetsResponse) GetJobSetInfos() []*JobSetInfo
- func (m *GetJobSetsResponse) Marshal() (dAtA []byte, err error)
- func (m *GetJobSetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetJobSetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetJobSetsResponse) ProtoMessage()
- func (m *GetJobSetsResponse) Reset()
- func (m *GetJobSetsResponse) Size() (n int)
- func (this *GetJobSetsResponse) String() string
- func (m *GetJobSetsResponse) Unmarshal(dAtA []byte) error
- func (m *GetJobSetsResponse) XXX_DiscardUnknown()
- func (m *GetJobSetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetJobSetsResponse) XXX_Merge(src proto.Message)
- func (m *GetJobSetsResponse) XXX_Size() int
- func (m *GetJobSetsResponse) XXX_Unmarshal(b []byte) error
- type GetJobsRequest
- func (*GetJobsRequest) Descriptor() ([]byte, []int)
- func (m *GetJobsRequest) GetJobId() string
- func (m *GetJobsRequest) GetJobSetIds() []string
- func (m *GetJobsRequest) GetJobStates() []string
- func (m *GetJobsRequest) GetNewestFirst() bool
- func (m *GetJobsRequest) GetOwner() string
- func (m *GetJobsRequest) GetQueue() string
- func (m *GetJobsRequest) GetSkip() uint32
- func (m *GetJobsRequest) GetTake() uint32
- func (m *GetJobsRequest) GetUserAnnotations() map[string]string
- func (m *GetJobsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetJobsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetJobsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetJobsRequest) ProtoMessage()
- func (m *GetJobsRequest) Reset()
- func (m *GetJobsRequest) Size() (n int)
- func (this *GetJobsRequest) String() string
- func (m *GetJobsRequest) Unmarshal(dAtA []byte) error
- func (m *GetJobsRequest) XXX_DiscardUnknown()
- func (m *GetJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetJobsRequest) XXX_Merge(src proto.Message)
- func (m *GetJobsRequest) XXX_Size() int
- func (m *GetJobsRequest) XXX_Unmarshal(b []byte) error
- type GetJobsResponse
- func (*GetJobsResponse) Descriptor() ([]byte, []int)
- func (m *GetJobsResponse) GetJobInfos() []*JobInfo
- func (m *GetJobsResponse) Marshal() (dAtA []byte, err error)
- func (m *GetJobsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetJobsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetJobsResponse) ProtoMessage()
- func (m *GetJobsResponse) Reset()
- func (m *GetJobsResponse) Size() (n int)
- func (this *GetJobsResponse) String() string
- func (m *GetJobsResponse) Unmarshal(dAtA []byte) error
- func (m *GetJobsResponse) XXX_DiscardUnknown()
- func (m *GetJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetJobsResponse) XXX_Merge(src proto.Message)
- func (m *GetJobsResponse) XXX_Size() int
- func (m *GetJobsResponse) XXX_Unmarshal(b []byte) error
- type JobInfo
- func (*JobInfo) Descriptor() ([]byte, []int)
- func (m *JobInfo) GetCancelled() *time.Time
- func (m *JobInfo) GetJob() *api.Job
- func (m *JobInfo) GetJobJson() string
- func (m *JobInfo) GetJobState() string
- func (m *JobInfo) GetRuns() []*RunInfo
- func (m *JobInfo) Marshal() (dAtA []byte, err error)
- func (m *JobInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *JobInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobInfo) ProtoMessage()
- func (m *JobInfo) Reset()
- func (m *JobInfo) Size() (n int)
- func (this *JobInfo) String() string
- func (m *JobInfo) Unmarshal(dAtA []byte) error
- func (m *JobInfo) XXX_DiscardUnknown()
- func (m *JobInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobInfo) XXX_Merge(src proto.Message)
- func (m *JobInfo) XXX_Size() int
- func (m *JobInfo) XXX_Unmarshal(b []byte) error
- type JobSetInfo
- func (*JobSetInfo) Descriptor() ([]byte, []int)
- func (m *JobSetInfo) GetJobSet() string
- func (m *JobSetInfo) GetJobsFailed() uint32
- func (m *JobSetInfo) GetJobsPending() uint32
- func (m *JobSetInfo) GetJobsQueued() uint32
- func (m *JobSetInfo) GetJobsRunning() uint32
- func (m *JobSetInfo) GetJobsSucceeded() uint32
- func (m *JobSetInfo) GetQueue() string
- func (m *JobSetInfo) GetQueuedStats() *DurationStats
- func (m *JobSetInfo) GetRunningStats() *DurationStats
- func (m *JobSetInfo) GetSubmitted() *time.Time
- func (m *JobSetInfo) Marshal() (dAtA []byte, err error)
- func (m *JobSetInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *JobSetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobSetInfo) ProtoMessage()
- func (m *JobSetInfo) Reset()
- func (m *JobSetInfo) Size() (n int)
- func (this *JobSetInfo) String() string
- func (m *JobSetInfo) Unmarshal(dAtA []byte) error
- func (m *JobSetInfo) XXX_DiscardUnknown()
- func (m *JobSetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobSetInfo) XXX_Merge(src proto.Message)
- func (m *JobSetInfo) XXX_Size() int
- func (m *JobSetInfo) XXX_Unmarshal(b []byte) error
- type LookoutClient
- type LookoutServer
- type QueueInfo
- func (*QueueInfo) Descriptor() ([]byte, []int)
- func (m *QueueInfo) GetJobsPending() uint32
- func (m *QueueInfo) GetJobsQueued() uint32
- func (m *QueueInfo) GetJobsRunning() uint32
- func (m *QueueInfo) GetLongestRunningDuration() *types.Duration
- func (m *QueueInfo) GetLongestRunningJob() *JobInfo
- func (m *QueueInfo) GetOldestQueuedDuration() *types.Duration
- func (m *QueueInfo) GetOldestQueuedJob() *JobInfo
- func (m *QueueInfo) GetQueue() string
- func (m *QueueInfo) Marshal() (dAtA []byte, err error)
- func (m *QueueInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *QueueInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueueInfo) ProtoMessage()
- func (m *QueueInfo) Reset()
- func (m *QueueInfo) Size() (n int)
- func (this *QueueInfo) String() string
- func (m *QueueInfo) Unmarshal(dAtA []byte) error
- func (m *QueueInfo) XXX_DiscardUnknown()
- func (m *QueueInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueueInfo) XXX_Merge(src proto.Message)
- func (m *QueueInfo) XXX_Size() int
- func (m *QueueInfo) XXX_Unmarshal(b []byte) error
- type RunInfo
- func (*RunInfo) Descriptor() ([]byte, []int)
- func (m *RunInfo) GetCluster() string
- func (m *RunInfo) GetCreated() *time.Time
- func (m *RunInfo) GetError() string
- func (m *RunInfo) GetFinished() *time.Time
- func (m *RunInfo) GetK8SId() string
- func (m *RunInfo) GetNode() string
- func (m *RunInfo) GetPodNumber() int32
- func (m *RunInfo) GetRunState() string
- func (m *RunInfo) GetStarted() *time.Time
- func (m *RunInfo) GetSucceeded() bool
- func (m *RunInfo) GetUnableToSchedule() bool
- func (m *RunInfo) Marshal() (dAtA []byte, err error)
- func (m *RunInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RunInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RunInfo) ProtoMessage()
- func (m *RunInfo) Reset()
- func (m *RunInfo) Size() (n int)
- func (this *RunInfo) String() string
- func (m *RunInfo) Unmarshal(dAtA []byte) error
- func (m *RunInfo) XXX_DiscardUnknown()
- func (m *RunInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunInfo) XXX_Merge(src proto.Message)
- func (m *RunInfo) XXX_Size() int
- func (m *RunInfo) XXX_Unmarshal(b []byte) error
- type SystemOverview
- func (*SystemOverview) Descriptor() ([]byte, []int)
- func (m *SystemOverview) GetQueues() []*QueueInfo
- func (m *SystemOverview) Marshal() (dAtA []byte, err error)
- func (m *SystemOverview) MarshalTo(dAtA []byte) (int, error)
- func (m *SystemOverview) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SystemOverview) ProtoMessage()
- func (m *SystemOverview) Reset()
- func (m *SystemOverview) Size() (n int)
- func (this *SystemOverview) String() string
- func (m *SystemOverview) Unmarshal(dAtA []byte) error
- func (m *SystemOverview) XXX_DiscardUnknown()
- func (m *SystemOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SystemOverview) XXX_Merge(src proto.Message)
- func (m *SystemOverview) XXX_Size() int
- func (m *SystemOverview) XXX_Unmarshal(b []byte) error
- type UnimplementedLookoutServer
- func (*UnimplementedLookoutServer) GetJobSets(ctx context.Context, req *GetJobSetsRequest) (*GetJobSetsResponse, error)
- func (*UnimplementedLookoutServer) GetJobs(ctx context.Context, req *GetJobsRequest) (*GetJobsResponse, error)
- func (*UnimplementedLookoutServer) Overview(ctx context.Context, req *types.Empty) (*SystemOverview, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterLookoutHandler ¶
func RegisterLookoutHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLookoutHandler registers the http handlers for service Lookout to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLookoutHandlerClient ¶
func RegisterLookoutHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LookoutClient) error
RegisterLookoutHandlerClient registers the http handlers for service Lookout to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LookoutClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LookoutClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LookoutClient" to call the correct interceptors.
func RegisterLookoutHandlerFromEndpoint ¶
func RegisterLookoutHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLookoutHandlerFromEndpoint is same as RegisterLookoutHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLookoutHandlerServer ¶
func RegisterLookoutHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LookoutServer) error
RegisterLookoutHandlerServer registers the http handlers for service Lookout to "mux". UnaryRPC :call LookoutServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLookoutHandlerFromEndpoint instead.
func RegisterLookoutServer ¶
func RegisterLookoutServer(s *grpc.Server, srv LookoutServer)
func SwaggerJsonTemplate ¶
func SwaggerJsonTemplate() string
SwaggerJsonTemplate is a generated function returning the template as a string. That string should be parsed by the functions of the golang's template package.
Types ¶
type DurationStats ¶ added in v0.1.24
type DurationStats struct { Shortest *types.Duration `protobuf:"bytes,1,opt,name=shortest,proto3" json:"shortest,omitempty"` Longest *types.Duration `protobuf:"bytes,2,opt,name=longest,proto3" json:"longest,omitempty"` Average *types.Duration `protobuf:"bytes,3,opt,name=average,proto3" json:"average,omitempty"` Median *types.Duration `protobuf:"bytes,4,opt,name=median,proto3" json:"median,omitempty"` Q1 *types.Duration `protobuf:"bytes,5,opt,name=q1,proto3" json:"q1,omitempty"` Q3 *types.Duration `protobuf:"bytes,6,opt,name=q3,proto3" json:"q3,omitempty"` }
func (*DurationStats) Descriptor ¶ added in v0.1.24
func (*DurationStats) Descriptor() ([]byte, []int)
func (*DurationStats) GetAverage ¶ added in v0.1.24
func (m *DurationStats) GetAverage() *types.Duration
func (*DurationStats) GetLongest ¶ added in v0.1.24
func (m *DurationStats) GetLongest() *types.Duration
func (*DurationStats) GetMedian ¶ added in v0.1.24
func (m *DurationStats) GetMedian() *types.Duration
func (*DurationStats) GetQ1 ¶ added in v0.1.24
func (m *DurationStats) GetQ1() *types.Duration
func (*DurationStats) GetQ3 ¶ added in v0.1.24
func (m *DurationStats) GetQ3() *types.Duration
func (*DurationStats) GetShortest ¶ added in v0.1.24
func (m *DurationStats) GetShortest() *types.Duration
func (*DurationStats) Marshal ¶ added in v0.1.24
func (m *DurationStats) Marshal() (dAtA []byte, err error)
func (*DurationStats) MarshalTo ¶ added in v0.1.24
func (m *DurationStats) MarshalTo(dAtA []byte) (int, error)
func (*DurationStats) MarshalToSizedBuffer ¶ added in v0.1.24
func (m *DurationStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DurationStats) ProtoMessage ¶ added in v0.1.24
func (*DurationStats) ProtoMessage()
func (*DurationStats) Reset ¶ added in v0.1.24
func (m *DurationStats) Reset()
func (*DurationStats) Size ¶ added in v0.1.24
func (m *DurationStats) Size() (n int)
func (*DurationStats) String ¶ added in v0.1.24
func (this *DurationStats) String() string
func (*DurationStats) Unmarshal ¶ added in v0.1.24
func (m *DurationStats) Unmarshal(dAtA []byte) error
func (*DurationStats) XXX_DiscardUnknown ¶ added in v0.1.24
func (m *DurationStats) XXX_DiscardUnknown()
func (*DurationStats) XXX_Marshal ¶ added in v0.1.24
func (m *DurationStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DurationStats) XXX_Merge ¶ added in v0.1.24
func (m *DurationStats) XXX_Merge(src proto.Message)
func (*DurationStats) XXX_Size ¶ added in v0.1.24
func (m *DurationStats) XXX_Size() int
func (*DurationStats) XXX_Unmarshal ¶ added in v0.1.24
func (m *DurationStats) XXX_Unmarshal(b []byte) error
type GetJobSetsRequest ¶ added in v0.1.21
type GetJobSetsRequest struct { Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` NewestFirst bool `protobuf:"varint,2,opt,name=newest_first,json=newestFirst,proto3" json:"newestFirst,omitempty"` ActiveOnly bool `protobuf:"varint,3,opt,name=active_only,json=activeOnly,proto3" json:"activeOnly,omitempty"` }
func (*GetJobSetsRequest) Descriptor ¶ added in v0.1.21
func (*GetJobSetsRequest) Descriptor() ([]byte, []int)
func (*GetJobSetsRequest) GetActiveOnly ¶ added in v0.2.3
func (m *GetJobSetsRequest) GetActiveOnly() bool
func (*GetJobSetsRequest) GetNewestFirst ¶ added in v0.2.3
func (m *GetJobSetsRequest) GetNewestFirst() bool
func (*GetJobSetsRequest) GetQueue ¶ added in v0.1.21
func (m *GetJobSetsRequest) GetQueue() string
func (*GetJobSetsRequest) Marshal ¶ added in v0.1.21
func (m *GetJobSetsRequest) Marshal() (dAtA []byte, err error)
func (*GetJobSetsRequest) MarshalTo ¶ added in v0.1.21
func (m *GetJobSetsRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetJobSetsRequest) MarshalToSizedBuffer ¶ added in v0.1.21
func (m *GetJobSetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetJobSetsRequest) ProtoMessage ¶ added in v0.1.21
func (*GetJobSetsRequest) ProtoMessage()
func (*GetJobSetsRequest) Reset ¶ added in v0.1.21
func (m *GetJobSetsRequest) Reset()
func (*GetJobSetsRequest) Size ¶ added in v0.1.21
func (m *GetJobSetsRequest) Size() (n int)
func (*GetJobSetsRequest) String ¶ added in v0.1.21
func (this *GetJobSetsRequest) String() string
func (*GetJobSetsRequest) Unmarshal ¶ added in v0.1.21
func (m *GetJobSetsRequest) Unmarshal(dAtA []byte) error
func (*GetJobSetsRequest) XXX_DiscardUnknown ¶ added in v0.1.21
func (m *GetJobSetsRequest) XXX_DiscardUnknown()
func (*GetJobSetsRequest) XXX_Marshal ¶ added in v0.1.21
func (m *GetJobSetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetJobSetsRequest) XXX_Merge ¶ added in v0.1.21
func (m *GetJobSetsRequest) XXX_Merge(src proto.Message)
func (*GetJobSetsRequest) XXX_Size ¶ added in v0.1.21
func (m *GetJobSetsRequest) XXX_Size() int
func (*GetJobSetsRequest) XXX_Unmarshal ¶ added in v0.1.21
func (m *GetJobSetsRequest) XXX_Unmarshal(b []byte) error
type GetJobSetsResponse ¶ added in v0.1.21
type GetJobSetsResponse struct {
JobSetInfos []*JobSetInfo `protobuf:"bytes,1,rep,name=job_set_infos,json=jobSetInfos,proto3" json:"jobSetInfos,omitempty"`
}
func (*GetJobSetsResponse) Descriptor ¶ added in v0.1.21
func (*GetJobSetsResponse) Descriptor() ([]byte, []int)
func (*GetJobSetsResponse) GetJobSetInfos ¶ added in v0.1.21
func (m *GetJobSetsResponse) GetJobSetInfos() []*JobSetInfo
func (*GetJobSetsResponse) Marshal ¶ added in v0.1.21
func (m *GetJobSetsResponse) Marshal() (dAtA []byte, err error)
func (*GetJobSetsResponse) MarshalTo ¶ added in v0.1.21
func (m *GetJobSetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetJobSetsResponse) MarshalToSizedBuffer ¶ added in v0.1.21
func (m *GetJobSetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetJobSetsResponse) ProtoMessage ¶ added in v0.1.21
func (*GetJobSetsResponse) ProtoMessage()
func (*GetJobSetsResponse) Reset ¶ added in v0.1.21
func (m *GetJobSetsResponse) Reset()
func (*GetJobSetsResponse) Size ¶ added in v0.1.21
func (m *GetJobSetsResponse) Size() (n int)
func (*GetJobSetsResponse) String ¶ added in v0.1.21
func (this *GetJobSetsResponse) String() string
func (*GetJobSetsResponse) Unmarshal ¶ added in v0.1.21
func (m *GetJobSetsResponse) Unmarshal(dAtA []byte) error
func (*GetJobSetsResponse) XXX_DiscardUnknown ¶ added in v0.1.21
func (m *GetJobSetsResponse) XXX_DiscardUnknown()
func (*GetJobSetsResponse) XXX_Marshal ¶ added in v0.1.21
func (m *GetJobSetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetJobSetsResponse) XXX_Merge ¶ added in v0.1.21
func (m *GetJobSetsResponse) XXX_Merge(src proto.Message)
func (*GetJobSetsResponse) XXX_Size ¶ added in v0.1.21
func (m *GetJobSetsResponse) XXX_Size() int
func (*GetJobSetsResponse) XXX_Unmarshal ¶ added in v0.1.21
func (m *GetJobSetsResponse) XXX_Unmarshal(b []byte) error
type GetJobsRequest ¶ added in v0.1.23
type GetJobsRequest struct { Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` NewestFirst bool `protobuf:"varint,2,opt,name=newest_first,json=newestFirst,proto3" json:"newestFirst,omitempty"` JobStates []string `protobuf:"bytes,3,rep,name=job_states,json=jobStates,proto3" json:"jobStates,omitempty"` JobSetIds []string `protobuf:"bytes,4,rep,name=job_set_ids,json=jobSetIds,proto3" json:"jobSetIds,omitempty"` Take uint32 `protobuf:"varint,5,opt,name=take,proto3" json:"take,omitempty"` Skip uint32 `protobuf:"varint,6,opt,name=skip,proto3" json:"skip,omitempty"` JobId string `protobuf:"bytes,7,opt,name=jobId,proto3" json:"jobId,omitempty"` Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` UserAnnotations map[string]string `` /* 193-byte string literal not displayed */ }
func (*GetJobsRequest) Descriptor ¶ added in v0.1.23
func (*GetJobsRequest) Descriptor() ([]byte, []int)
func (*GetJobsRequest) GetJobId ¶ added in v0.1.23
func (m *GetJobsRequest) GetJobId() string
func (*GetJobsRequest) GetJobSetIds ¶ added in v0.1.23
func (m *GetJobsRequest) GetJobSetIds() []string
func (*GetJobsRequest) GetJobStates ¶ added in v0.1.23
func (m *GetJobsRequest) GetJobStates() []string
func (*GetJobsRequest) GetNewestFirst ¶ added in v0.1.23
func (m *GetJobsRequest) GetNewestFirst() bool
func (*GetJobsRequest) GetOwner ¶ added in v0.1.29
func (m *GetJobsRequest) GetOwner() string
func (*GetJobsRequest) GetQueue ¶ added in v0.1.23
func (m *GetJobsRequest) GetQueue() string
func (*GetJobsRequest) GetSkip ¶ added in v0.1.23
func (m *GetJobsRequest) GetSkip() uint32
func (*GetJobsRequest) GetTake ¶ added in v0.1.23
func (m *GetJobsRequest) GetTake() uint32
func (*GetJobsRequest) GetUserAnnotations ¶ added in v0.1.33
func (m *GetJobsRequest) GetUserAnnotations() map[string]string
func (*GetJobsRequest) Marshal ¶ added in v0.1.23
func (m *GetJobsRequest) Marshal() (dAtA []byte, err error)
func (*GetJobsRequest) MarshalTo ¶ added in v0.1.23
func (m *GetJobsRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetJobsRequest) MarshalToSizedBuffer ¶ added in v0.1.23
func (m *GetJobsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetJobsRequest) ProtoMessage ¶ added in v0.1.23
func (*GetJobsRequest) ProtoMessage()
func (*GetJobsRequest) Reset ¶ added in v0.1.23
func (m *GetJobsRequest) Reset()
func (*GetJobsRequest) Size ¶ added in v0.1.23
func (m *GetJobsRequest) Size() (n int)
func (*GetJobsRequest) String ¶ added in v0.1.23
func (this *GetJobsRequest) String() string
func (*GetJobsRequest) Unmarshal ¶ added in v0.1.23
func (m *GetJobsRequest) Unmarshal(dAtA []byte) error
func (*GetJobsRequest) XXX_DiscardUnknown ¶ added in v0.1.23
func (m *GetJobsRequest) XXX_DiscardUnknown()
func (*GetJobsRequest) XXX_Marshal ¶ added in v0.1.23
func (m *GetJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetJobsRequest) XXX_Merge ¶ added in v0.1.23
func (m *GetJobsRequest) XXX_Merge(src proto.Message)
func (*GetJobsRequest) XXX_Size ¶ added in v0.1.23
func (m *GetJobsRequest) XXX_Size() int
func (*GetJobsRequest) XXX_Unmarshal ¶ added in v0.1.23
func (m *GetJobsRequest) XXX_Unmarshal(b []byte) error
type GetJobsResponse ¶ added in v0.1.23
type GetJobsResponse struct {
JobInfos []*JobInfo `protobuf:"bytes,1,rep,name=job_infos,json=jobInfos,proto3" json:"jobInfos,omitempty"`
}
func (*GetJobsResponse) Descriptor ¶ added in v0.1.23
func (*GetJobsResponse) Descriptor() ([]byte, []int)
func (*GetJobsResponse) GetJobInfos ¶ added in v0.1.23
func (m *GetJobsResponse) GetJobInfos() []*JobInfo
func (*GetJobsResponse) Marshal ¶ added in v0.1.23
func (m *GetJobsResponse) Marshal() (dAtA []byte, err error)
func (*GetJobsResponse) MarshalTo ¶ added in v0.1.23
func (m *GetJobsResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetJobsResponse) MarshalToSizedBuffer ¶ added in v0.1.23
func (m *GetJobsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetJobsResponse) ProtoMessage ¶ added in v0.1.23
func (*GetJobsResponse) ProtoMessage()
func (*GetJobsResponse) Reset ¶ added in v0.1.23
func (m *GetJobsResponse) Reset()
func (*GetJobsResponse) Size ¶ added in v0.1.23
func (m *GetJobsResponse) Size() (n int)
func (*GetJobsResponse) String ¶ added in v0.1.23
func (this *GetJobsResponse) String() string
func (*GetJobsResponse) Unmarshal ¶ added in v0.1.23
func (m *GetJobsResponse) Unmarshal(dAtA []byte) error
func (*GetJobsResponse) XXX_DiscardUnknown ¶ added in v0.1.23
func (m *GetJobsResponse) XXX_DiscardUnknown()
func (*GetJobsResponse) XXX_Marshal ¶ added in v0.1.23
func (m *GetJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetJobsResponse) XXX_Merge ¶ added in v0.1.23
func (m *GetJobsResponse) XXX_Merge(src proto.Message)
func (*GetJobsResponse) XXX_Size ¶ added in v0.1.23
func (m *GetJobsResponse) XXX_Size() int
func (*GetJobsResponse) XXX_Unmarshal ¶ added in v0.1.23
func (m *GetJobsResponse) XXX_Unmarshal(b []byte) error
type JobInfo ¶
type JobInfo struct { Job *api.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Runs []*RunInfo `protobuf:"bytes,2,rep,name=runs,proto3" json:"runs,omitempty"` Cancelled *time.Time `protobuf:"bytes,3,opt,name=cancelled,proto3,stdtime" json:"cancelled,omitempty"` JobState string `protobuf:"bytes,4,opt,name=job_state,json=jobState,proto3" json:"jobState,omitempty"` JobJson string `protobuf:"bytes,5,opt,name=job_json,json=jobJson,proto3" json:"jobJson,omitempty"` }
func (*JobInfo) Descriptor ¶
func (*JobInfo) GetCancelled ¶ added in v0.1.17
func (*JobInfo) GetJobJson ¶ added in v0.1.29
func (*JobInfo) GetJobState ¶ added in v0.1.19
func (*JobInfo) MarshalToSizedBuffer ¶
func (*JobInfo) ProtoMessage ¶
func (*JobInfo) ProtoMessage()
func (*JobInfo) XXX_DiscardUnknown ¶
func (m *JobInfo) XXX_DiscardUnknown()
func (*JobInfo) XXX_Marshal ¶
func (*JobInfo) XXX_Unmarshal ¶
type JobSetInfo ¶ added in v0.1.21
type JobSetInfo struct { Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` JobSet string `protobuf:"bytes,2,opt,name=job_set,json=jobSet,proto3" json:"jobSet,omitempty"` JobsQueued uint32 `protobuf:"varint,3,opt,name=jobs_queued,json=jobsQueued,proto3" json:"jobsQueued,omitempty"` JobsPending uint32 `protobuf:"varint,4,opt,name=jobs_pending,json=jobsPending,proto3" json:"jobsPending,omitempty"` JobsRunning uint32 `protobuf:"varint,5,opt,name=jobs_running,json=jobsRunning,proto3" json:"jobsRunning,omitempty"` JobsSucceeded uint32 `protobuf:"varint,6,opt,name=jobs_succeeded,json=jobsSucceeded,proto3" json:"jobsSucceeded,omitempty"` JobsFailed uint32 `protobuf:"varint,7,opt,name=jobs_failed,json=jobsFailed,proto3" json:"jobsFailed,omitempty"` RunningStats *DurationStats `protobuf:"bytes,8,opt,name=runningStats,proto3" json:"runningStats,omitempty"` QueuedStats *DurationStats `protobuf:"bytes,9,opt,name=queuedStats,proto3" json:"queuedStats,omitempty"` Submitted *time.Time `protobuf:"bytes,10,opt,name=submitted,proto3,stdtime" json:"submitted,omitempty"` }
func (*JobSetInfo) Descriptor ¶ added in v0.1.21
func (*JobSetInfo) Descriptor() ([]byte, []int)
func (*JobSetInfo) GetJobSet ¶ added in v0.1.21
func (m *JobSetInfo) GetJobSet() string
func (*JobSetInfo) GetJobsFailed ¶ added in v0.1.21
func (m *JobSetInfo) GetJobsFailed() uint32
func (*JobSetInfo) GetJobsPending ¶ added in v0.1.21
func (m *JobSetInfo) GetJobsPending() uint32
func (*JobSetInfo) GetJobsQueued ¶ added in v0.1.21
func (m *JobSetInfo) GetJobsQueued() uint32
func (*JobSetInfo) GetJobsRunning ¶ added in v0.1.21
func (m *JobSetInfo) GetJobsRunning() uint32
func (*JobSetInfo) GetJobsSucceeded ¶ added in v0.1.21
func (m *JobSetInfo) GetJobsSucceeded() uint32
func (*JobSetInfo) GetQueue ¶ added in v0.1.21
func (m *JobSetInfo) GetQueue() string
func (*JobSetInfo) GetQueuedStats ¶ added in v0.1.24
func (m *JobSetInfo) GetQueuedStats() *DurationStats
func (*JobSetInfo) GetRunningStats ¶ added in v0.1.24
func (m *JobSetInfo) GetRunningStats() *DurationStats
func (*JobSetInfo) GetSubmitted ¶ added in v0.2.3
func (m *JobSetInfo) GetSubmitted() *time.Time
func (*JobSetInfo) Marshal ¶ added in v0.1.21
func (m *JobSetInfo) Marshal() (dAtA []byte, err error)
func (*JobSetInfo) MarshalTo ¶ added in v0.1.21
func (m *JobSetInfo) MarshalTo(dAtA []byte) (int, error)
func (*JobSetInfo) MarshalToSizedBuffer ¶ added in v0.1.21
func (m *JobSetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*JobSetInfo) ProtoMessage ¶ added in v0.1.21
func (*JobSetInfo) ProtoMessage()
func (*JobSetInfo) Reset ¶ added in v0.1.21
func (m *JobSetInfo) Reset()
func (*JobSetInfo) Size ¶ added in v0.1.21
func (m *JobSetInfo) Size() (n int)
func (*JobSetInfo) String ¶ added in v0.1.21
func (this *JobSetInfo) String() string
func (*JobSetInfo) Unmarshal ¶ added in v0.1.21
func (m *JobSetInfo) Unmarshal(dAtA []byte) error
func (*JobSetInfo) XXX_DiscardUnknown ¶ added in v0.1.21
func (m *JobSetInfo) XXX_DiscardUnknown()
func (*JobSetInfo) XXX_Marshal ¶ added in v0.1.21
func (m *JobSetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JobSetInfo) XXX_Merge ¶ added in v0.1.21
func (m *JobSetInfo) XXX_Merge(src proto.Message)
func (*JobSetInfo) XXX_Size ¶ added in v0.1.21
func (m *JobSetInfo) XXX_Size() int
func (*JobSetInfo) XXX_Unmarshal ¶ added in v0.1.21
func (m *JobSetInfo) XXX_Unmarshal(b []byte) error
type LookoutClient ¶
type LookoutClient interface { Overview(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*SystemOverview, error) GetJobSets(ctx context.Context, in *GetJobSetsRequest, opts ...grpc.CallOption) (*GetJobSetsResponse, error) GetJobs(ctx context.Context, in *GetJobsRequest, opts ...grpc.CallOption) (*GetJobsResponse, error) }
LookoutClient is the client API for Lookout service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLookoutClient ¶
func NewLookoutClient(cc *grpc.ClientConn) LookoutClient
type LookoutServer ¶
type LookoutServer interface { Overview(context.Context, *types.Empty) (*SystemOverview, error) GetJobSets(context.Context, *GetJobSetsRequest) (*GetJobSetsResponse, error) GetJobs(context.Context, *GetJobsRequest) (*GetJobsResponse, error) }
LookoutServer is the server API for Lookout service.
type QueueInfo ¶
type QueueInfo struct { Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` JobsQueued uint32 `protobuf:"varint,2,opt,name=jobs_queued,json=jobsQueued,proto3" json:"jobsQueued,omitempty"` JobsPending uint32 `protobuf:"varint,3,opt,name=jobs_pending,json=jobsPending,proto3" json:"jobsPending,omitempty"` JobsRunning uint32 `protobuf:"varint,4,opt,name=jobs_running,json=jobsRunning,proto3" json:"jobsRunning,omitempty"` OldestQueuedJob *JobInfo `protobuf:"bytes,5,opt,name=oldest_queued_job,json=oldestQueuedJob,proto3" json:"oldestQueuedJob,omitempty"` LongestRunningJob *JobInfo `protobuf:"bytes,6,opt,name=longest_running_job,json=longestRunningJob,proto3" json:"longestRunningJob,omitempty"` OldestQueuedDuration *types.Duration `protobuf:"bytes,7,opt,name=oldest_queued_duration,json=oldestQueuedDuration,proto3" json:"oldestQueuedDuration,omitempty"` LongestRunningDuration *types.Duration `` /* 127-byte string literal not displayed */ }
func (*QueueInfo) Descriptor ¶
func (*QueueInfo) GetJobsPending ¶
func (*QueueInfo) GetJobsQueued ¶
func (*QueueInfo) GetJobsRunning ¶
func (*QueueInfo) GetLongestRunningDuration ¶ added in v0.1.21
func (*QueueInfo) GetLongestRunningJob ¶
func (*QueueInfo) GetOldestQueuedDuration ¶ added in v0.1.21
func (*QueueInfo) GetOldestQueuedJob ¶
func (*QueueInfo) MarshalToSizedBuffer ¶
func (*QueueInfo) ProtoMessage ¶
func (*QueueInfo) ProtoMessage()
func (*QueueInfo) XXX_DiscardUnknown ¶
func (m *QueueInfo) XXX_DiscardUnknown()
func (*QueueInfo) XXX_Marshal ¶
func (*QueueInfo) XXX_Unmarshal ¶
type RunInfo ¶ added in v0.1.17
type RunInfo struct { K8SId string `protobuf:"bytes,1,opt,name=k8s_id,json=k8sId,proto3" json:"k8sId,omitempty"` Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` Succeeded bool `protobuf:"varint,4,opt,name=succeeded,proto3" json:"succeeded,omitempty"` Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` Created *time.Time `protobuf:"bytes,6,opt,name=created,proto3,stdtime" json:"created,omitempty"` Started *time.Time `protobuf:"bytes,7,opt,name=started,proto3,stdtime" json:"started,omitempty"` Finished *time.Time `protobuf:"bytes,8,opt,name=finished,proto3,stdtime" json:"finished,omitempty"` PodNumber int32 `protobuf:"varint,9,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` RunState string `protobuf:"bytes,10,opt,name=run_state,json=runState,proto3" json:"runState,omitempty"` UnableToSchedule bool `protobuf:"varint,11,opt,name=unable_to_schedule,json=unableToSchedule,proto3" json:"unableToSchedule,omitempty"` }
func (*RunInfo) Descriptor ¶ added in v0.1.17
func (*RunInfo) GetCluster ¶ added in v0.1.17
func (*RunInfo) GetCreated ¶ added in v0.1.17
func (*RunInfo) GetFinished ¶ added in v0.1.17
func (*RunInfo) GetPodNumber ¶ added in v0.1.23
func (*RunInfo) GetRunState ¶ added in v0.1.23
func (*RunInfo) GetStarted ¶ added in v0.1.17
func (*RunInfo) GetSucceeded ¶ added in v0.1.17
func (*RunInfo) GetUnableToSchedule ¶ added in v0.1.23
func (*RunInfo) MarshalToSizedBuffer ¶ added in v0.1.17
func (*RunInfo) ProtoMessage ¶ added in v0.1.17
func (*RunInfo) ProtoMessage()
func (*RunInfo) XXX_DiscardUnknown ¶ added in v0.1.17
func (m *RunInfo) XXX_DiscardUnknown()
func (*RunInfo) XXX_Marshal ¶ added in v0.1.17
func (*RunInfo) XXX_Unmarshal ¶ added in v0.1.17
type SystemOverview ¶
type SystemOverview struct {
Queues []*QueueInfo `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"`
}
func (*SystemOverview) Descriptor ¶
func (*SystemOverview) Descriptor() ([]byte, []int)
func (*SystemOverview) GetQueues ¶
func (m *SystemOverview) GetQueues() []*QueueInfo
func (*SystemOverview) Marshal ¶
func (m *SystemOverview) Marshal() (dAtA []byte, err error)
func (*SystemOverview) MarshalToSizedBuffer ¶
func (m *SystemOverview) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SystemOverview) ProtoMessage ¶
func (*SystemOverview) ProtoMessage()
func (*SystemOverview) Reset ¶
func (m *SystemOverview) Reset()
func (*SystemOverview) Size ¶
func (m *SystemOverview) Size() (n int)
func (*SystemOverview) String ¶
func (this *SystemOverview) String() string
func (*SystemOverview) Unmarshal ¶
func (m *SystemOverview) Unmarshal(dAtA []byte) error
func (*SystemOverview) XXX_DiscardUnknown ¶
func (m *SystemOverview) XXX_DiscardUnknown()
func (*SystemOverview) XXX_Marshal ¶
func (m *SystemOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SystemOverview) XXX_Merge ¶
func (m *SystemOverview) XXX_Merge(src proto.Message)
func (*SystemOverview) XXX_Size ¶
func (m *SystemOverview) XXX_Size() int
func (*SystemOverview) XXX_Unmarshal ¶
func (m *SystemOverview) XXX_Unmarshal(b []byte) error
type UnimplementedLookoutServer ¶
type UnimplementedLookoutServer struct { }
UnimplementedLookoutServer can be embedded to have forward compatible implementations.
func (*UnimplementedLookoutServer) GetJobSets ¶ added in v0.1.21
func (*UnimplementedLookoutServer) GetJobSets(ctx context.Context, req *GetJobSetsRequest) (*GetJobSetsResponse, error)
func (*UnimplementedLookoutServer) GetJobs ¶ added in v0.1.23
func (*UnimplementedLookoutServer) GetJobs(ctx context.Context, req *GetJobsRequest) (*GetJobsResponse, error)
func (*UnimplementedLookoutServer) Overview ¶
func (*UnimplementedLookoutServer) Overview(ctx context.Context, req *types.Empty) (*SystemOverview, error)