Documentation ¶
Overview ¶
Package block contains common functionality for interacting with TSDB blocks in the context of Thanos.
Index ¶
Examples ¶
Constants ¶
View Source
const (
// MetaFilename is the known JSON filename for meta information.
MetaFilename = "meta.json"
)
Variables ¶
This section is empty.
Functions ¶
func Download ¶
Download downloads directory that is meant to be block directory. If any of the files have a hash calculated in the meta file and it matches with what is in the destination path then we do not download it. We always re-download the meta file. BUG(bwplotka): No known bugs, but if there was one, it would be outlined here.
Example ¶
package main import ( "context" "fmt" block "github.com/efficientgo/examples/pkg/godoc" "github.com/oklog/ulid" ) func main() { if err := block.Download(context.Background(), ulid.MustNew(0, nil), "here"); err != nil { fmt.Println(err) } }
Output: downloaded
Types ¶
This section is empty.
Notes ¶
Bugs ¶
No known bugs, but if there was one, it would be outlined here.
Click to show internal directories.
Click to hide internal directories.