Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Secret example Secret = &ppsclient.Secret{ Name: "secret_name", MountPath: "/path/in/container", } // Transform example Transform = &ppsclient.Transform{ Cmd: []string{"cmd", "args..."}, AcceptReturnCode: []int64{1}, Env: map[string]string{"foo": "bar"}, Secrets: []*ppsclient.Secret{Secret}, } // CreateJobRequest example CreateJobRequest = &ppsclient.CreateJobRequest{ Transform: Transform, ParallelismSpec: &ppsclient.ParallelismSpec{ Strategy: ppsclient.ParallelismSpec_CONSTANT, Constant: 1, }, Inputs: []*ppsclient.JobInput{ { Commit: &pfs.Commit{ Repo: &pfs.Repo{Name: "in_repo"}, ID: "10cf676b626044f9a405235bf7660959", }, Method: client.MapMethod, Lazy: true, }, }, ParentJob: &ppsclient.Job{ ID: "a951ca06cfda4377b8ffaa050d1074df", }, } // CreatePipelineRequest example CreatePipelineRequest = &ppsclient.CreatePipelineRequest{ Pipeline: &ppsclient.Pipeline{ Name: "name", }, Transform: Transform, ParallelismSpec: &ppsclient.ParallelismSpec{ Strategy: ppsclient.ParallelismSpec_CONSTANT, Constant: 1, }, Inputs: []*ppsclient.PipelineInput{ { Repo: &pfs.Repo{Name: "in_repo"}, Method: client.ReduceMethod, }, }, } // RunPipelineSpec example RunPipelineSpec = &ppsclient.CreateJobRequest{ Inputs: []*ppsclient.JobInput{ { Commit: &pfs.Commit{ Repo: &pfs.Repo{Name: "in_repo"}, ID: "10cf676b626044f9a405235bf7660959", }, Method: client.GlobalMethod, }, }, ParallelismSpec: &ppsclient.ParallelismSpec{ Strategy: ppsclient.ParallelismSpec_CONSTANT, Constant: 3, }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.