Versions in this module Expand all Collapse all v1 v1.0.1 Apr 17, 2019 v1.0.0 Apr 17, 2019 Changes in this version + var ErrBadRouting = errors.New("inconsistent mapping between route and handler (programmer error)") + var ErrForbidden = errors.New("User not authorized for operation") + var ErrInvalidArgument = errors.New("invalid argument") + var ErrInvalidToken = errors.New("token contains an invalid number of segments") + var ErrUnauthorized = errors.New("authorization is invalid") + func MakePushEventEndpoint(svc Service) endpoint.Endpoint + func MakeRoutes(r *mux.Router, s Service, logger log.Logger, middleware endpoint.Middleware, ...) + type Authorizor struct + Logger log.Logger + SecretToken string + SignatureRequired bool + func (a *Authorizor) CheckHMAC(ctx context.Context, request interface{}) (err error) + func (a *Authorizor) ValidatePayload() endpoint.Middleware + type Changeset struct + Artifacts []Reference + Author string + Branch string + Builds string + Changes string + CommitTimestamp string + CreationDate string + Message string + Name string + ObjectID int + ObjectUUID string + Ref string + Revision string + SCMRepository string + Subscription string + Uri string + Workspace string + type Commit struct + Added []string + Author struct{ ... } + Committer struct{ ... } + Distinct bool + ID string + Message string + Modified []string + Removed []string + Timestamp string + TreeID string + URL string + type Config struct + APIToken string + InfluxCfg InfluxCfg + RallyURL string + SecretToken string + SignatureRequired bool + Workspace string + type InfluxCfg struct + Database string + Password string + Tag string + URL string + Username string + type PushEvent struct + After string + BaseRef interface{} + Before string + Commits []Commit + Compare string + Created bool + Deleted bool + Forced bool + HeadCommit interface{} + Pusher struct{ ... } + Ref string + Repository struct{ ... } + Sender struct{ ... } + type PushResponse struct + Errors []error + Result string + type RallyCreateResult struct + CreateResult struct{ ... } + type RallyQueryResults struct + QueryResult struct{ ... } + type RallyResult struct + RallyAPIMajor string + RallyAPIMinor string + Ref string + RefObjectName string + RefObjectUUID string + Type string + type Reference struct + Count int + Ref string + RefObjectName string + RefObjectUUID string + Type string + type Service interface + FindRallyArtifact func(commit Commit) (artifacts map[string]string) + ReceivePush func(ctx context.Context, event PushEvent) (PushResponse, error) + func NewInstrumentedService(s Service, count metrics.Counter, callDur metrics.Histogram, c client.Client, ...) Service + func NewLoggingService(s Service, logger log.Logger) Service + func NewPushReceiveService(l log.Logger, cfg Config) Service + type UpdateResult struct + OperationResult struct{ ... }