paths

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a thread-safe store that maps logical cluster paths to cluster names.

func New

func New() *Store

New creates a new path Store.

func (*Store) Add

func (p *Store) Add(path string, cluster logicalcluster.Name)

Add adds a mapping from path to cluster name.

func (*Store) Get

func (p *Store) Get(path string) (logicalcluster.Name, bool)

Get returns the cluster name for the given path.

func (*Store) Remove

func (p *Store) Remove(path string)

Remove removes a mapping from path to cluster name.

Jump to

Keyboard shortcuts

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