leasestore

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaseStore

type LeaseStore struct {
	// The name of the ConfigMap to write a lease to.
	Name string

	// The namespace to write the ConfigMap into. By default, the ConfigMap will
	// be written to the namespace the active pod resides in.
	Namespace string

	Client kubernetes.Interface
}

func New

func New() (*LeaseStore, error)

func (*LeaseStore) Get

func (c *LeaseStore) Get(ctx context.Context) (l dhcp.Lease, err error)

func (*LeaseStore) Put

func (c *LeaseStore) Put(ctx context.Context, l dhcp.Lease) error

Jump to

Keyboard shortcuts

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