openstack

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitStore

func InitStore(e *common.Etcd)

InitStore creates a new store

func Load

func Load() error

Load retrieves cloud information from etcd

Types

type Store

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

Store supports get and set cloud information

func Get

func Get() *Store

Get returns store instance

func (*Store) Delete

func (s *Store) Delete(key string)

Delete removes an item from store

func (*Store) Get

func (s *Store) Get(key string) (model.OpenStack, bool)

Get returns cloud information

func (*Store) Set

func (s *Store) Set(key string, value model.OpenStack)

Set adds item to store

Jump to

Keyboard shortcuts

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