diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 13:35:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 13:39:26 +0900 |
| commit | cd5959fe5ab04786cd5dee3cf09f725229ae7c7b (patch) | |
| tree | c0dae3f950528e7c3b6d7359441ee8aeb9a488cd /hst | |
| parent | 08c35ca24fabc41268411cec14ea386a6d87ece9 (diff) | |
ext: isolate from container/std
These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
| -rw-r--r-- | hst/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hst/config.go b/hst/config.go index 793cd786..da68ac26 100644 --- a/hst/config.go +++ b/hst/config.go @@ -6,7 +6,7 @@ import ( "strings" "hakurei.app/container/check" - "hakurei.app/container/std" + "hakurei.app/ext" ) // Config configures an application container. @@ -107,12 +107,12 @@ type Config struct { // Scheduling policy to set for the container. // // The zero value retains the current scheduling policy. - SchedPolicy std.SchedPolicy `json:"sched_policy,omitempty"` + SchedPolicy ext.SchedPolicy `json:"sched_policy,omitempty"` // Scheduling priority to set for the container. // // The zero value implies the minimum priority of the current SchedPolicy. // Has no effect if SchedPolicy is zero. - SchedPriority std.Int `json:"sched_priority,omitempty"` + SchedPriority ext.Int `json:"sched_priority,omitempty"` // High level configuration applied to the underlying [container]. Container *ContainerConfig `json:"container"` @@ -153,7 +153,7 @@ func (config *Config) Validate() error { Msg: "identity " + strconv.Itoa(config.Identity) + " out of range"} } - if config.SchedPolicy < 0 || config.SchedPolicy > std.SCHED_LAST { + if config.SchedPolicy < 0 || config.SchedPolicy > ext.SCHED_LAST { return &AppError{Step: "validate configuration", Err: ErrSchedPolicyBounds, Msg: "scheduling policy " + strconv.Itoa(int(config.SchedPolicy)) + |
