pps

package
v1.0.470 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package pps is a generated protocol buffer package.

It is generated from these files:

server/pps/pps.proto

It has these top-level messages:

StartJobRequest
StartJobResponse
FinishJobRequest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobRepo

func JobRepo(job *ppsclient.Job) *pfs.Repo

func PipelineRepo

func PipelineRepo(pipeline *ppsclient.Pipeline) *pfs.Repo

func RegisterInternalJobAPIServer

func RegisterInternalJobAPIServer(s *grpc.Server, srv InternalJobAPIServer)

Types

type FinishJobRequest

type FinishJobRequest struct {
	Job     *pachyderm_pps.Job `protobuf:"bytes,1,opt,name=job" json:"job,omitempty"`
	Index   uint64             `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
	Success bool               `protobuf:"varint,3,opt,name=success" json:"success,omitempty"`
}

func (*FinishJobRequest) Descriptor

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

func (*FinishJobRequest) GetJob

func (m *FinishJobRequest) GetJob() *pachyderm_pps.Job

func (*FinishJobRequest) ProtoMessage

func (*FinishJobRequest) ProtoMessage()

func (*FinishJobRequest) Reset

func (m *FinishJobRequest) Reset()

func (*FinishJobRequest) String

func (m *FinishJobRequest) String() string

type Hasher

type Hasher struct {
	JobModulus      uint64
	PipelineModulus uint64
}

func NewHasher

func NewHasher(jobModulus uint64, pipelineModulus uint64) *Hasher

func (*Hasher) HashJob

func (s *Hasher) HashJob(job *ppsclient.Job) uint64

func (*Hasher) HashPipeline

func (s *Hasher) HashPipeline(pipeline *ppsclient.Pipeline) uint64

type InternalJobAPIClient

type InternalJobAPIClient interface {
	StartJob(ctx context.Context, in *StartJobRequest, opts ...grpc.CallOption) (*StartJobResponse, error)
	FinishJob(ctx context.Context, in *FinishJobRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}

func NewInternalJobAPIClient

func NewInternalJobAPIClient(cc *grpc.ClientConn) InternalJobAPIClient

func NewInternalJobAPIClientFromAddress

func NewInternalJobAPIClientFromAddress(pachAddr string) (InternalJobAPIClient, error)

type InternalJobAPIServer

type InternalJobAPIServer interface {
	StartJob(context.Context, *StartJobRequest) (*StartJobResponse, error)
	FinishJob(context.Context, *FinishJobRequest) (*google_protobuf.Empty, error)
}

type StartJobRequest

type StartJobRequest struct {
	Job *pachyderm_pps.Job `protobuf:"bytes,1,opt,name=job" json:"job,omitempty"`
}

func (*StartJobRequest) Descriptor

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

func (*StartJobRequest) GetJob

func (m *StartJobRequest) GetJob() *pachyderm_pps.Job

func (*StartJobRequest) ProtoMessage

func (*StartJobRequest) ProtoMessage()

func (*StartJobRequest) Reset

func (m *StartJobRequest) Reset()

func (*StartJobRequest) String

func (m *StartJobRequest) String() string

type StartJobResponse

type StartJobResponse struct {
	Transform    *pachyderm_pps.Transform `protobuf:"bytes,1,opt,name=transform" json:"transform,omitempty"`
	CommitMounts []*fuse.CommitMount      `protobuf:"bytes,2,rep,name=commit_mounts,json=commitMounts" json:"commit_mounts,omitempty"`
	Index        uint64                   `protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
}

func (*StartJobResponse) Descriptor

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

func (*StartJobResponse) GetCommitMounts

func (m *StartJobResponse) GetCommitMounts() []*fuse.CommitMount

func (*StartJobResponse) GetTransform

func (m *StartJobResponse) GetTransform() *pachyderm_pps.Transform

func (*StartJobResponse) ProtoMessage

func (*StartJobResponse) ProtoMessage()

func (*StartJobResponse) Reset

func (m *StartJobResponse) Reset()

func (*StartJobResponse) String

func (m *StartJobResponse) String() string

Directories

Path Synopsis
Package persist is a generated protocol buffer package.
Package persist is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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