// List function to get ACLs
List function to get ACLs
// List function to get ACLs
func (s *ACLService) List(ctx context.Context, opt *ListOptions) ([]*ACL, *Response, error) {
	u, err := addOptions("acls", opt)
	if err != nil {
		return nil, nil, err
	}
	req, err := s.client.NewRequest("GET", u, nil)
	if err != nil {
		return nil, nil, err
	}
	acls := []*ACL{}
	resp, err := s.client.Do(ctx, req, &acls)
	if err != nil {
		return nil, resp, err
	}
	return acls, resp, nil
}
func ( s * ACLService ) List ( ctx context . Context , opt * ListOptions ) ( [ ] * ACL , * Response , error ) { u , err := addOptions ( " " , opt ) if err != nil { return nil , nil , err } req , err := s . client . NewRequest ( " " , u , nil ) if err != nil { return nil , nil , err } acls := [ ] * ACL { } resp , err := s . client . Do ( ctx , req , & acls ) if err != nil { return nil , resp , err } return acls , resp , nil }
List function to get ACLs
List function to get ACLs