Documentation
¶
Index ¶
- Constants
- func Run(ctx context.Context) error
- type Ingester
- type Spindle
- func (s *Spindle) DB() *db.DB
- func (s *Spindle) Enforcer() *rbac.Enforcer
- func (s *Spindle) Engines() map[string]models.Engine
- func (s *Spindle) Events(w http.ResponseWriter, r *http.Request)
- func (s *Spindle) GetMotdContent() []byte
- func (s *Spindle) Logs(w http.ResponseWriter, r *http.Request)
- func (s *Spindle) Notifier() *notifier.Notifier
- func (s *Spindle) Queue() *queue.Queue
- func (s *Spindle) RequestLogger(next http.Handler) http.Handler
- func (s *Spindle) Router() http.Handler
- func (s *Spindle) SetMotdContent(content []byte)
- func (s *Spindle) Start(ctx context.Context) error
- func (s *Spindle) TriggerManual(ctx context.Context, repoDid syntax.DID, sha, ref string, workflows []string, ...) (syntax.ATURI, error)
- func (s *Spindle) Vault() secrets.Manager
- func (s *Spindle) XrpcRouter() http.Handler
- type Tap
Constants ¶
View Source
const RequiredVersion = "2.49.0"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Spindle ¶
type Spindle struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, cfg *config.Config, d *db.DB, engines map[string]models.Engine) (*Spindle, error)
New creates a new Spindle server with the provided configuration and engines.
func (*Spindle) Enforcer ¶
Enforcer returns the RBAC enforcer instance.
func (*Spindle) Engines ¶
Engines returns the map of available engines.
func (*Spindle) GetMotdContent ¶
GetMotdContent returns the current MOTD content.
func (*Spindle) Notifier ¶
Notifier returns the notifier instance.
func (*Spindle) Queue ¶
Queue returns the job queue instance.
func (*Spindle) SetMotdContent ¶
SetMotdContent sets custom MOTD content, replacing the embedded default.
func (*Spindle) Start ¶
Start starts the Spindle server (blocking).
func (*Spindle) TriggerManual ¶
func (s *Spindle) TriggerManual(ctx context.Context, repoDid syntax.DID, sha, ref string, workflows []string, sourceRepo syntax.DID, pull xrpc.PullContext, inputs []*tangled.Pipeline_Pair) (syntax.ATURI, error)
TriggerManual dispatches a pipeline at sha, authorized against and recorded under repoDid. sourceRepo, pull, and inputs are optional trigger payload.
func (*Spindle) Vault ¶
Vault returns the secrets manager instance.
Source Files
¶
- casbin_copy.go
- embedtap.go
- ingester.go
- middleware.go
- secret_copy.go
- server.go
- startup_migrations.go
- stream.go
- tap_drain.go
- tapclient.go
Click to show internal directories.
Click to hide internal directories.