config

package
v0.0.0-...-9dd3fcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 10 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 stores and loads configurations.

func DefaultStore

func DefaultStore() *Store

DefaultStore return the default configuration storage.

func NewStore

func NewStore(path string, kubeconfig string) *Store

NewStore return a new configuration storage using the specified path.

func (*Store) AddClusterSetFromConfigs

func (s *Store) AddClusterSetFromConfigs(name string, configset *kube.ConfigSet) error

AddClusterSetFromEnv add a clusterset from kubeconfigs.

func (*Store) AddClusterSetFromEnv

func (s *Store) AddClusterSetFromEnv(name string, env *drenv.Environment) error

AddClusterSetFromEnv add a clusterset from ramen test environment.

func (*Store) GetClusterSet

func (s *Store) GetClusterSet(name string) (*api.ClusterSet, error)

func (*Store) ListClusterSets

func (s *Store) ListClusterSets() ([]string, error)

ListClusterSets return slice of clusterset names. The result may contain invalid configurations.

func (*Store) RemoveClusterSet

func (s *Store) RemoveClusterSet(name string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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