{"modulePath":"github.com/docker/compose-cli","version":"v1.0.7","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package backend\n\n## Functions\n\n```go\nfunc GetCloudService(ctx context.Context, 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## Types\n\n```go\ntype Service interface {\n\tContainerService() containers.Service\n\tComposeService() compose.Service\n\tResourceService() resources.Service\n\tSecretsService() secrets.Service\n\tVolumeService() volumes.Service\n}\n```\nService aggregates the service interfaces\n\n```go\nfunc Get(ctx context.Context, 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/backend","name":"backend","synopsis":"","isRedistributable":true}
