addresses

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	KubernetesServiceName         = "KUBERNETES_SERVICE_NAME"
	KubernetesPodNamespaceEnvVar  = "KUBERNETES_POD_NAMESPACE"
	KubernetesClusterDomainEnvVar = "KUBERNETES_CLUSTER_DOMAIN"
)
View Source
const (
	DefaultKubernetesClusterDomain = "cluster.local"
)

Variables

View Source
var (
	ErrNotInCluster = fmt.Errorf("unable to load in-cluster addresses, %s and %s must be defined",
		KubernetesServiceName, KubernetesPodNamespaceEnvVar)
)

Functions

func Get

func InCluster

func InCluster() ([]computev1alpha1.MachinePoolAddress, error)

func IsInCluster

func IsInCluster() bool

func Load

func Load(data []byte) ([]computev1alpha1.MachinePoolAddress, error)

func LoadFromFile

func LoadFromFile(filename string) ([]computev1alpha1.MachinePoolAddress, error)

func LocalIP

func LocalIP() (string, error)

Types

type GetOption

type GetOption interface {
	ApplyToGet(o *GetOptions)
}

type GetOptions

type GetOptions struct {
	Filename         string
	IPOverride       string
	HostnameOverride string
}

func (*GetOptions) ApplyOptions

func (o *GetOptions) ApplyOptions(opts []GetOption)

func (*GetOptions) ApplyToGet

func (o *GetOptions) ApplyToGet(o2 *GetOptions)

func (*GetOptions) BindFlags

func (o *GetOptions) BindFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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