Documentation ¶
Index ¶
- func DescribeSyntaxError(originalErr error, parsedBuffer bytes.Buffer) error
- func GetExpectedNumWorkers(kubeClient *kube.Clientset, spec *ppsclient.ParallelismSpec) (int, error)
- func JobRepo(job *ppsclient.Job) *pfs.Repo
- func PipelineRcName(name string, version uint64) string
- func PipelineRepo(pipeline *ppsclient.Pipeline) *pfs.Repo
- func PipelineReqFromInfo(pipelineInfo *ppsclient.PipelineInfo) *ppsclient.CreatePipelineRequest
- type Hasher
- type PipelineManifestReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeSyntaxError ¶ added in v1.6.9
DescribeSyntaxError describes a syntax error encountered parsing json.
func GetExpectedNumWorkers ¶ added in v1.5.0
func GetExpectedNumWorkers(kubeClient *kube.Clientset, spec *ppsclient.ParallelismSpec) (int, error)
GetExpectedNumWorkers computes the expected number of workers that pachyderm will start given the ParallelismSpec 'spec'.
This is only exported for testing
func PipelineRcName ¶ added in v1.5.0
PipelineRcName generates the name of the k8s replication controller that manages a pipeline's workers
func PipelineRepo ¶
PipelineRepo creates a pfs repo for a given pipeline.
func PipelineReqFromInfo ¶ added in v1.6.9
func PipelineReqFromInfo(pipelineInfo *ppsclient.PipelineInfo) *ppsclient.CreatePipelineRequest
PipelineReqFromInfo converts a PipelineInfo into a CreatePipelineRequest.
Types ¶
type Hasher ¶
A Hasher represents a job/pipeline hasher.
func (*Hasher) HashPipeline ¶
HashPipeline computes and returns the hash of a pipeline.
type PipelineManifestReader ¶ added in v1.6.9
type PipelineManifestReader struct {
// contains filtered or unexported fields
}
PipelineManifestReader helps with unmarshalling pipeline configs from JSON. It's used by create-pipeline and update-pipeline
func NewPipelineManifestReader ¶ added in v1.6.9
func NewPipelineManifestReader(path string) (result *PipelineManifestReader, retErr error)
NewPipelineManifestReader creates a new manifest reader from a path.
func (*PipelineManifestReader) NextCreatePipelineRequest ¶ added in v1.6.9
func (r *PipelineManifestReader) NextCreatePipelineRequest() (*ppsclient.CreatePipelineRequest, error)
NextCreatePipelineRequest gets the next request from the manifest reader.