Documentation ¶
Index ¶
- type Repository
- type Triplestore
- func (ts *Triplestore) Backup(scontext *component.StagingContext) error
- func (ts *Triplestore) BackupName() string
- func (Triplestore) Context(parent component.InstallationContext) component.InstallationContext
- func (ts *Triplestore) CreateRepository(ctx context.Context, name, domain, user, password string) error
- func (ts Triplestore) OpenRaw(ctx context.Context, method, url string, body any, bodyName string, ...) (*http.Response, error)
- func (ts *Triplestore) Path() string
- func (ts *Triplestore) Provision(ctx context.Context, instance models.Instance, domain string) error
- func (ts *Triplestore) Purge(ctx context.Context, instance models.Instance, domain string) error
- func (ts Triplestore) PurgeRepo(ctx context.Context, repo string) error
- func (ts Triplestore) PurgeUser(ctx context.Context, user string) error
- func (ts *Triplestore) Snapshot(wisski models.Instance, scontext *component.StagingContext) error
- func (ts Triplestore) SnapshotDB(ctx context.Context, dst io.Writer, repo string) (int64, error)
- func (Triplestore) SnapshotName() string
- func (Triplestore) SnapshotNeedsRunning() bool
- func (ts *Triplestore) Stack() component.StackWithResources
- func (ts Triplestore) Update(ctx context.Context, progress io.Writer) error
- func (ts Triplestore) Wait(ctx context.Context) error
- type TriplestoreUserAppSettings
- type TriplestoreUserPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Triplestore ¶
type Triplestore struct { component.Base BaseURL string // upstream server url PollInterval time.Duration // duration to wait for during wait }
func (*Triplestore) Backup ¶
func (ts *Triplestore) Backup(scontext *component.StagingContext) error
Backup makes a backup of all Triplestore repositories databases into the path dest.
func (*Triplestore) BackupName ¶
func (ts *Triplestore) BackupName() string
func (Triplestore) Context ¶
func (Triplestore) Context(parent component.InstallationContext) component.InstallationContext
func (*Triplestore) CreateRepository ¶
func (ts *Triplestore) CreateRepository(ctx context.Context, name, domain, user, password string) error
func (Triplestore) OpenRaw ¶
func (ts Triplestore) OpenRaw(ctx context.Context, method, url string, body any, bodyName string, accept string) (*http.Response, error)
OpenRaw makes an http request to the triplestore api.
When bodyName is non-empty, expect body to be a byte slice representing a multipart/form-data upload with the given name. When bodyName is empty, simply marshal body as application/json
func (*Triplestore) Path ¶
func (ts *Triplestore) Path() string
func (Triplestore) PurgeRepo ¶
func (ts Triplestore) PurgeRepo(ctx context.Context, repo string) error
PurgeRepo deletes the specified repo from the triplestore. When the repo does not exist, returns no error.
func (Triplestore) PurgeUser ¶
func (ts Triplestore) PurgeUser(ctx context.Context, user string) error
PurgeUser deletes the specified user from the triplestore. When the user does not exist, returns no error.
func (*Triplestore) Snapshot ¶
func (ts *Triplestore) Snapshot(wisski models.Instance, scontext *component.StagingContext) error
func (Triplestore) SnapshotDB ¶
SnapshotDB snapshots the provided repository into dst
func (Triplestore) SnapshotName ¶
func (Triplestore) SnapshotName() string
func (Triplestore) SnapshotNeedsRunning ¶
func (Triplestore) SnapshotNeedsRunning() bool
func (*Triplestore) Stack ¶
func (ts *Triplestore) Stack() component.StackWithResources
type TriplestoreUserPayload ¶
type TriplestoreUserPayload struct { Password string `json:"password"` AppSettings TriplestoreUserAppSettings `json:"appSettings"` GrantedAuthorities []string `json:"grantedAuthorities"` }
Click to show internal directories.
Click to hide internal directories.