Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDatabaseFilename ¶
Types ¶
type Server ¶
type Server struct {
Type string `json:"type"`
Config map[string]any `json:"config,omitempty"`
Secrets string `json:"secrets,omitempty"`
Tools []string `json:"tools,omitempty"`
Source string `json:"source,omitempty"`
Image string `json:"image,omitempty"`
// Optional snapshot of the server schema
Snapshot *ServerSnapshot `json:"snapshot,omitempty"`
}
type ServerList ¶
type ServerList []Server
func (*ServerList) Scan ¶
func (servers *ServerList) Scan(value any) error
type ServerSnapshot ¶ added in v0.26.0
type WorkingSet ¶
type WorkingSet struct {
ID string `db:"id"`
Name string `db:"name"`
Servers ServerList `db:"servers"`
Secrets SecretMap `db:"secrets"`
}
type WorkingSetDAO ¶
type WorkingSetDAO interface {
GetWorkingSet(ctx context.Context, id string) (*WorkingSet, error)
FindWorkingSetsByIDPrefix(ctx context.Context, prefix string) ([]WorkingSet, error)
ListWorkingSets(ctx context.Context) ([]WorkingSet, error)
CreateWorkingSet(ctx context.Context, workingSet WorkingSet) error
UpdateWorkingSet(ctx context.Context, workingSet WorkingSet) error
RemoveWorkingSet(ctx context.Context, id string) error
SearchWorkingSets(ctx context.Context, query string, workingSetID string) ([]WorkingSet, error)
}
Click to show internal directories.
Click to hide internal directories.