Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMachines = "http://172.17.8.101:4001" DefaultKeyPrefix = "/risu/" )
View Source
const (
DefaultExpireSeconds = 60 * 60 * 24 * 5 // 5 days
)
View Source
const DefaultFileDir = "/etc/risu/"
DefaultFileDir is default file dir
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdRegistry ¶
type EtcdRegistry struct {
// contains filtered or unexported fields
}
func (*EtcdRegistry) Create ¶
func (r *EtcdRegistry) Create(opts schema.BuildCreateOpts) (schema.Build, error)
func (*EtcdRegistry) Set ¶
func (r *EtcdRegistry) Set(build schema.Build, opts schema.BuildUpdateOpts) error
type LocalFsRegistry ¶
type LocalFsRegistry struct {
// contains filtered or unexported fields
}
LocalFsRegistry is sharing dir
func (*LocalFsRegistry) Create ¶
func (r *LocalFsRegistry) Create(opts schema.BuildCreateOpts) (schema.Build, error)
func (*LocalFsRegistry) Set ¶
func (r *LocalFsRegistry) Set(build schema.Build, opts schema.BuildUpdateOpts) error
Set stores the build data to a json file. file name is "/tmp/risu/<UUID>.json".
Click to show internal directories.
Click to hide internal directories.