Documentation
¶
Overview ¶
* Tencent is pleased to support the open source community by making TKEStack available. * * Copyright (C) 2012-2019 Tencent. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of the * License at * * https://opensource.org/licenses/Apache-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIRequest ¶
type CNIRequest struct { // CNI environment variables, like CNI_COMMAND and CNI_NETNS Env map[string]string `json:"env,omitempty"` // CNI configuration passed via stdin to the CNI plugin Config []byte `json:"config,omitempty"` }
Request sent to the Galaxy by the Galaxy SDN CNI plugin
type PodRequest ¶
type PodRequest struct { // The CNI command of the operation Command string // kubernetes namespace name PodNamespace string // kubernetes pod name PodName string // kubernetes pod ports Ports []k8s.Port // Channel for returning the operation result to the CNIServer Result chan *PodResult // Args *skel.CmdArgs // specific CNI plugin args, key: cni type, inner key: args name, value: args value ExtendedCNIArgs map[string]map[string]json.RawMessage }
Request structure built from CNIRequest which is passed to the handler function given to the CNIServer at creation time
func CniRequestToPodRequest ¶
func CniRequestToPodRequest(data []byte) (*PodRequest, error)
#lizard forgives
func (*PodRequest) String ¶
func (req *PodRequest) String() string
Directories
¶
Path | Synopsis |
---|---|
* Tencent is pleased to support the open source community by making TKEStack available.
|
* Tencent is pleased to support the open source community by making TKEStack available. |
utils
* Tencent is pleased to support the open source community by making TKEStack available.
|
* Tencent is pleased to support the open source community by making TKEStack available. |
* Tencent is pleased to support the open source community by making TKEStack available.
|
* Tencent is pleased to support the open source community by making TKEStack available. |