Structin configstorecompute-sdk-go v1.11.0View source
type Store struct {
// contains filtered or unexported fields
}

Store is a read-only representation of a config store.

Methods

func (s *Store) Get(key string) (string, error)

Get returns the value in the config store with the given key, if it exists.

Parameters

key: string

Returns

(string, error)

GetBytes

View source
func (s *Store) GetBytes(key string) ([]byte, error)

GetBytes returns the value in the config store for the given key, if it exists, as a byte slice.

Parameters

key: string

Returns

([]byte, error)
func (s *Store) Has(key string) (bool, error)

Has returns true if the key exists in the config store, without allocating space to read a value.

Parameters

key: string

Returns

(bool, error)