Documentation ¶
Index ¶
- Constants
- Variables
- func Get(opts ...GetOption) ([]computev1alpha1.MachinePoolAddress, error)
- func InCluster() ([]computev1alpha1.MachinePoolAddress, error)
- func IsInCluster() bool
- func Load(data []byte) ([]computev1alpha1.MachinePoolAddress, error)
- func LoadFromFile(filename string) ([]computev1alpha1.MachinePoolAddress, error)
- func LocalIP() (string, error)
- type GetOption
- type GetOptions
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 Get(opts ...GetOption) ([]computev1alpha1.MachinePoolAddress, error)
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)
Types ¶
type GetOption ¶
type GetOption interface {
ApplyToGet(o *GetOptions)
}
type GetOptions ¶
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)
Click to show internal directories.
Click to hide internal directories.