You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: configs.go
    path of file: ./repos/moby/vendor/github.com/moby/swarmkit/v2/agent/configs
    
    the code of the file until where you have to start completion: package configs

import (
	"fmt"
	"sync"

	"github.com/moby/swarmkit/v2/agent/exec"
	"github.com/moby/swarmkit/v2/api"
)

// configs is a map that keeps all the currently available configs to the agent
// m
    
func (sp *taskRestrictedConfigsProvider) Get(configID string) (*api.Config, error) {
	if _, ok := sp.configIDs[configID]; !ok {
		return nil, fmt.Errorf("task not authorized to access config %s", configID)
	}

	return sp.configs.Get(configID)
}