lxd/db/containers.mapper.go
func (c *ClusterTx) ContainerExists(project string, name string) (bool, error) {
	_, err := c.ContainerID(project, name)
	if err != nil {
		if err == ErrNoSuchObject {
			return false, nil
		}
		return false, err
	}

	return true, nil
}
func (c *ClusterTx) ContainerExists(project string, name string) (bool, error) {
	_, err := c.ContainerID(project, name)
	if err != nil {
		if err == ErrNoSuchObject {
			return false, nil
		}
		return false, err
	}

	return true, nil
}
func ( c * ClusterTx ) ContainerExists ( project string , name string ) ( bool , error ) { _ , err := c . ContainerID ( project , name ) if err != nil { if err == ErrNoSuchObject { return false , nil } return false , err } return true , nil }
// ContainerExists checks if a container with the given key exists.
ContainerExists checks if a container with the given key exists .