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 activator
4
5import (
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
15func (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
19func (l RoleLaunch) ExactHealth(context.Context, *exec.Cmd, hostclaim.WakeRetryAttempt) error {
20 return hostwrite.ErrUnavailable
21}
22
23func (l RoleLaunch) RoleCgroup(context.Context, *exec.Cmd, hostclaim.WakeRetryAttempt) (string, error) {
24 return "", hostwrite.ErrUnavailable
25}
26
27func (l RoleLaunch) PeerInRole(context.Context, net.Conn, *exec.Cmd) error {
28 return hostwrite.ErrUnavailable
29}
30