{"modulePath":"github.com/docker/compose-cli","version":"v1.0.35","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package backend\n\n## Functions\n\n```go\nfunc GetCloudService(backendType string) (cloud.Service, error)\n```\nGetCloudService returns the backend registered for a particular type, it returns an error if there is no registered backends for the given type.\n\n```go\nfunc Register(name string, backendType string, init initFunc, getCoudService getCloudServiceFunc)\n```\nRegister adds a typed backend to the registry\n\n```go\nfunc WithBackend(s Service)\n```\nWithBackend set the active backend instance\n\n## Types\n\n```go\ntype Service interface {\n\tContainerService() containers.Service\n\tComposeService() api.Service\n\tResourceService() resources.Service\n\tSecretsService() secrets.Service\n\tVolumeService() volumes.Service\n}\n```\nService aggregates the service interfaces\n\n```go\nfunc Current() Service\n```\nCurrent return the active backend instance\n\n```go\nfunc Get(backendType string) (Service, error)\n```\nGet returns the backend registered for a particular type, it returns an error if there is no registered backends for the given type.\n\n","path":"github.com/docker/compose-cli/api/backend","name":"backend","synopsis":"","isRedistributable":true}
