Documentation ¶
Index ¶
- Constants
- func CollectActiveObjectsAndTags(ctx context.Context, pfsClient client.PfsAPIClient, ...) (map[string]bool, map[string]bool, error)
- func NewAPIServer(etcdAddress string, etcdPrefix string, address string, ...) (ppsclient.APIServer, error)
- func NewSidecarAPIServer(etcdAddress string, etcdPrefix string, address string, iamRole string, ...) (ppsclient.APIServer, error)
- func RepoNameToEnvString(repoName string) string
Constants ¶
View Source
const ( // DefaultUserImage is the image used for jobs when the user does not specify // an image. DefaultUserImage = "ubuntu:16.04" // DefaultDatumTries is the default number of times a datum will be tried // before we give up and consider the job failed. DefaultDatumTries = 3 )
Variables ¶
This section is empty.
Functions ¶
func CollectActiveObjectsAndTags ¶ added in v1.7.4
func CollectActiveObjectsAndTags(ctx context.Context, pfsClient client.PfsAPIClient, objClient client.ObjectAPIClient, repoInfos []*pfs.RepoInfo, pipelineInfos []*pps.PipelineInfo) (map[string]bool, map[string]bool, error)
CollectActiveObjectsAndTags collects all objects/tags that are not deleted or eligible for garbage collection
func NewAPIServer ¶
func NewAPIServer( etcdAddress string, etcdPrefix string, address string, kubeClient *kube.Clientset, namespace string, workerImage string, workerSidecarImage string, workerImagePullPolicy string, storageRoot string, storageBackend string, storageHostPath string, iamRole string, imagePullSecret string, noExposeDockerSocket bool, reporter *metrics.Reporter, ) (ppsclient.APIServer, error)
NewAPIServer creates an APIServer.
func NewSidecarAPIServer ¶ added in v1.5.0
func NewSidecarAPIServer( etcdAddress string, etcdPrefix string, address string, iamRole string, reporter *metrics.Reporter, ) (ppsclient.APIServer, error)
NewSidecarAPIServer creates an APIServer that has limited functionalities and is meant to be run as a worker sidecar. It cannot, for instance, create pipelines.
func RepoNameToEnvString ¶
RepoNameToEnvString is a helper which uppercases a repo name for use in environment variable names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.