Versions in this module Expand all Collapse all v1 v1.0.0 May 9, 2019 Changes in this version + var ErrNoSuchNamespaceOrKey = errors.New("No such namespace or key") + type Client interface + BlockTrain func(*types.Train, *string) error + CancelTrain func(*types.Train) error + ChangeTrainEngineer func(*types.Train, *types.User) error + CloseTrain func(*types.Train, bool) error + CompleteJob func(*types.Job, types.JobResult, string) error + CompletePhase func(*types.Phase) error + Config func() (*types.Config, error) + CreateJob func(*types.Phase, string) (*types.Job, error) + CreateTrain func(string, *types.User, []*types.Commit) (*types.Train, error) + DeployTrain func(*types.Train) error + DuplicateTrain func(*types.Train, []*types.Commit) (*types.Train, error) + ErrorPhase func(*types.Phase, error) error + ExtendTrain func(*types.Train, *types.User, []*types.Commit) error + InCloseTime func() (bool, error) + IsTrainAutoCloseable func(*types.Train) (bool, error) + LatestCommitForTrain func(*types.Train) (*types.Commit, error) + LatestTrain func() (*types.Train, error) + LatestTrainForBranch func(string) (*types.Train, error) + LoadLastDeliveredSHA func(*types.Train) error + MetadataDeleteKey func(string, string) error + MetadataDeleteNamespace func(string) error + MetadataGetKey func(string, string) (string, error) + MetadataListKeys func(string) ([]string, error) + MetadataListNamespaces func() ([]string, error) + MetadataSet func(string, map[string]string) error + Mode func() (types.Mode, error) + OpenTrain func(*types.Train, bool) error + Options func() (*types.Options, error) + Phase func(uint64, *types.Train) (*types.Phase, error) + ReadOrCreateUser func(name, email string) (*types.User, error) + ReplacePhase func(*types.Phase) (*types.Phase, error) + RestartJob func(*types.Job, string) error + RevokeToken func(oldToken, email string) error + SetMode func(types.Mode) error + SetOptions func(*types.Options) error + StartJob func(*types.Job, string) error + StartPhase func(*types.Phase) error + Train func(uint64) (*types.Train, error) + TrainsByCommit func(*types.Commit) ([]*types.Train, error) + UnblockTrain func(*types.Train) error + UncompletePhase func(*types.Phase) error + UpdateTickets func([]*types.Ticket) error + UserByToken func(token string) (*types.User, error) + WriteCommits func([]*types.Commit) ([]*types.Commit, error) + WriteTickets func([]*types.Ticket) error + WriteToken func(newToken, name, email, avatar, codeToken string) error + func NewClient() Client + type Postgres struct + func (d *Postgres) Client() Client + type Service interface + Client func() Client + func GetService() Service