yolosvc

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BintrayWorker

func BintrayWorker(ctx context.Context, db *cayley.Handle, btc *bintray.Client, schema *schema.Config, opts BintrayWorkerOpts) error

BintrayWorker goals is to manage the bintray update routine, it should try to support as much errors as possible by itself

func BuildkiteWorker

func BuildkiteWorker(ctx context.Context, db *cayley.Handle, bkc *buildkite.Client, schema *schema.Config, opts BuildkiteWorkerOpts) error

BuildkiteWorker goals is to manage the buildkite update routine, it should try to support as much errors as possible by itself

func CircleciWorker

func CircleciWorker(ctx context.Context, db *cayley.Handle, ccc *circleci.Client, schema *schema.Config, opts CircleciWorkerOpts) error

CircleciWorker goals is to manage the circleci update routine, it should try to support as much errors as possible by itself

func SchemaConfig

func SchemaConfig() *schema.Config

Types

type BintrayWorkerOpts

type BintrayWorkerOpts struct {
	Logger    *zap.Logger
	MaxBuilds int
}

type BuildkiteWorkerOpts

type BuildkiteWorkerOpts struct {
	Logger    *zap.Logger
	MaxBuilds int
}

type CircleciWorkerOpts

type CircleciWorkerOpts struct {
	Logger    *zap.Logger
	MaxBuilds int
}

type Server

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

func NewServer

func NewServer(ctx context.Context, svc Service, opts ServerOpts) (*Server, error)

func (*Server) Start

func (srv *Server) Start() error

func (*Server) Stop

func (srv *Server) Stop()

type ServerOpts

type ServerOpts struct {
	Logger             *zap.Logger
	HTTPBind           string
	GRPCBind           string
	CORSAllowedOrigins string
	RequestTimeout     time.Duration
	ShutdownTimeout    time.Duration
	BasicAuth          string
	Realm              string
	AuthSalt           string
}

type Service

type Service interface {
	yolopb.YoloServiceServer
	PlistGenerator(w http.ResponseWriter, r *http.Request)
	ArtifactDownloader(w http.ResponseWriter, r *http.Request)
}

func NewService

func NewService(db *cayley.Handle, schema *schema.Config, opts ServiceOpts) Service

type ServiceOpts

type ServiceOpts struct {
	BuildkiteClient *buildkite.Client
	CircleciClient  *circleci.Client
	BintrayClient   *bintray.Client
	Logger          *zap.Logger
	AuthSalt        string
}

Jump to

Keyboard shortcuts

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