scala

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package scala builds jars from Scala code and uses sbt to publish them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Description                   string
	MavenRepoPublishTarget        string
	MavenRepoHost                 string
	MavenRepoUser                 string
	MavenRepoPassword             string
	JarName                       string
	Organization                  string
	Publish                       bool
	Realm                         string
	SBTVersion                    string
	SBTProtocPluginPackageVersion string
	ScalaVersion                  string
	ScalaPBRuntimePackageVersion  string
}

type Service

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

Service represents a scala 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 jar. 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 scala 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