---
title: configstore
summary: Package configstore provides a read-only interface to config stores. Refer to https://developer.fastly.com/reference/api/services/resources/config-store/ for more information.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/configstore/
---

**Kind:** Module  
**Package:** compute-sdk-go v1.11.0  
**Path:** `github.com/fastly/compute-sdk-go/configstore`

Package configstore provides a read-only interface to config stores. Refer
to https://developer.fastly.com/reference/api/services/resources/config-store/
for more information.

## Structs

| Name | Summary |
| --- | --- |
| [Store](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/configstore/struct.Store/) | Store is a read-only representation of a config store. |

## Functions

| Name | Summary |
| --- | --- |
| [Open](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/configstore/fn.Open/) | Open returns a config store with the given name. Names are case sensitive. |

## Variables

### ErrKeyNotFound

**Type:** `error`  
**Default:** `errors.New("key not found")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L29

ErrKeyNotFound indicates a key isn't in a config store.

### ErrStoreNameEmpty

**Type:** `error`  
**Default:** `errors.New("config store name was empty")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L18

ErrStoreNameEmpty indicates the given config store name
was empty.

### ErrStoreNameInvalid

**Type:** `error`  
**Default:** `errors.New("config store name contained invalid characters")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L22

ErrStoreNameInvalid indicates the given config store name
was invalid.

### ErrStoreNameTooLong

**Type:** `error`  
**Default:** `errors.New("config store name too long")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L26

ErrStoreNameTooLong indicates the given config store name
was too long.

### ErrStoreNotFound

**Type:** `error`  
**Default:** `errors.New("config store not found")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L14

ErrStoreNotFound indicates the named config store doesn't exist.

### ErrUnexpected

**Type:** `error`  
**Default:** `errors.New("unexpected error")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/configstore/configstore.go#L32

ErrUnexpected indicates an unexpected error occurred.
