Download this file
| 1 | //go:build !linux |
| 2 | |
| 3 | package activator |
| 4 | |
| 5 | import ( |
| 6 | "context" |
| 7 | "net" |
| 8 | |
| 9 | "github.com/carlosframework/platform/internal/cgroup" |
| 10 | "github.com/carlosframework/platform/internal/hostclaim" |
| 11 | "github.com/carlosframework/platform/internal/hostwrite" |
| 12 | "os/exec" |
| 13 | ) |
| 14 | |
| 15 | func (l RoleLaunch) Start(context.Context, string, hostclaim.WakeRetryAttempt, func() *exec.Cmd, func() error) (*exec.Cmd, *cgroup.Prepared, func(context.Context) error, RoleProducer, error) { |
| 16 | return nil, nil, nil, RoleProducer{}, ErrClaimIsolationUnavailable |
| 17 | } |
| 18 | |
| 19 | func (l RoleLaunch) ExactHealth(context.Context, *exec.Cmd, hostclaim.WakeRetryAttempt) error { |
| 20 | return hostwrite.ErrUnavailable |
| 21 | } |
| 22 | |
| 23 | func (l RoleLaunch) RoleCgroup(context.Context, *exec.Cmd, hostclaim.WakeRetryAttempt) (string, error) { |
| 24 | return "", hostwrite.ErrUnavailable |
| 25 | } |
| 26 | |
| 27 | func (l RoleLaunch) PeerInRole(context.Context, net.Conn, *exec.Cmd) error { |
| 28 | return hostwrite.ErrUnavailable |
| 29 | } |
| 30 | |