aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_test.go
blob: 1bfba48aee64664902544bcc1e5222973eb239d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package app

import (
	"context"

	"hakurei.app/container"
	"hakurei.app/hst"
	"hakurei.app/internal/app/state"
	"hakurei.app/internal/sys"
	"hakurei.app/system"
)

func FinaliseIParams(ctx context.Context, k sys.State, config *hst.Config, id *state.ID) (*system.I, *container.Params, error) {
	seal := outcome{id: &stringPair[state.ID]{*id, id.String()}}
	return seal.sys, seal.container, seal.finalise(ctx, k, config)
}