Debian Codegraph @

pkg/util/wsstream/legacy.go

raw
1 /*
2 Copyright 2023 The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Deprecated: This WebSockets package under apiserver is no longer in use.
18 // Please use the apimachinery version of the package at:
19 //
20 // k8s.io/apimachinery/pkg/util/httpstream/wsstream
21 package wsstream
22
23 import apimachinerywsstream "k8s.io/apimachinery/pkg/util/httpstream/wsstream"
24
25 // Aliases for all exported symbols previously in "conn.go"
26 const (
27 ChannelWebSocketProtocol = apimachinerywsstream.ChannelWebSocketProtocol
28 Base64ChannelWebSocketProtocol = apimachinerywsstream.Base64ChannelWebSocketProtocol
29 )
30
31 type ChannelType = apimachinerywsstream.ChannelType
32
33 const (
34 IgnoreChannel = apimachinerywsstream.IgnoreChannel
35 ReadChannel = apimachinerywsstream.ReadChannel
36 WriteChannel = apimachinerywsstream.WriteChannel
37 ReadWriteChannel = apimachinerywsstream.ReadWriteChannel
38 )
39
40 type ChannelProtocolConfig = apimachinerywsstream.ChannelProtocolConfig
41
42 var (
43 IsWebSocketRequest = apimachinerywsstream.IsWebSocketRequest
44 IgnoreReceives = apimachinerywsstream.IgnoreReceives
45 NewDefaultChannelProtocols = apimachinerywsstream.NewDefaultChannelProtocols
46 )
47
48 type Conn = apimachinerywsstream.Conn
49
50 var NewConn = apimachinerywsstream.NewConn
51
52 // Aliases for all exported symbols previously in "stream.go"
53 type ReaderProtocolConfig = apimachinerywsstream.ReaderProtocolConfig
54
55 var NewDefaultReaderProtocols = apimachinerywsstream.NewDefaultReaderProtocols
56
57 type Reader = apimachinerywsstream.Reader
58
59 var NewReader = apimachinerywsstream.NewReader