mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
Adding missing docs for exported symbols inside `internal/instance` package. Signed-off-by: Denys Mosiiuk <dmos@dector.space>
14 lines
293 B
Go
14 lines
293 B
Go
package instance
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
// SnapshotDelimiter is used to separate instance name from snapshot name.
|
|
const SnapshotDelimiter = "/"
|
|
|
|
// IsSnapshot checks if provided name is a snapshot name.
|
|
func IsSnapshot(name string) bool {
|
|
return strings.Contains(name, SnapshotDelimiter)
|
|
}
|