Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a release service. The release service does a release with a version corresponding to the timestamp from the commit push event so that it represents the same release/version as the other packaged languages. This is most useful for go as it uses git as its repository/package format.
func New ¶
func New(fs fs, repo repo, logger log.FieldLogger, metrics counters, tracer opentracing.Tracer) *Service
New returns a pointer to a release Service configured with the parameters passed in.
func (*Service) Process ¶
func (s *Service) Process(ctx context.Context, payload hooks.PushPayload)
Process is the main method for use by the main function of the application, and the only one required by the interface in main.go. It takes a context, used for cancelling itself in the case of a sigterm or sigint, and a Push Event payload. It executes all steps necessary for creating a release on the repo passed to the service.