util

package
v0.9.0-m2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

© 2021 Red Hat, Inc. and others

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

http://www.apache.org/licenses/LICENSE-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 OR CONDITIONS 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

func CompareEndpointSpec

func CompareEndpointSpec(left, right subv1.EndpointSpec) bool

func CreateChainIfNotExists added in v0.1.0

func CreateChainIfNotExists(ipt iptables.Interface, table, chain string) error

func FlattenColors

func FlattenColors(colorCodes []string) string

func GetClusterCRDName

func GetClusterCRDName(cluster *types.SubmarinerCluster) (string, error)

func GetClusterIDFromCableName added in v0.0.2

func GetClusterIDFromCableName(cableName string) string

func GetDefaultGatewayInterface

func GetDefaultGatewayInterface() (*net.Interface, error)

func GetEndpointCRDName

func GetEndpointCRDName(endpoint *types.SubmarinerEndpoint) (string, error)

func GetEndpointCRDNameFromParams

func GetEndpointCRDNameFromParams(clusterID, cableName string) (string, error)

func GetLocalIP

func GetLocalIP() string

func GetLocalIPForDestination added in v0.9.0

func GetLocalIPForDestination(dst string) string

func ParseSecure

func ParseSecure(token string) (types.Secure, error)

func PrependUnique added in v0.1.0

func PrependUnique(ipt iptables.Interface, table, chain string, ruleSpec []string) error

Types

This section is empty.

Directories

Path Synopsis
© 2021 Red Hat, Inc.
© 2021 Red Hat, Inc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL