Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceSchema ¶
type DeviceSchema struct { Name string `hcl:"name,label"` Size string `hcl:"size,attr"` System string `hcl:"system,attr"` BlockSize string `hcl:"blocksize,optional"` Expose bool `hcl:"expose,optional"` Location string `hcl:"location,optional"` ROSource *DeviceSchema `hcl:"source,block"` Binlog string `hcl:"binlog,optional"` PageServerPID int `hcl:"pid,optional"` Sync *SyncS3Schema `hcl:"sync,block"` }
func (*DeviceSchema) ByteBlockSize ¶ added in v0.0.3
func (ds *DeviceSchema) ByteBlockSize() int64
func (*DeviceSchema) ByteSize ¶
func (ds *DeviceSchema) ByteSize() int64
func (*DeviceSchema) Decode ¶ added in v0.0.6
func (ds *DeviceSchema) Decode(schema string) error
func (*DeviceSchema) Encode ¶ added in v0.0.6
func (ds *DeviceSchema) Encode() []byte
type SiloSchema ¶
type SiloSchema struct {
Device []*DeviceSchema `hcl:"device,block"`
}
func ReadSchema ¶
func ReadSchema(path string) (*SiloSchema, error)
func (*SiloSchema) Decode ¶
func (s *SiloSchema) Decode(data []byte) error
func (*SiloSchema) Encode ¶
func (s *SiloSchema) Encode() ([]byte, error)
type SyncConfigSchema ¶ added in v0.0.10
type SyncS3Schema ¶ added in v0.0.10
Click to show internal directories.
Click to hide internal directories.