configmap

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct {
	// contains filtered or unexported fields
}

ConfigMap represents a configmap of some kind

func New

func New(clientset *kubernetes.Clientset, namespace, name string) (*ConfigMap, error)

New creates a new ConfigMap

func (*ConfigMap) Load

func (c *ConfigMap) Load(key string) (*string, error)

Load gets the value of the given key, or nil if it doesn't exist

func (*ConfigMap) Store

func (c *ConfigMap) Store(key string, value *string) error

Store stores the value at the given key

type LeaderLease

type LeaderLease struct {
	// contains filtered or unexported fields
}

func NewLeaderLease

func NewLeaderLease(cm *ConfigMap, leaseKey, myID string) *LeaderLease

func (*LeaderLease) ManageLease

func (l *LeaderLease) ManageLease(stopCh <-chan struct{})

func (*LeaderLease) TryAcquireLease

func (l *LeaderLease) TryAcquireLease() (bool, error)

Jump to

Keyboard shortcuts

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