carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !linux
2
3package host
4
5import (
6 "context"
7 "os"
8
9 "github.com/carlosframework/platform/internal/hostbox"
10)
11
12func generationPayloadFiles(ctx context.Context, _ string, payloads []hostbox.GenerationPayload) error {
13 for _, p := range payloads {
14 for _, e := range p.Inventory.Entries {
15 if e.Kind != "route" && e.Kind != "timer" {
16 return os.ErrPermission
17 }
18 }
19 }
20 return ctx.Err()
21}
22