Documentation
¶
Index ¶
- Constants
- func CheckNamespacedName(name string) bool
- func CountIP(r *allocator.Range) int64
- func Filter[T any](ss []T, test func(T) bool) (ret []T)
- func GetHarvesterClientFromSecret(secret *corev1.Secret) (*hvclientset.Clientset, error)
- func GetNamespacedName(name string, alternativeTargetNS string) (error, types.NamespacedName)
- func GetSecretForHarvesterConfig(ctx context.Context, cluster *infrav1.HarvesterCluster, cl client.Client) (*corev1.Secret, error)
- func Healthcheck(config *clientcmdapi.Config) (bool, error)
- func MakeRange(r *lbv1beta1.Range) (*allocator.Range, error)
- func MergeCloudInitData(cloudInits ...string) ([]byte, error)
- func NewTrue() *bool
- func RandomID() string
- type Store
- func (s *Store) Close() error
- func (s *Store) GetByID(id string, _ string) []net.IP
- func (s *Store) LastReservedIP(rangeID string) (net.IP, error)
- func (s *Store) Lock() error
- func (s *Store) Release(ip net.IP) error
- func (s *Store) ReleaseByID(id string, _ string) error
- func (s *Store) Reserve(id, _ string, ip net.IP, _ string) (bool, error)
- func (s *Store) Unlock() error
Constants ¶
View Source
const (
ConfigSecretDataKey = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
func CheckNamespacedName ¶ added in v0.1.1
CheckNamespacedName checks if the given string is in the format of "namespace/name".
func GetHarvesterClientFromSecret ¶
func GetHarvesterClientFromSecret(secret *corev1.Secret) (*hvclientset.Clientset, error)
func GetNamespacedName ¶ added in v0.1.1
func GetNamespacedName(name string, alternativeTargetNS string) (error, types.NamespacedName)
GetNamespacedName returns the namespace and name from the given string in the format of "namespace/name".
func Healthcheck ¶
func Healthcheck(config *clientcmdapi.Config) (bool, error)
func MergeCloudInitData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.