Documentation
¶
Index ¶
- Constants
- func HandlerForSQLite(ctx context.Context, dsn string, offer []domain.OfferSnapshot) (http.Handler, func() error, error)
- func HandlerForSQLiteWithAdapter(ctx context.Context, dsn string, ad adapter.Adapter, options ...Option) (http.Handler, func() error, error)
- func HandlerForSQLiteWithOptions(ctx context.Context, dsn string, offer []domain.OfferSnapshot, ...) (http.Handler, func() error, error)
- func New(orch *orchestrator.Orchestrator, sched scheduler.Scheduler, ad adapter.Adapter, ...) http.Handler
- func NewWithAllServices(orch *orchestrator.Orchestrator, sched scheduler.Scheduler, ad adapter.Adapter, ...) http.Handler
- func NewWithServices(orch *orchestrator.Orchestrator, sched scheduler.Scheduler, ad adapter.Adapter, ...) http.Handler
- type Option
- type Server
Constants ¶
View Source
const OpenAPIJSON = `` /* 21356-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func HandlerForSQLite ¶
func New ¶
func New(orch *orchestrator.Orchestrator, sched scheduler.Scheduler, ad adapter.Adapter, options ...Option) http.Handler
func NewWithAllServices ¶
func NewWithAllServices(orch *orchestrator.Orchestrator, sched scheduler.Scheduler, ad adapter.Adapter, workloads *workload.Service, sinkManager *sinkspkg.Manager, conns *connection.Service, offerService *offers.Service, resolver interface { Resolve(context.Context, ociresolver.ResolveRequest) (ociresolver.ResolvedImage, error) }, options ...Option) http.Handler
func NewWithServices ¶
func NewWithServices(orch *orchestrator.Orchestrator, sched scheduler.Scheduler, ad adapter.Adapter, workloads *workload.Service, resolver interface { Resolve(context.Context, ociresolver.ResolveRequest) (ociresolver.ResolvedImage, error) }, options ...Option) http.Handler
Types ¶
type Option ¶
type Option func(*Server)
func WithBearerAuth ¶
func WithCredentialResolver ¶
func WithCredentialResolver(resolver *credential.Resolver) Option
WithCredentialResolver wires the credential.Resolver the server uses to turn a {source, ref} credential into a plaintext secret.
func WithReportSigner ¶
WithReportSigner wires the per-run token signer used to authenticate the POST /v1/runs/{id}:report ingest endpoint.
func WithSecretStore ¶
func WithSecretStore(store credential.SecretStore) Option
WithSecretStore wires the SecretStore the server uses to persist sealed connection credentials.
func WithVerifier ¶
func WithVerifier(verifier connectionVerifier) Option
WithVerifier wires the connection verifier (the Broker) the server uses to validate a connection during the authorize flow.
Click to show internal directories.
Click to hide internal directories.