server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyFile = errors.New("file contents cannot be empty")
)

Functions

func CustomError

func CustomError(c common.Code, msg string) error

Types

type ErrorWrapper

type ErrorWrapper struct {
	Status *common.Status
}

func (*ErrorWrapper) Error

func (e *ErrorWrapper) Error() string

type Server

type Server struct {
	AuthToken        string
	PersistentConfig *config.Config
	VCService        vcservice.IVCService
	GithubService    github.IGithub
	StatsService     stats.IStats
	ErrorsService    uierrors.IUIErrors
	Etcd             etcd.IEtcd
	Log              *logrus.Entry
	CLIOptions       *opts.CLIOptions
}

func (*Server) CreateAlert

func (*Server) CreateComposite

func (*Server) CreateConnection

func (*Server) CreateMonitor

func (*Server) CreatePullRequest

func (s *Server) CreatePullRequest(ctx context.Context, req *protos.CreatePRRequest) (*protos.CreatePRResponse, error)

func (*Server) CreateRead

func (*Server) CreateRelay

func (*Server) CreateService

func (*Server) CreateValidation

func (*Server) DeleteAlert

func (*Server) DeleteComposite

func (*Server) DeleteConnection

func (*Server) DeleteMonitor

func (*Server) DeleteRead

func (*Server) DeleteRelay

func (*Server) DeleteSchema

func (*Server) DeleteService

func (*Server) DeleteValidation

func (*Server) GetAlert

func (*Server) GetAllComposites

func (*Server) GetAllReads

func (*Server) GetAllRelays

func (*Server) GetAllSchemas

func (*Server) GetAllServices

func (*Server) GetComposite

func (*Server) GetConnection

func (*Server) GetErrorHistory

func (*Server) GetLiveErrors

GetLiveErrors ships live errors from plumber that happen in the background outside of the normal lifecycle of a gRPC request/response

func (*Server) GetMonitor

func (*Server) GetRepoFile

func (*Server) GetRepoList

func (*Server) GetRepoTree

func (*Server) GetSchema

func (*Server) GetService

func (*Server) GetVCEvents

GetVCEvents reads the current stream of VC events from vc-service and sends them to the frontend for consumption

func (*Server) GetValidation

func (*Server) ImportGithub

func (*Server) ImportLocal

func (*Server) InferJSONSchema

func (s *Server) InferJSONSchema(r *types.Read, readRecord *records.ReadRecord) error

func (*Server) ResumeRead

func (*Server) ResumeRelay

func (*Server) SetServerOptions

SetServerOptions is called by the frontend to update any necessary server config options. These changes will also be broadcast to other plumber instances.

func (*Server) StartRead

func (*Server) StopRead

TODO: Need to figure out how reads work with clustered plumber - do all nodes perform a read? If so, should StopRead() inform other nodes to stop reading as well?

func (*Server) StopRelay

func (*Server) TestConnection

func (*Server) UpdateAlert

func (*Server) UpdateComposite

func (*Server) UpdateConnection

func (*Server) UpdateMonitor

func (*Server) UpdateRelay

func (*Server) UpdateSchema

func (*Server) UpdateService

func (*Server) UpdateValidation

func (*Server) Write

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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