---
title: acl
summary: Package acl provides access to Fastly ACLs.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/acl/
---

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

Package acl provides access to Fastly ACLs.

See the [Fastly ACL documentation](https://www.fastly.com/documentation/guides/concepts/edge-state/dynamic-config/#access-control-lists) for details.

## Structs

| Name | Summary |
| --- | --- |
| [Handle](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/acl/struct.Handle/) | Handle is a handle for an ACL |
| [Response](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/acl/struct.Response/) | Response is an ACL lookup response |

## Functions

| Name | Summary |
| --- | --- |
| [Open](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/acl/fn.Open/) | Open returns a handle to the named ACL. |

## Variables

### ErrInvalidArgument

**Type:** `error`  
**Default:** `errors.New("acl: invalid argument")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/acl/acl.go#L28

ErrInvalidArgument indicates the IP address was invalid.

### ErrInvalidHandle

**Type:** `error`  
**Default:** `errors.New("acl: invalid handle")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/acl/acl.go#L22

ErrInvalidHandle indicatest the ACL handle was invalid.

### ErrInvalidResponseBody

**Type:** `error`  
**Default:** `errors.New("acl: invalid response body")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/acl/acl.go#L25

ErrInvalidResponseBody indicates the looup response body was invalid.

### ErrNoContent

**Type:** `error`  
**Default:** `errors.New("acl: no content")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/acl/acl.go#L31

ErrNoContent indicates there was no entry for the provided IP address.

### ErrNotFound

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

ErrNotFound indicates the requested ACL was not found.

### ErrTooManyRequests

**Type:** `error`  
**Default:** `errors.New("acl: too many requests")`  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/acl/acl.go#L34

ErrTooManyRequests indicates too many requests were made.

### ErrUnexpected

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

ErrUnexpected indicates an unexpected error occurred.
