npm

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Publish         bool
	PackageName     string
	Email           string
	ProjectURL      string
	RegistryURL     string
	ProtobufVersion string
	Token           string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents a npm packaging service. It has properties that are the dependencies necessary for the service to function and receives methods allowing it to build the code directory necessary for publishing a gem. It fulfills the LanguageProcessor interface in package main.

func New

func New(config Config, fs fs, repo repo, logger log.FieldLogger, metrics counters, tracer opentracing.Tracer) *Service

New returns a pointer to a npm Service configured with the parameters passed in.

func (*Service) Process

func (s *Service) Process(ctx context.Context, payload github.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 jars and publishing them via sbt.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL