|
| 1 | +//go:build !darwin && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos |
| 2 | +// +build !darwin,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos |
| 3 | + |
| 4 | +/* |
| 5 | + Copyright The containerd Authors. |
| 6 | +
|
| 7 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | + you may not use this file except in compliance with the License. |
| 9 | + You may obtain a copy of the License at |
| 10 | +
|
| 11 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +
|
| 13 | + Unless required by applicable law or agreed to in writing, software |
| 14 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | + See the License for the specific language governing permissions and |
| 17 | + limitations under the License. |
| 18 | +*/ |
| 19 | + |
| 20 | +package console |
| 21 | + |
| 22 | +// NewPty creates a new pty pair |
| 23 | +// The master is returned as the first console and a string |
| 24 | +// with the path to the pty slave is returned as the second |
| 25 | +func NewPty() (Console, string, error) { |
| 26 | + return nil, "", ErrNotImplemented |
| 27 | +} |
| 28 | + |
| 29 | +// checkConsole checks if the provided file is a console |
| 30 | +func checkConsole(f File) error { |
| 31 | + return ErrNotAConsole |
| 32 | +} |
| 33 | + |
| 34 | +func newMaster(f File) (Console, error) { |
| 35 | + return nil, ErrNotImplemented |
| 36 | +} |
0 commit comments