pachyderm: github.com/pachyderm/pachyderm/src/server/transaction/cmds Index | Files

package cmds

import "github.com/pachyderm/pachyderm/src/server/transaction/cmds"

Index

Package Files

cmds.go util.go

func ClearActiveTransaction Uses

func ClearActiveTransaction() error

ClearActiveTransaction will remove the active transaction from the pachctl config file - used by the 'delete all' command.

func Cmds Uses

func Cmds() []*cobra.Command

Cmds returns the set of commands used for managing transactions with the Pachyderm CLI tool pachctl.

func WithActiveTransaction Uses

func WithActiveTransaction(c *client.APIClient, callback func(*client.APIClient) error) error

WithActiveTransaction is a helper function that will attach the given transaction to the given client (resulting in a new client), then run the given callback with the new client. This is for executing RPCs that can be run inside a transaction - if this isn't supported, it will have no effect.

Package cmds imports 12 packages (graph) and is imported by 4 packages. Updated 2019-08-25. Refresh now. Tools for package owners.