Documentation
¶
Index ¶
- func SanitizeAuthForDownstream(auth *coreauth.Auth) *coreauth.Auth
- type DispatchResult
- type ModelInfo
- type Runtime
- func (r *Runtime) AccessManager() *access.Manager
- func (r *Runtime) AddToken(ctx context.Context, rawJSON string) (string, error)
- func (r *Runtime) Authenticate(ctx context.Context, headers http.Header) (*access.Result, *access.AuthError)
- func (r *Runtime) Config() *config.Config
- func (r *Runtime) ConfigPath() string
- func (r *Runtime) CoreManager() *coreauth.Manager
- func (r *Runtime) Dispatch(ctx context.Context, reqModel string, headers http.Header) (*DispatchResult, error)
- func (r *Runtime) PublishConfigYAML(payload []byte)
- func (r *Runtime) ReadConfigYAML() ([]byte, error)
- func (r *Runtime) RecordUsagePayload(ctx context.Context, payload string)
- func (r *Runtime) Start(ctx context.Context, configPath string) error
- func (r *Runtime) Stop()
- func (r *Runtime) SubscribeConfigYAML(subscriber func(payload []byte) error) (unsubscribe func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DispatchResult ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) AccessManager ¶
func (*Runtime) AddToken ¶
AddToken stores a credential JSON blob into the auth directory and schedules it for use. It returns the created (or existing) auth file name under auth-dir.
func (*Runtime) Authenticate ¶
func (*Runtime) ConfigPath ¶
func (*Runtime) CoreManager ¶
func (*Runtime) PublishConfigYAML ¶
func (*Runtime) ReadConfigYAML ¶
func (*Runtime) RecordUsagePayload ¶
RecordUsagePayload applies downstream usage status to the scheduler auth state.
func (*Runtime) SubscribeConfigYAML ¶
Click to show internal directories.
Click to hide internal directories.