Documentation ¶
Index ¶
Constants ¶
View Source
const (
StorePrefix = "agola"
)
Variables ¶
This section is empty.
Functions ¶
func NewObjectStorage ¶
func NewObjectStorage(ctx context.Context, c *config.ObjectStorage) (objectstorage.ObjStorage, error)
func WriteFileAtomic ¶
WriteFileAtomic atomically writes a file
func WriteFileAtomicFunc ¶
func WriteFileAtomicFunc(filename string, perm os.FileMode, writeFunc func(f io.Writer) error) error
WriteFileAtomicFunc atomically writes a file, it achieves this by creating a temporary file and then moving it. writeFunc is the func that will write data to the file. This function is taken from
https://github.com/youtube/vitess/blob/master/go/ioutil2/ioutil.go
Copyright 2012, Google Inc. BSD-license, see licenses/LICENSE-BSD-3-Clause
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.