satellitedb

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2019 License: AGPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WrapErr = func(err *Error) error { return err }
	Logger  func(format string, args ...interface{})
)
View Source
var SQLite3JournalMode = "WAL"

SQLite3JournalMode controls the journal_mode pragma for all new connections. Since it is read without a mutex, it must be changed to the value you want before any Open calls.

Functions

func DeleteAll

func DeleteAll(ctx context.Context, db *DB) (int64, error)

Types

type AccountingRollup

type AccountingRollup struct {
	Id             int64
	NodeId         []byte
	StartTime      time.Time
	PutTotal       int64
	GetTotal       int64
	GetAuditTotal  int64
	GetRepairTotal int64
	PutRepairTotal int64
	AtRestTotal    float64
}

type AccountingRollup_AtRestTotal_Field

type AccountingRollup_AtRestTotal_Field struct {
	// contains filtered or unexported fields
}

type AccountingRollup_GetAuditTotal_Field

type AccountingRollup_GetAuditTotal_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_GetAuditTotal

func AccountingRollup_GetAuditTotal(v int64) AccountingRollup_GetAuditTotal_Field

type AccountingRollup_GetRepairTotal_Field

type AccountingRollup_GetRepairTotal_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_GetRepairTotal

func AccountingRollup_GetRepairTotal(v int64) AccountingRollup_GetRepairTotal_Field

type AccountingRollup_GetTotal_Field

type AccountingRollup_GetTotal_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_GetTotal

func AccountingRollup_GetTotal(v int64) AccountingRollup_GetTotal_Field

type AccountingRollup_Id_Field

type AccountingRollup_Id_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_Id

func AccountingRollup_Id(v int64) AccountingRollup_Id_Field

type AccountingRollup_NodeId_Field

type AccountingRollup_NodeId_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_NodeId

func AccountingRollup_NodeId(v []byte) AccountingRollup_NodeId_Field

type AccountingRollup_PutRepairTotal_Field

type AccountingRollup_PutRepairTotal_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_PutRepairTotal

func AccountingRollup_PutRepairTotal(v int64) AccountingRollup_PutRepairTotal_Field

type AccountingRollup_PutTotal_Field

type AccountingRollup_PutTotal_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_PutTotal

func AccountingRollup_PutTotal(v int64) AccountingRollup_PutTotal_Field

type AccountingRollup_StartTime_Field

type AccountingRollup_StartTime_Field struct {
	// contains filtered or unexported fields
}

func AccountingRollup_StartTime

func AccountingRollup_StartTime(v time.Time) AccountingRollup_StartTime_Field

type AccountingRollup_Update_Fields

type AccountingRollup_Update_Fields struct {
}

type AccountingTimestamps

type AccountingTimestamps struct {
	Name  string
	Value time.Time
}

type AccountingTimestamps_Name_Field

type AccountingTimestamps_Name_Field struct {
	// contains filtered or unexported fields
}

func AccountingTimestamps_Name

func AccountingTimestamps_Name(v string) AccountingTimestamps_Name_Field

type AccountingTimestamps_Update_Fields

type AccountingTimestamps_Update_Fields struct {
	Value AccountingTimestamps_Value_Field
}

type AccountingTimestamps_Value_Field

type AccountingTimestamps_Value_Field struct {
	// contains filtered or unexported fields
}

func AccountingTimestamps_Value

func AccountingTimestamps_Value(v time.Time) AccountingTimestamps_Value_Field

type ApiKey

type ApiKey struct {
	Id        []byte
	ProjectId []byte
	Head      []byte
	Name      string
	Secret    []byte
	CreatedAt time.Time
}

type ApiKey_CreatedAt_Field

type ApiKey_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func ApiKey_CreatedAt

func ApiKey_CreatedAt(v time.Time) ApiKey_CreatedAt_Field

type ApiKey_Head_Field added in v0.12.0

type ApiKey_Head_Field struct {
	// contains filtered or unexported fields
}

func ApiKey_Head added in v0.12.0

func ApiKey_Head(v []byte) ApiKey_Head_Field

type ApiKey_Id_Field

type ApiKey_Id_Field struct {
	// contains filtered or unexported fields
}

func ApiKey_Id

func ApiKey_Id(v []byte) ApiKey_Id_Field

type ApiKey_Name_Field

type ApiKey_Name_Field struct {
	// contains filtered or unexported fields
}

func ApiKey_Name

func ApiKey_Name(v string) ApiKey_Name_Field

type ApiKey_ProjectId_Field

type ApiKey_ProjectId_Field struct {
	// contains filtered or unexported fields
}

func ApiKey_ProjectId

func ApiKey_ProjectId(v []byte) ApiKey_ProjectId_Field

type ApiKey_Secret_Field added in v0.12.0

type ApiKey_Secret_Field struct {
	// contains filtered or unexported fields
}

func ApiKey_Secret added in v0.12.0

func ApiKey_Secret(v []byte) ApiKey_Secret_Field

type ApiKey_Update_Fields

type ApiKey_Update_Fields struct {
	Name ApiKey_Name_Field
}

type BucketBandwidthRollup

type BucketBandwidthRollup struct {
	BucketName      []byte
	ProjectId       []byte
	IntervalStart   time.Time
	IntervalSeconds uint
	Action          uint
	Inline          uint64
	Allocated       uint64
	Settled         uint64
}

type BucketBandwidthRollup_Action_Field

type BucketBandwidthRollup_Action_Field struct {
	// contains filtered or unexported fields
}

func BucketBandwidthRollup_Action

func BucketBandwidthRollup_Action(v uint) BucketBandwidthRollup_Action_Field

type BucketBandwidthRollup_Allocated_Field

type BucketBandwidthRollup_Allocated_Field struct {
	// contains filtered or unexported fields
}

type BucketBandwidthRollup_BucketName_Field

type BucketBandwidthRollup_BucketName_Field struct {
	// contains filtered or unexported fields
}

func BucketBandwidthRollup_BucketName

func BucketBandwidthRollup_BucketName(v []byte) BucketBandwidthRollup_BucketName_Field

type BucketBandwidthRollup_Inline_Field

type BucketBandwidthRollup_Inline_Field struct {
	// contains filtered or unexported fields
}

func BucketBandwidthRollup_Inline

func BucketBandwidthRollup_Inline(v uint64) BucketBandwidthRollup_Inline_Field

type BucketBandwidthRollup_IntervalSeconds_Field

type BucketBandwidthRollup_IntervalSeconds_Field struct {
	// contains filtered or unexported fields
}

type BucketBandwidthRollup_IntervalStart_Field

type BucketBandwidthRollup_IntervalStart_Field struct {
	// contains filtered or unexported fields
}

type BucketBandwidthRollup_ProjectId_Field

type BucketBandwidthRollup_ProjectId_Field struct {
	// contains filtered or unexported fields
}

func BucketBandwidthRollup_ProjectId

func BucketBandwidthRollup_ProjectId(v []byte) BucketBandwidthRollup_ProjectId_Field

type BucketBandwidthRollup_Settled_Field

type BucketBandwidthRollup_Settled_Field struct {
	// contains filtered or unexported fields
}

func BucketBandwidthRollup_Settled

func BucketBandwidthRollup_Settled(v uint64) BucketBandwidthRollup_Settled_Field

type BucketStorageTally

type BucketStorageTally struct {
	BucketName          []byte
	ProjectId           []byte
	IntervalStart       time.Time
	Inline              uint64
	Remote              uint64
	RemoteSegmentsCount uint
	InlineSegmentsCount uint
	ObjectCount         uint
	MetadataSize        uint64
}

type BucketStorageTally_BucketName_Field

type BucketStorageTally_BucketName_Field struct {
	// contains filtered or unexported fields
}

func BucketStorageTally_BucketName

func BucketStorageTally_BucketName(v []byte) BucketStorageTally_BucketName_Field

type BucketStorageTally_InlineSegmentsCount_Field

type BucketStorageTally_InlineSegmentsCount_Field struct {
	// contains filtered or unexported fields
}

type BucketStorageTally_Inline_Field

type BucketStorageTally_Inline_Field struct {
	// contains filtered or unexported fields
}

func BucketStorageTally_Inline

func BucketStorageTally_Inline(v uint64) BucketStorageTally_Inline_Field

type BucketStorageTally_IntervalStart_Field

type BucketStorageTally_IntervalStart_Field struct {
	// contains filtered or unexported fields
}

type BucketStorageTally_MetadataSize_Field

type BucketStorageTally_MetadataSize_Field struct {
	// contains filtered or unexported fields
}

type BucketStorageTally_ObjectCount_Field

type BucketStorageTally_ObjectCount_Field struct {
	// contains filtered or unexported fields
}

func BucketStorageTally_ObjectCount

func BucketStorageTally_ObjectCount(v uint) BucketStorageTally_ObjectCount_Field

type BucketStorageTally_ProjectId_Field

type BucketStorageTally_ProjectId_Field struct {
	// contains filtered or unexported fields
}

func BucketStorageTally_ProjectId

func BucketStorageTally_ProjectId(v []byte) BucketStorageTally_ProjectId_Field

type BucketStorageTally_RemoteSegmentsCount_Field

type BucketStorageTally_RemoteSegmentsCount_Field struct {
	// contains filtered or unexported fields
}

type BucketStorageTally_Remote_Field

type BucketStorageTally_Remote_Field struct {
	// contains filtered or unexported fields
}

func BucketStorageTally_Remote

func BucketStorageTally_Remote(v uint64) BucketStorageTally_Remote_Field

type BucketStorageTally_Update_Fields

type BucketStorageTally_Update_Fields struct {
}

type BucketUsage

type BucketUsage struct {
	Id               []byte
	BucketId         []byte
	RollupEndTime    time.Time
	RemoteStoredData uint64
	InlineStoredData uint64
	RemoteSegments   uint
	InlineSegments   uint
	Objects          uint
	MetadataSize     uint64
	RepairEgress     uint64
	GetEgress        uint64
	AuditEgress      uint64
}

type BucketUsage_AuditEgress_Field

type BucketUsage_AuditEgress_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_AuditEgress

func BucketUsage_AuditEgress(v uint64) BucketUsage_AuditEgress_Field

type BucketUsage_BucketId_Field

type BucketUsage_BucketId_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_BucketId

func BucketUsage_BucketId(v []byte) BucketUsage_BucketId_Field

type BucketUsage_GetEgress_Field

type BucketUsage_GetEgress_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_GetEgress

func BucketUsage_GetEgress(v uint64) BucketUsage_GetEgress_Field

type BucketUsage_Id_Field

type BucketUsage_Id_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_Id

func BucketUsage_Id(v []byte) BucketUsage_Id_Field

type BucketUsage_InlineSegments_Field

type BucketUsage_InlineSegments_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_InlineSegments

func BucketUsage_InlineSegments(v uint) BucketUsage_InlineSegments_Field

type BucketUsage_InlineStoredData_Field

type BucketUsage_InlineStoredData_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_InlineStoredData

func BucketUsage_InlineStoredData(v uint64) BucketUsage_InlineStoredData_Field

type BucketUsage_MetadataSize_Field

type BucketUsage_MetadataSize_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_MetadataSize

func BucketUsage_MetadataSize(v uint64) BucketUsage_MetadataSize_Field

type BucketUsage_Objects_Field

type BucketUsage_Objects_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_Objects

func BucketUsage_Objects(v uint) BucketUsage_Objects_Field

type BucketUsage_RemoteSegments_Field

type BucketUsage_RemoteSegments_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_RemoteSegments

func BucketUsage_RemoteSegments(v uint) BucketUsage_RemoteSegments_Field

type BucketUsage_RemoteStoredData_Field

type BucketUsage_RemoteStoredData_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_RemoteStoredData

func BucketUsage_RemoteStoredData(v uint64) BucketUsage_RemoteStoredData_Field

type BucketUsage_RepairEgress_Field

type BucketUsage_RepairEgress_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_RepairEgress

func BucketUsage_RepairEgress(v uint64) BucketUsage_RepairEgress_Field

type BucketUsage_RollupEndTime_Field

type BucketUsage_RollupEndTime_Field struct {
	// contains filtered or unexported fields
}

func BucketUsage_RollupEndTime

func BucketUsage_RollupEndTime(v time.Time) BucketUsage_RollupEndTime_Field

type BucketUsage_Update_Fields

type BucketUsage_Update_Fields struct {
}

type Bwagreement

type Bwagreement struct {
	Serialnum     string
	StorageNodeId []byte
	UplinkId      []byte
	Action        int64
	Total         int64
	CreatedAt     time.Time
	ExpiresAt     time.Time
}

type Bwagreement_Action_Field

type Bwagreement_Action_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_Action

func Bwagreement_Action(v int64) Bwagreement_Action_Field

type Bwagreement_CreatedAt_Field

type Bwagreement_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_CreatedAt

func Bwagreement_CreatedAt(v time.Time) Bwagreement_CreatedAt_Field

type Bwagreement_ExpiresAt_Field

type Bwagreement_ExpiresAt_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_ExpiresAt

func Bwagreement_ExpiresAt(v time.Time) Bwagreement_ExpiresAt_Field

type Bwagreement_Serialnum_Field

type Bwagreement_Serialnum_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_Serialnum

func Bwagreement_Serialnum(v string) Bwagreement_Serialnum_Field

type Bwagreement_StorageNodeId_Field

type Bwagreement_StorageNodeId_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_StorageNodeId

func Bwagreement_StorageNodeId(v []byte) Bwagreement_StorageNodeId_Field

type Bwagreement_Total_Field

type Bwagreement_Total_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_Total

func Bwagreement_Total(v int64) Bwagreement_Total_Field

type Bwagreement_Update_Fields

type Bwagreement_Update_Fields struct {
}

type Bwagreement_UplinkId_Field

type Bwagreement_UplinkId_Field struct {
	// contains filtered or unexported fields
}

func Bwagreement_UplinkId

func Bwagreement_UplinkId(v []byte) Bwagreement_UplinkId_Field

type CertRecord

type CertRecord struct {
	Publickey []byte
	Id        []byte
	UpdateAt  time.Time
}

type CertRecord_Id_Field

type CertRecord_Id_Field struct {
	// contains filtered or unexported fields
}

func CertRecord_Id

func CertRecord_Id(v []byte) CertRecord_Id_Field

type CertRecord_Publickey_Field

type CertRecord_Publickey_Field struct {
	// contains filtered or unexported fields
}

func CertRecord_Publickey

func CertRecord_Publickey(v []byte) CertRecord_Publickey_Field

type CertRecord_UpdateAt_Field

type CertRecord_UpdateAt_Field struct {
	// contains filtered or unexported fields
}

func CertRecord_UpdateAt

func CertRecord_UpdateAt(v time.Time) CertRecord_UpdateAt_Field

type CertRecord_Update_Fields

type CertRecord_Update_Fields struct {
}

type DB

type DB struct {
	*sql.DB

	Hooks struct {
		Now func() time.Time
	}
	// contains filtered or unexported fields
}

func Open

func Open(driver, source string) (db *DB, err error)

func (*DB) Close

func (obj *DB) Close() (err error)

func (*DB) NewRx

func (obj *DB) NewRx() *Rx

func (*DB) Open

func (obj *DB) Open(ctx context.Context) (*Tx, error)

func (*DB) WithTx

func (db *DB) WithTx(ctx context.Context, fn func(context.Context, *Tx) error) (err error)

WithTx wraps DB code in a transaction

type DBMethods

type DBMethods interface {
	Methods

	Schema() string
	Rebind(sql string) string
}

type Error

type Error struct {
	Err         error
	Code        ErrorCode
	Driver      string
	Constraint  string
	QuerySuffix string
}

func (*Error) Cause added in v0.10.0

func (e *Error) Cause() error

Cause returns the underlying error.

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap added in v0.10.0

func (e *Error) Unwrap() error

Unwrap returns the underlying error.

type ErrorCode

type ErrorCode int
const (
	ErrorCode_Unknown ErrorCode = iota
	ErrorCode_UnsupportedDriver
	ErrorCode_NoRows
	ErrorCode_TxDone
	ErrorCode_TooManyRows
	ErrorCode_ConstraintViolation
	ErrorCode_EmptyUpdate
)

type Id_Row

type Id_Row struct {
	Id []byte
}

type Injuredsegment

type Injuredsegment struct {
	Path      string
	Data      []byte
	Attempted *time.Time
}

type Injuredsegment_Attempted_Field added in v0.10.0

type Injuredsegment_Attempted_Field struct {
	// contains filtered or unexported fields
}

func Injuredsegment_Attempted added in v0.10.0

func Injuredsegment_Attempted(v time.Time) Injuredsegment_Attempted_Field

func Injuredsegment_Attempted_Null added in v0.10.0

func Injuredsegment_Attempted_Null() Injuredsegment_Attempted_Field

func Injuredsegment_Attempted_Raw added in v0.10.0

func Injuredsegment_Attempted_Raw(v *time.Time) Injuredsegment_Attempted_Field

type Injuredsegment_Create_Fields added in v0.10.0

type Injuredsegment_Create_Fields struct {
	Attempted Injuredsegment_Attempted_Field
}

type Injuredsegment_Data_Field added in v0.10.0

type Injuredsegment_Data_Field struct {
	// contains filtered or unexported fields
}

func Injuredsegment_Data added in v0.10.0

func Injuredsegment_Data(v []byte) Injuredsegment_Data_Field

type Injuredsegment_Path_Field added in v0.10.0

type Injuredsegment_Path_Field struct {
	// contains filtered or unexported fields
}

func Injuredsegment_Path added in v0.10.0

func Injuredsegment_Path(v string) Injuredsegment_Path_Field

type Injuredsegment_Update_Fields

type Injuredsegment_Update_Fields struct {
	Attempted Injuredsegment_Attempted_Field
}

type Irreparabledb

type Irreparabledb struct {
	Segmentpath        []byte
	Segmentdetail      []byte
	PiecesLostCount    int64
	SegDamagedUnixSec  int64
	RepairAttemptCount int64
}

type Irreparabledb_PiecesLostCount_Field

type Irreparabledb_PiecesLostCount_Field struct {
	// contains filtered or unexported fields
}

func Irreparabledb_PiecesLostCount

func Irreparabledb_PiecesLostCount(v int64) Irreparabledb_PiecesLostCount_Field

type Irreparabledb_RepairAttemptCount_Field

type Irreparabledb_RepairAttemptCount_Field struct {
	// contains filtered or unexported fields
}

type Irreparabledb_SegDamagedUnixSec_Field

type Irreparabledb_SegDamagedUnixSec_Field struct {
	// contains filtered or unexported fields
}

func Irreparabledb_SegDamagedUnixSec

func Irreparabledb_SegDamagedUnixSec(v int64) Irreparabledb_SegDamagedUnixSec_Field

type Irreparabledb_Segmentdetail_Field

type Irreparabledb_Segmentdetail_Field struct {
	// contains filtered or unexported fields
}

func Irreparabledb_Segmentdetail

func Irreparabledb_Segmentdetail(v []byte) Irreparabledb_Segmentdetail_Field

type Irreparabledb_Segmentpath_Field

type Irreparabledb_Segmentpath_Field struct {
	// contains filtered or unexported fields
}

func Irreparabledb_Segmentpath

func Irreparabledb_Segmentpath(v []byte) Irreparabledb_Segmentpath_Field

type Irreparabledb_Update_Fields

type Irreparabledb_Update_Fields struct {
	Segmentdetail      Irreparabledb_Segmentdetail_Field
	PiecesLostCount    Irreparabledb_PiecesLostCount_Field
	SegDamagedUnixSec  Irreparabledb_SegDamagedUnixSec_Field
	RepairAttemptCount Irreparabledb_RepairAttemptCount_Field
}

type Methods

type Methods interface {
	All_AccountingRollup_By_StartTime_GreaterOrEqual(ctx context.Context,
		accounting_rollup_start_time_greater_or_equal AccountingRollup_StartTime_Field) (
		rows []*AccountingRollup, err error)

	All_ApiKey_By_ProjectId_OrderBy_Asc_Name(ctx context.Context,
		api_key_project_id ApiKey_ProjectId_Field) (
		rows []*ApiKey, err error)

	All_BucketStorageTally_By_ProjectId_And_BucketName_And_IntervalStart_GreaterOrEqual_And_IntervalStart_LessOrEqual_OrderBy_Desc_IntervalStart(ctx context.Context,
		bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
		bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
		bucket_storage_tally_interval_start_greater_or_equal BucketStorageTally_IntervalStart_Field,
		bucket_storage_tally_interval_start_less_or_equal BucketStorageTally_IntervalStart_Field) (
		rows []*BucketStorageTally, err error)

	All_Node_Id(ctx context.Context) (
		rows []*Id_Row, err error)

	All_Offer(ctx context.Context) (
		rows []*Offer, err error)

	All_Project(ctx context.Context) (
		rows []*Project, err error)

	All_ProjectMember_By_MemberId(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field) (
		rows []*ProjectMember, err error)

	All_Project_By_ProjectMember_MemberId_OrderBy_Asc_Project_Name(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field) (
		rows []*Project, err error)

	All_StoragenodeBandwidthRollup_By_IntervalStart_GreaterOrEqual(ctx context.Context,
		storagenode_bandwidth_rollup_interval_start_greater_or_equal StoragenodeBandwidthRollup_IntervalStart_Field) (
		rows []*StoragenodeBandwidthRollup, err error)

	All_StoragenodeStorageTally(ctx context.Context) (
		rows []*StoragenodeStorageTally, err error)

	All_StoragenodeStorageTally_By_IntervalEndTime_GreaterOrEqual(ctx context.Context,
		storagenode_storage_tally_interval_end_time_greater_or_equal StoragenodeStorageTally_IntervalEndTime_Field) (
		rows []*StoragenodeStorageTally, err error)

	Create_AccountingRollup(ctx context.Context,
		accounting_rollup_node_id AccountingRollup_NodeId_Field,
		accounting_rollup_start_time AccountingRollup_StartTime_Field,
		accounting_rollup_put_total AccountingRollup_PutTotal_Field,
		accounting_rollup_get_total AccountingRollup_GetTotal_Field,
		accounting_rollup_get_audit_total AccountingRollup_GetAuditTotal_Field,
		accounting_rollup_get_repair_total AccountingRollup_GetRepairTotal_Field,
		accounting_rollup_put_repair_total AccountingRollup_PutRepairTotal_Field,
		accounting_rollup_at_rest_total AccountingRollup_AtRestTotal_Field) (
		accounting_rollup *AccountingRollup, err error)

	Create_AccountingTimestamps(ctx context.Context,
		accounting_timestamps_name AccountingTimestamps_Name_Field,
		accounting_timestamps_value AccountingTimestamps_Value_Field) (
		accounting_timestamps *AccountingTimestamps, err error)

	Create_ApiKey(ctx context.Context,
		api_key_id ApiKey_Id_Field,
		api_key_project_id ApiKey_ProjectId_Field,
		api_key_head ApiKey_Head_Field,
		api_key_name ApiKey_Name_Field,
		api_key_secret ApiKey_Secret_Field) (
		api_key *ApiKey, err error)

	Create_BucketStorageTally(ctx context.Context,
		bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
		bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
		bucket_storage_tally_interval_start BucketStorageTally_IntervalStart_Field,
		bucket_storage_tally_inline BucketStorageTally_Inline_Field,
		bucket_storage_tally_remote BucketStorageTally_Remote_Field,
		bucket_storage_tally_remote_segments_count BucketStorageTally_RemoteSegmentsCount_Field,
		bucket_storage_tally_inline_segments_count BucketStorageTally_InlineSegmentsCount_Field,
		bucket_storage_tally_object_count BucketStorageTally_ObjectCount_Field,
		bucket_storage_tally_metadata_size BucketStorageTally_MetadataSize_Field) (
		bucket_storage_tally *BucketStorageTally, err error)

	Create_BucketUsage(ctx context.Context,
		bucket_usage_id BucketUsage_Id_Field,
		bucket_usage_bucket_id BucketUsage_BucketId_Field,
		bucket_usage_rollup_end_time BucketUsage_RollupEndTime_Field,
		bucket_usage_remote_stored_data BucketUsage_RemoteStoredData_Field,
		bucket_usage_inline_stored_data BucketUsage_InlineStoredData_Field,
		bucket_usage_remote_segments BucketUsage_RemoteSegments_Field,
		bucket_usage_inline_segments BucketUsage_InlineSegments_Field,
		bucket_usage_objects BucketUsage_Objects_Field,
		bucket_usage_metadata_size BucketUsage_MetadataSize_Field,
		bucket_usage_repair_egress BucketUsage_RepairEgress_Field,
		bucket_usage_get_egress BucketUsage_GetEgress_Field,
		bucket_usage_audit_egress BucketUsage_AuditEgress_Field) (
		bucket_usage *BucketUsage, err error)

	Create_CertRecord(ctx context.Context,
		certRecord_publickey CertRecord_Publickey_Field,
		certRecord_id CertRecord_Id_Field) (
		certRecord *CertRecord, err error)

	Create_Irreparabledb(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
		irreparabledb_segmentdetail Irreparabledb_Segmentdetail_Field,
		irreparabledb_pieces_lost_count Irreparabledb_PiecesLostCount_Field,
		irreparabledb_seg_damaged_unix_sec Irreparabledb_SegDamagedUnixSec_Field,
		irreparabledb_repair_attempt_count Irreparabledb_RepairAttemptCount_Field) (
		irreparabledb *Irreparabledb, err error)

	Create_Node(ctx context.Context,
		node_id Node_Id_Field,
		node_address Node_Address_Field,
		node_last_ip Node_LastIp_Field,
		node_protocol Node_Protocol_Field,
		node_type Node_Type_Field,
		node_email Node_Email_Field,
		node_wallet Node_Wallet_Field,
		node_free_bandwidth Node_FreeBandwidth_Field,
		node_free_disk Node_FreeDisk_Field,
		node_major Node_Major_Field,
		node_minor Node_Minor_Field,
		node_patch Node_Patch_Field,
		node_hash Node_Hash_Field,
		node_timestamp Node_Timestamp_Field,
		node_release Node_Release_Field,
		node_latency_90 Node_Latency90_Field,
		node_audit_success_count Node_AuditSuccessCount_Field,
		node_total_audit_count Node_TotalAuditCount_Field,
		node_audit_success_ratio Node_AuditSuccessRatio_Field,
		node_uptime_success_count Node_UptimeSuccessCount_Field,
		node_total_uptime_count Node_TotalUptimeCount_Field,
		node_uptime_ratio Node_UptimeRatio_Field,
		node_last_contact_success Node_LastContactSuccess_Field,
		node_last_contact_failure Node_LastContactFailure_Field,
		node_contained Node_Contained_Field) (
		node *Node, err error)

	Create_Offer(ctx context.Context,
		offer_name Offer_Name_Field,
		offer_description Offer_Description_Field,
		offer_type Offer_Type_Field,
		offer_credit_in_cents Offer_CreditInCents_Field,
		offer_award_credit_duration_days Offer_AwardCreditDurationDays_Field,
		offer_invitee_credit_duration_days Offer_InviteeCreditDurationDays_Field,
		offer_redeemable_cap Offer_RedeemableCap_Field) (
		offer *Offer, err error)

	Create_PendingAudits(ctx context.Context,
		pending_audits_node_id PendingAudits_NodeId_Field,
		pending_audits_piece_id PendingAudits_PieceId_Field,
		pending_audits_stripe_index PendingAudits_StripeIndex_Field,
		pending_audits_share_size PendingAudits_ShareSize_Field,
		pending_audits_expected_share_hash PendingAudits_ExpectedShareHash_Field,
		pending_audits_reverify_count PendingAudits_ReverifyCount_Field) (
		pending_audits *PendingAudits, err error)

	Create_Project(ctx context.Context,
		project_id Project_Id_Field,
		project_name Project_Name_Field,
		project_description Project_Description_Field) (
		project *Project, err error)

	Create_ProjectMember(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field,
		project_member_project_id ProjectMember_ProjectId_Field) (
		project_member *ProjectMember, err error)

	Create_RegistrationToken(ctx context.Context,
		registration_token_secret RegistrationToken_Secret_Field,
		registration_token_project_limit RegistrationToken_ProjectLimit_Field,
		optional RegistrationToken_Create_Fields) (
		registration_token *RegistrationToken, err error)

	Create_ResetPasswordToken(ctx context.Context,
		reset_password_token_secret ResetPasswordToken_Secret_Field,
		reset_password_token_owner_id ResetPasswordToken_OwnerId_Field) (
		reset_password_token *ResetPasswordToken, err error)

	Create_SerialNumber(ctx context.Context,
		serial_number_serial_number SerialNumber_SerialNumber_Field,
		serial_number_bucket_id SerialNumber_BucketId_Field,
		serial_number_expires_at SerialNumber_ExpiresAt_Field) (
		serial_number *SerialNumber, err error)

	Create_StoragenodeStorageTally(ctx context.Context,
		storagenode_storage_tally_node_id StoragenodeStorageTally_NodeId_Field,
		storagenode_storage_tally_interval_end_time StoragenodeStorageTally_IntervalEndTime_Field,
		storagenode_storage_tally_data_total StoragenodeStorageTally_DataTotal_Field) (
		storagenode_storage_tally *StoragenodeStorageTally, err error)

	Create_UsedSerial(ctx context.Context,
		used_serial_serial_number_id UsedSerial_SerialNumberId_Field,
		used_serial_storage_node_id UsedSerial_StorageNodeId_Field) (
		used_serial *UsedSerial, err error)

	Create_User(ctx context.Context,
		user_id User_Id_Field,
		user_full_name User_FullName_Field,
		user_email User_Email_Field,
		user_password_hash User_PasswordHash_Field,
		optional User_Create_Fields) (
		user *User, err error)

	Delete_AccountingRollup_By_Id(ctx context.Context,
		accounting_rollup_id AccountingRollup_Id_Field) (
		deleted bool, err error)

	Delete_ApiKey_By_Id(ctx context.Context,
		api_key_id ApiKey_Id_Field) (
		deleted bool, err error)

	Delete_BucketUsage_By_Id(ctx context.Context,
		bucket_usage_id BucketUsage_Id_Field) (
		deleted bool, err error)

	Delete_CertRecord_By_Id(ctx context.Context,
		certRecord_id CertRecord_Id_Field) (
		deleted bool, err error)

	Delete_Irreparabledb_By_Segmentpath(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
		deleted bool, err error)

	Delete_Node_By_Id(ctx context.Context,
		node_id Node_Id_Field) (
		deleted bool, err error)

	Delete_Offer_By_Id(ctx context.Context,
		offer_id Offer_Id_Field) (
		deleted bool, err error)

	Delete_PendingAudits_By_NodeId(ctx context.Context,
		pending_audits_node_id PendingAudits_NodeId_Field) (
		deleted bool, err error)

	Delete_ProjectMember_By_MemberId_And_ProjectId(ctx context.Context,
		project_member_member_id ProjectMember_MemberId_Field,
		project_member_project_id ProjectMember_ProjectId_Field) (
		deleted bool, err error)

	Delete_Project_By_Id(ctx context.Context,
		project_id Project_Id_Field) (
		deleted bool, err error)

	Delete_ResetPasswordToken_By_Secret(ctx context.Context,
		reset_password_token_secret ResetPasswordToken_Secret_Field) (
		deleted bool, err error)

	Delete_SerialNumber_By_ExpiresAt_LessOrEqual(ctx context.Context,
		serial_number_expires_at_less_or_equal SerialNumber_ExpiresAt_Field) (
		count int64, err error)

	Delete_StoragenodeStorageTally_By_Id(ctx context.Context,
		storagenode_storage_tally_id StoragenodeStorageTally_Id_Field) (
		deleted bool, err error)

	Delete_User_By_Id(ctx context.Context,
		user_id User_Id_Field) (
		deleted bool, err error)

	Find_AccountingTimestamps_Value_By_Name(ctx context.Context,
		accounting_timestamps_name AccountingTimestamps_Name_Field) (
		row *Value_Row, err error)

	Find_BucketBandwidthRollup_By_BucketName_And_ProjectId_And_IntervalStart_And_Action(ctx context.Context,
		bucket_bandwidth_rollup_bucket_name BucketBandwidthRollup_BucketName_Field,
		bucket_bandwidth_rollup_project_id BucketBandwidthRollup_ProjectId_Field,
		bucket_bandwidth_rollup_interval_start BucketBandwidthRollup_IntervalStart_Field,
		bucket_bandwidth_rollup_action BucketBandwidthRollup_Action_Field) (
		bucket_bandwidth_rollup *BucketBandwidthRollup, err error)

	Find_SerialNumber_By_SerialNumber(ctx context.Context,
		serial_number_serial_number SerialNumber_SerialNumber_Field) (
		serial_number *SerialNumber, err error)

	Find_StoragenodeBandwidthRollup_By_StoragenodeId_And_IntervalStart_And_Action(ctx context.Context,
		storagenode_bandwidth_rollup_storagenode_id StoragenodeBandwidthRollup_StoragenodeId_Field,
		storagenode_bandwidth_rollup_interval_start StoragenodeBandwidthRollup_IntervalStart_Field,
		storagenode_bandwidth_rollup_action StoragenodeBandwidthRollup_Action_Field) (
		storagenode_bandwidth_rollup *StoragenodeBandwidthRollup, err error)

	First_BucketStorageTally_By_ProjectId_OrderBy_Desc_IntervalStart(ctx context.Context,
		bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field) (
		bucket_storage_tally *BucketStorageTally, err error)

	Get_AccountingRollup_By_Id(ctx context.Context,
		accounting_rollup_id AccountingRollup_Id_Field) (
		accounting_rollup *AccountingRollup, err error)

	Get_ApiKey_By_Head(ctx context.Context,
		api_key_head ApiKey_Head_Field) (
		api_key *ApiKey, err error)

	Get_ApiKey_By_Id(ctx context.Context,
		api_key_id ApiKey_Id_Field) (
		api_key *ApiKey, err error)

	Get_BucketUsage_By_Id(ctx context.Context,
		bucket_usage_id BucketUsage_Id_Field) (
		bucket_usage *BucketUsage, err error)

	Get_CertRecord_By_Id(ctx context.Context,
		certRecord_id CertRecord_Id_Field) (
		certRecord *CertRecord, err error)

	Get_Irreparabledb_By_Segmentpath(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
		irreparabledb *Irreparabledb, err error)

	Get_Node_By_Id(ctx context.Context,
		node_id Node_Id_Field) (
		node *Node, err error)

	Get_Offer_By_Id(ctx context.Context,
		offer_id Offer_Id_Field) (
		offer *Offer, err error)

	Get_Offer_By_Status_And_Type_And_ExpiresAt_GreaterOrEqual(ctx context.Context,
		offer_status Offer_Status_Field,
		offer_type Offer_Type_Field,
		offer_expires_at_greater_or_equal Offer_ExpiresAt_Field) (
		offer *Offer, err error)

	Get_PendingAudits_By_NodeId(ctx context.Context,
		pending_audits_node_id PendingAudits_NodeId_Field) (
		pending_audits *PendingAudits, err error)

	Get_Project_By_Id(ctx context.Context,
		project_id Project_Id_Field) (
		project *Project, err error)

	Get_RegistrationToken_By_OwnerId(ctx context.Context,
		registration_token_owner_id RegistrationToken_OwnerId_Field) (
		registration_token *RegistrationToken, err error)

	Get_RegistrationToken_By_Secret(ctx context.Context,
		registration_token_secret RegistrationToken_Secret_Field) (
		registration_token *RegistrationToken, err error)

	Get_ResetPasswordToken_By_OwnerId(ctx context.Context,
		reset_password_token_owner_id ResetPasswordToken_OwnerId_Field) (
		reset_password_token *ResetPasswordToken, err error)

	Get_ResetPasswordToken_By_Secret(ctx context.Context,
		reset_password_token_secret ResetPasswordToken_Secret_Field) (
		reset_password_token *ResetPasswordToken, err error)

	Get_StoragenodeStorageTally_By_Id(ctx context.Context,
		storagenode_storage_tally_id StoragenodeStorageTally_Id_Field) (
		storagenode_storage_tally *StoragenodeStorageTally, err error)

	Get_User_By_Email_And_Status_Not_Number(ctx context.Context,
		user_email User_Email_Field) (
		user *User, err error)

	Get_User_By_Id(ctx context.Context,
		user_id User_Id_Field) (
		user *User, err error)

	Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Asc_RollupEndTime(ctx context.Context,
		bucket_usage_bucket_id BucketUsage_BucketId_Field,
		bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
		bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
		limit int, offset int64) (
		rows []*BucketUsage, err error)

	Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Desc_RollupEndTime(ctx context.Context,
		bucket_usage_bucket_id BucketUsage_BucketId_Field,
		bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
		bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
		limit int, offset int64) (
		rows []*BucketUsage, err error)

	Limited_Irreparabledb_OrderBy_Asc_Segmentpath(ctx context.Context,
		limit int, offset int64) (
		rows []*Irreparabledb, err error)

	Limited_Node_By_Id_GreaterOrEqual_OrderBy_Asc_Id(ctx context.Context,
		node_id_greater_or_equal Node_Id_Field,
		limit int, offset int64) (
		rows []*Node, err error)

	Limited_ProjectMember_By_ProjectId(ctx context.Context,
		project_member_project_id ProjectMember_ProjectId_Field,
		limit int, offset int64) (
		rows []*ProjectMember, err error)

	Update_AccountingTimestamps_By_Name(ctx context.Context,
		accounting_timestamps_name AccountingTimestamps_Name_Field,
		update AccountingTimestamps_Update_Fields) (
		accounting_timestamps *AccountingTimestamps, err error)

	Update_ApiKey_By_Id(ctx context.Context,
		api_key_id ApiKey_Id_Field,
		update ApiKey_Update_Fields) (
		api_key *ApiKey, err error)

	Update_CertRecord_By_Id(ctx context.Context,
		certRecord_id CertRecord_Id_Field,
		update CertRecord_Update_Fields) (
		certRecord *CertRecord, err error)

	Update_Irreparabledb_By_Segmentpath(ctx context.Context,
		irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
		update Irreparabledb_Update_Fields) (
		irreparabledb *Irreparabledb, err error)

	Update_Node_By_Id(ctx context.Context,
		node_id Node_Id_Field,
		update Node_Update_Fields) (
		node *Node, err error)

	Update_Offer_By_Id_And_Status_Equal_Number_And_ExpiresAt_GreaterOrEqual_CreatedAt(ctx context.Context,
		offer_id Offer_Id_Field,
		update Offer_Update_Fields) (
		offer *Offer, err error)

	Update_PendingAudits_By_NodeId(ctx context.Context,
		pending_audits_node_id PendingAudits_NodeId_Field,
		update PendingAudits_Update_Fields) (
		pending_audits *PendingAudits, err error)

	Update_Project_By_Id(ctx context.Context,
		project_id Project_Id_Field,
		update Project_Update_Fields) (
		project *Project, err error)

	Update_RegistrationToken_By_Secret(ctx context.Context,
		registration_token_secret RegistrationToken_Secret_Field,
		update RegistrationToken_Update_Fields) (
		registration_token *RegistrationToken, err error)

	Update_User_By_Id(ctx context.Context,
		user_id User_Id_Field,
		update User_Update_Fields) (
		user *User, err error)
}

type Node

type Node struct {
	Id                 []byte
	Address            string
	LastIp             string
	Protocol           int
	Type               int
	Email              string
	Wallet             string
	FreeBandwidth      int64
	FreeDisk           int64
	Major              int64
	Minor              int64
	Patch              int64
	Hash               string
	Timestamp          time.Time
	Release            bool
	Latency90          int64
	AuditSuccessCount  int64
	TotalAuditCount    int64
	AuditSuccessRatio  float64
	UptimeSuccessCount int64
	TotalUptimeCount   int64
	UptimeRatio        float64
	CreatedAt          time.Time
	UpdatedAt          time.Time
	LastContactSuccess time.Time
	LastContactFailure time.Time
	Contained          bool
}

type Node_Address_Field

type Node_Address_Field struct {
	// contains filtered or unexported fields
}

func Node_Address

func Node_Address(v string) Node_Address_Field

type Node_AuditSuccessCount_Field

type Node_AuditSuccessCount_Field struct {
	// contains filtered or unexported fields
}

func Node_AuditSuccessCount

func Node_AuditSuccessCount(v int64) Node_AuditSuccessCount_Field

type Node_AuditSuccessRatio_Field

type Node_AuditSuccessRatio_Field struct {
	// contains filtered or unexported fields
}

func Node_AuditSuccessRatio

func Node_AuditSuccessRatio(v float64) Node_AuditSuccessRatio_Field

type Node_Contained_Field added in v0.12.0

type Node_Contained_Field struct {
	// contains filtered or unexported fields
}

func Node_Contained added in v0.12.0

func Node_Contained(v bool) Node_Contained_Field

type Node_CreatedAt_Field

type Node_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func Node_CreatedAt

func Node_CreatedAt(v time.Time) Node_CreatedAt_Field

type Node_Email_Field

type Node_Email_Field struct {
	// contains filtered or unexported fields
}

func Node_Email

func Node_Email(v string) Node_Email_Field

type Node_FreeBandwidth_Field

type Node_FreeBandwidth_Field struct {
	// contains filtered or unexported fields
}

func Node_FreeBandwidth

func Node_FreeBandwidth(v int64) Node_FreeBandwidth_Field

type Node_FreeDisk_Field

type Node_FreeDisk_Field struct {
	// contains filtered or unexported fields
}

func Node_FreeDisk

func Node_FreeDisk(v int64) Node_FreeDisk_Field

type Node_Hash_Field added in v0.8.1

type Node_Hash_Field struct {
	// contains filtered or unexported fields
}

func Node_Hash added in v0.8.1

func Node_Hash(v string) Node_Hash_Field

type Node_Id_Field

type Node_Id_Field struct {
	// contains filtered or unexported fields
}

func Node_Id

func Node_Id(v []byte) Node_Id_Field

type Node_LastContactFailure_Field

type Node_LastContactFailure_Field struct {
	// contains filtered or unexported fields
}

func Node_LastContactFailure

func Node_LastContactFailure(v time.Time) Node_LastContactFailure_Field

type Node_LastContactSuccess_Field

type Node_LastContactSuccess_Field struct {
	// contains filtered or unexported fields
}

func Node_LastContactSuccess

func Node_LastContactSuccess(v time.Time) Node_LastContactSuccess_Field

type Node_LastIp_Field added in v0.12.0

type Node_LastIp_Field struct {
	// contains filtered or unexported fields
}

func Node_LastIp added in v0.12.0

func Node_LastIp(v string) Node_LastIp_Field

type Node_Latency90_Field

type Node_Latency90_Field struct {
	// contains filtered or unexported fields
}

func Node_Latency90

func Node_Latency90(v int64) Node_Latency90_Field

type Node_Major_Field added in v0.8.1

type Node_Major_Field struct {
	// contains filtered or unexported fields
}

func Node_Major added in v0.8.1

func Node_Major(v int64) Node_Major_Field

type Node_Minor_Field added in v0.8.1

type Node_Minor_Field struct {
	// contains filtered or unexported fields
}

func Node_Minor added in v0.8.1

func Node_Minor(v int64) Node_Minor_Field

type Node_Patch_Field added in v0.8.1

type Node_Patch_Field struct {
	// contains filtered or unexported fields
}

func Node_Patch added in v0.8.1

func Node_Patch(v int64) Node_Patch_Field

type Node_Protocol_Field

type Node_Protocol_Field struct {
	// contains filtered or unexported fields
}

func Node_Protocol

func Node_Protocol(v int) Node_Protocol_Field

type Node_Release_Field added in v0.8.1

type Node_Release_Field struct {
	// contains filtered or unexported fields
}

func Node_Release added in v0.8.1

func Node_Release(v bool) Node_Release_Field

type Node_Timestamp_Field added in v0.8.1

type Node_Timestamp_Field struct {
	// contains filtered or unexported fields
}

func Node_Timestamp added in v0.8.1

func Node_Timestamp(v time.Time) Node_Timestamp_Field

type Node_TotalAuditCount_Field

type Node_TotalAuditCount_Field struct {
	// contains filtered or unexported fields
}

func Node_TotalAuditCount

func Node_TotalAuditCount(v int64) Node_TotalAuditCount_Field

type Node_TotalUptimeCount_Field

type Node_TotalUptimeCount_Field struct {
	// contains filtered or unexported fields
}

func Node_TotalUptimeCount

func Node_TotalUptimeCount(v int64) Node_TotalUptimeCount_Field

type Node_Type_Field

type Node_Type_Field struct {
	// contains filtered or unexported fields
}

func Node_Type

func Node_Type(v int) Node_Type_Field

type Node_UpdatedAt_Field

type Node_UpdatedAt_Field struct {
	// contains filtered or unexported fields
}

func Node_UpdatedAt

func Node_UpdatedAt(v time.Time) Node_UpdatedAt_Field

type Node_UptimeRatio_Field

type Node_UptimeRatio_Field struct {
	// contains filtered or unexported fields
}

func Node_UptimeRatio

func Node_UptimeRatio(v float64) Node_UptimeRatio_Field

type Node_UptimeSuccessCount_Field

type Node_UptimeSuccessCount_Field struct {
	// contains filtered or unexported fields
}

func Node_UptimeSuccessCount

func Node_UptimeSuccessCount(v int64) Node_UptimeSuccessCount_Field

type Node_Wallet_Field

type Node_Wallet_Field struct {
	// contains filtered or unexported fields
}

func Node_Wallet

func Node_Wallet(v string) Node_Wallet_Field

type Offer added in v0.12.0

type Offer struct {
	Id                        int
	Name                      string
	Description               string
	Type                      int
	CreditInCents             int
	AwardCreditDurationDays   int
	InviteeCreditDurationDays int
	RedeemableCap             int
	NumRedeemed               int
	ExpiresAt                 *time.Time
	CreatedAt                 time.Time
	Status                    int
}

type Offer_AwardCreditDurationDays_Field added in v0.12.0

type Offer_AwardCreditDurationDays_Field struct {
	// contains filtered or unexported fields
}

func Offer_AwardCreditDurationDays added in v0.12.0

func Offer_AwardCreditDurationDays(v int) Offer_AwardCreditDurationDays_Field

type Offer_CreatedAt_Field added in v0.12.0

type Offer_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func Offer_CreatedAt added in v0.12.0

func Offer_CreatedAt(v time.Time) Offer_CreatedAt_Field

type Offer_CreditInCents_Field added in v0.12.0

type Offer_CreditInCents_Field struct {
	// contains filtered or unexported fields
}

func Offer_CreditInCents added in v0.12.0

func Offer_CreditInCents(v int) Offer_CreditInCents_Field

type Offer_Description_Field added in v0.12.0

type Offer_Description_Field struct {
	// contains filtered or unexported fields
}

func Offer_Description added in v0.12.0

func Offer_Description(v string) Offer_Description_Field

type Offer_ExpiresAt_Field added in v0.12.0

type Offer_ExpiresAt_Field struct {
	// contains filtered or unexported fields
}

func Offer_ExpiresAt added in v0.12.0

func Offer_ExpiresAt(v time.Time) Offer_ExpiresAt_Field

func Offer_ExpiresAt_Null added in v0.12.0

func Offer_ExpiresAt_Null() Offer_ExpiresAt_Field

func Offer_ExpiresAt_Raw added in v0.12.0

func Offer_ExpiresAt_Raw(v *time.Time) Offer_ExpiresAt_Field

type Offer_Id_Field added in v0.12.0

type Offer_Id_Field struct {
	// contains filtered or unexported fields
}

func Offer_Id added in v0.12.0

func Offer_Id(v int) Offer_Id_Field

type Offer_InviteeCreditDurationDays_Field added in v0.12.0

type Offer_InviteeCreditDurationDays_Field struct {
	// contains filtered or unexported fields
}

func Offer_InviteeCreditDurationDays added in v0.12.0

func Offer_InviteeCreditDurationDays(v int) Offer_InviteeCreditDurationDays_Field

type Offer_Name_Field added in v0.12.0

type Offer_Name_Field struct {
	// contains filtered or unexported fields
}

func Offer_Name added in v0.12.0

func Offer_Name(v string) Offer_Name_Field

type Offer_NumRedeemed_Field added in v0.12.0

type Offer_NumRedeemed_Field struct {
	// contains filtered or unexported fields
}

func Offer_NumRedeemed added in v0.12.0

func Offer_NumRedeemed(v int) Offer_NumRedeemed_Field

type Offer_RedeemableCap_Field added in v0.12.0

type Offer_RedeemableCap_Field struct {
	// contains filtered or unexported fields
}

func Offer_RedeemableCap added in v0.12.0

func Offer_RedeemableCap(v int) Offer_RedeemableCap_Field

type Offer_Status_Field added in v0.12.0

type Offer_Status_Field struct {
	// contains filtered or unexported fields
}

func Offer_Status added in v0.12.0

func Offer_Status(v int) Offer_Status_Field

type Offer_Type_Field added in v0.12.0

type Offer_Type_Field struct {
	// contains filtered or unexported fields
}

func Offer_Type added in v0.12.0

func Offer_Type(v int) Offer_Type_Field

type Offer_Update_Fields added in v0.12.0

type Offer_Update_Fields struct {
	Name                      Offer_Name_Field
	Description               Offer_Description_Field
	Type                      Offer_Type_Field
	CreditInCents             Offer_CreditInCents_Field
	AwardCreditDurationDays   Offer_AwardCreditDurationDays_Field
	InviteeCreditDurationDays Offer_InviteeCreditDurationDays_Field
	RedeemableCap             Offer_RedeemableCap_Field
	NumRedeemed               Offer_NumRedeemed_Field
	ExpiresAt                 Offer_ExpiresAt_Field
	Status                    Offer_Status_Field
}

type PendingAudits added in v0.12.0

type PendingAudits struct {
	NodeId            []byte
	PieceId           []byte
	StripeIndex       int64
	ShareSize         int64
	ExpectedShareHash []byte
	ReverifyCount     int64
}

type PendingAudits_ExpectedShareHash_Field added in v0.12.0

type PendingAudits_ExpectedShareHash_Field struct {
	// contains filtered or unexported fields
}

func PendingAudits_ExpectedShareHash added in v0.12.0

func PendingAudits_ExpectedShareHash(v []byte) PendingAudits_ExpectedShareHash_Field

type PendingAudits_NodeId_Field added in v0.12.0

type PendingAudits_NodeId_Field struct {
	// contains filtered or unexported fields
}

func PendingAudits_NodeId added in v0.12.0

func PendingAudits_NodeId(v []byte) PendingAudits_NodeId_Field

type PendingAudits_PieceId_Field added in v0.12.0

type PendingAudits_PieceId_Field struct {
	// contains filtered or unexported fields
}

func PendingAudits_PieceId added in v0.12.0

func PendingAudits_PieceId(v []byte) PendingAudits_PieceId_Field

type PendingAudits_ReverifyCount_Field added in v0.12.0

type PendingAudits_ReverifyCount_Field struct {
	// contains filtered or unexported fields
}

func PendingAudits_ReverifyCount added in v0.12.0

func PendingAudits_ReverifyCount(v int64) PendingAudits_ReverifyCount_Field

type PendingAudits_ShareSize_Field added in v0.12.0

type PendingAudits_ShareSize_Field struct {
	// contains filtered or unexported fields
}

func PendingAudits_ShareSize added in v0.12.0

func PendingAudits_ShareSize(v int64) PendingAudits_ShareSize_Field

type PendingAudits_StripeIndex_Field added in v0.12.0

type PendingAudits_StripeIndex_Field struct {
	// contains filtered or unexported fields
}

func PendingAudits_StripeIndex added in v0.12.0

func PendingAudits_StripeIndex(v int64) PendingAudits_StripeIndex_Field

type PendingAudits_Update_Fields added in v0.12.0

type PendingAudits_Update_Fields struct {
	ReverifyCount PendingAudits_ReverifyCount_Field
}

type Project

type Project struct {
	Id          []byte
	Name        string
	Description string
	CreatedAt   time.Time
}

type ProjectMember

type ProjectMember struct {
	MemberId  []byte
	ProjectId []byte
	CreatedAt time.Time
}

type ProjectMember_CreatedAt_Field

type ProjectMember_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func ProjectMember_CreatedAt

func ProjectMember_CreatedAt(v time.Time) ProjectMember_CreatedAt_Field

type ProjectMember_MemberId_Field

type ProjectMember_MemberId_Field struct {
	// contains filtered or unexported fields
}

func ProjectMember_MemberId

func ProjectMember_MemberId(v []byte) ProjectMember_MemberId_Field

type ProjectMember_ProjectId_Field

type ProjectMember_ProjectId_Field struct {
	// contains filtered or unexported fields
}

func ProjectMember_ProjectId

func ProjectMember_ProjectId(v []byte) ProjectMember_ProjectId_Field

type ProjectMember_Update_Fields

type ProjectMember_Update_Fields struct {
}

type Project_CreatedAt_Field

type Project_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func Project_CreatedAt

func Project_CreatedAt(v time.Time) Project_CreatedAt_Field

type Project_Description_Field

type Project_Description_Field struct {
	// contains filtered or unexported fields
}

func Project_Description

func Project_Description(v string) Project_Description_Field

type Project_Id_Field

type Project_Id_Field struct {
	// contains filtered or unexported fields
}

func Project_Id

func Project_Id(v []byte) Project_Id_Field

type Project_Name_Field

type Project_Name_Field struct {
	// contains filtered or unexported fields
}

func Project_Name

func Project_Name(v string) Project_Name_Field

type Project_Update_Fields

type Project_Update_Fields struct {
	Description Project_Description_Field
}

type RegistrationToken

type RegistrationToken struct {
	Secret       []byte
	OwnerId      []byte
	ProjectLimit int
	CreatedAt    time.Time
}

type RegistrationToken_Create_Fields

type RegistrationToken_Create_Fields struct {
	OwnerId RegistrationToken_OwnerId_Field
}

type RegistrationToken_CreatedAt_Field

type RegistrationToken_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func RegistrationToken_CreatedAt

func RegistrationToken_CreatedAt(v time.Time) RegistrationToken_CreatedAt_Field

type RegistrationToken_OwnerId_Field

type RegistrationToken_OwnerId_Field struct {
	// contains filtered or unexported fields
}

func RegistrationToken_OwnerId

func RegistrationToken_OwnerId(v []byte) RegistrationToken_OwnerId_Field

func RegistrationToken_OwnerId_Null

func RegistrationToken_OwnerId_Null() RegistrationToken_OwnerId_Field

func RegistrationToken_OwnerId_Raw

func RegistrationToken_OwnerId_Raw(v []byte) RegistrationToken_OwnerId_Field

type RegistrationToken_ProjectLimit_Field

type RegistrationToken_ProjectLimit_Field struct {
	// contains filtered or unexported fields
}

func RegistrationToken_ProjectLimit

func RegistrationToken_ProjectLimit(v int) RegistrationToken_ProjectLimit_Field

type RegistrationToken_Secret_Field

type RegistrationToken_Secret_Field struct {
	// contains filtered or unexported fields
}

func RegistrationToken_Secret

func RegistrationToken_Secret(v []byte) RegistrationToken_Secret_Field

type RegistrationToken_Update_Fields

type RegistrationToken_Update_Fields struct {
	OwnerId RegistrationToken_OwnerId_Field
}

type ResetPasswordToken added in v0.12.0

type ResetPasswordToken struct {
	Secret    []byte
	OwnerId   []byte
	CreatedAt time.Time
}

type ResetPasswordToken_CreatedAt_Field added in v0.12.0

type ResetPasswordToken_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func ResetPasswordToken_CreatedAt added in v0.12.0

func ResetPasswordToken_CreatedAt(v time.Time) ResetPasswordToken_CreatedAt_Field

type ResetPasswordToken_OwnerId_Field added in v0.12.0

type ResetPasswordToken_OwnerId_Field struct {
	// contains filtered or unexported fields
}

func ResetPasswordToken_OwnerId added in v0.12.0

func ResetPasswordToken_OwnerId(v []byte) ResetPasswordToken_OwnerId_Field

type ResetPasswordToken_Secret_Field added in v0.12.0

type ResetPasswordToken_Secret_Field struct {
	// contains filtered or unexported fields
}

func ResetPasswordToken_Secret added in v0.12.0

func ResetPasswordToken_Secret(v []byte) ResetPasswordToken_Secret_Field

type ResetPasswordToken_Update_Fields added in v0.12.0

type ResetPasswordToken_Update_Fields struct {
	OwnerId ResetPasswordToken_OwnerId_Field
}

type Rx

type Rx struct {
	// contains filtered or unexported fields
}

func (*Rx) All_AccountingRollup_By_StartTime_GreaterOrEqual

func (rx *Rx) All_AccountingRollup_By_StartTime_GreaterOrEqual(ctx context.Context,
	accounting_rollup_start_time_greater_or_equal AccountingRollup_StartTime_Field) (
	rows []*AccountingRollup, err error)

func (*Rx) All_ApiKey_By_ProjectId_OrderBy_Asc_Name

func (rx *Rx) All_ApiKey_By_ProjectId_OrderBy_Asc_Name(ctx context.Context,
	api_key_project_id ApiKey_ProjectId_Field) (
	rows []*ApiKey, err error)

func (*Rx) All_BucketStorageTally_By_ProjectId_And_BucketName_And_IntervalStart_GreaterOrEqual_And_IntervalStart_LessOrEqual_OrderBy_Desc_IntervalStart added in v0.9.0

func (rx *Rx) All_BucketStorageTally_By_ProjectId_And_BucketName_And_IntervalStart_GreaterOrEqual_And_IntervalStart_LessOrEqual_OrderBy_Desc_IntervalStart(ctx context.Context,
	bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
	bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
	bucket_storage_tally_interval_start_greater_or_equal BucketStorageTally_IntervalStart_Field,
	bucket_storage_tally_interval_start_less_or_equal BucketStorageTally_IntervalStart_Field) (
	rows []*BucketStorageTally, err error)

func (*Rx) All_Node_Id

func (rx *Rx) All_Node_Id(ctx context.Context) (
	rows []*Id_Row, err error)

func (*Rx) All_Offer added in v0.12.0

func (rx *Rx) All_Offer(ctx context.Context) (
	rows []*Offer, err error)

func (*Rx) All_Project

func (rx *Rx) All_Project(ctx context.Context) (
	rows []*Project, err error)

func (*Rx) All_ProjectMember_By_MemberId

func (rx *Rx) All_ProjectMember_By_MemberId(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field) (
	rows []*ProjectMember, err error)

func (*Rx) All_Project_By_ProjectMember_MemberId_OrderBy_Asc_Project_Name

func (rx *Rx) All_Project_By_ProjectMember_MemberId_OrderBy_Asc_Project_Name(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field) (
	rows []*Project, err error)

func (*Rx) All_StoragenodeBandwidthRollup_By_IntervalStart_GreaterOrEqual added in v0.9.0

func (rx *Rx) All_StoragenodeBandwidthRollup_By_IntervalStart_GreaterOrEqual(ctx context.Context,
	storagenode_bandwidth_rollup_interval_start_greater_or_equal StoragenodeBandwidthRollup_IntervalStart_Field) (
	rows []*StoragenodeBandwidthRollup, err error)

func (*Rx) All_StoragenodeStorageTally added in v0.12.0

func (rx *Rx) All_StoragenodeStorageTally(ctx context.Context) (
	rows []*StoragenodeStorageTally, err error)

func (*Rx) All_StoragenodeStorageTally_By_IntervalEndTime_GreaterOrEqual added in v0.12.0

func (rx *Rx) All_StoragenodeStorageTally_By_IntervalEndTime_GreaterOrEqual(ctx context.Context,
	storagenode_storage_tally_interval_end_time_greater_or_equal StoragenodeStorageTally_IntervalEndTime_Field) (
	rows []*StoragenodeStorageTally, err error)

func (*Rx) Commit

func (rx *Rx) Commit() (err error)

func (*Rx) Create_AccountingRollup

func (rx *Rx) Create_AccountingRollup(ctx context.Context,
	accounting_rollup_node_id AccountingRollup_NodeId_Field,
	accounting_rollup_start_time AccountingRollup_StartTime_Field,
	accounting_rollup_put_total AccountingRollup_PutTotal_Field,
	accounting_rollup_get_total AccountingRollup_GetTotal_Field,
	accounting_rollup_get_audit_total AccountingRollup_GetAuditTotal_Field,
	accounting_rollup_get_repair_total AccountingRollup_GetRepairTotal_Field,
	accounting_rollup_put_repair_total AccountingRollup_PutRepairTotal_Field,
	accounting_rollup_at_rest_total AccountingRollup_AtRestTotal_Field) (
	accounting_rollup *AccountingRollup, err error)

func (*Rx) Create_AccountingTimestamps

func (rx *Rx) Create_AccountingTimestamps(ctx context.Context,
	accounting_timestamps_name AccountingTimestamps_Name_Field,
	accounting_timestamps_value AccountingTimestamps_Value_Field) (
	accounting_timestamps *AccountingTimestamps, err error)

func (*Rx) Create_ApiKey

func (rx *Rx) Create_ApiKey(ctx context.Context,
	api_key_id ApiKey_Id_Field,
	api_key_project_id ApiKey_ProjectId_Field,
	api_key_head ApiKey_Head_Field,
	api_key_name ApiKey_Name_Field,
	api_key_secret ApiKey_Secret_Field) (
	api_key *ApiKey, err error)

func (*Rx) Create_BucketStorageTally

func (rx *Rx) Create_BucketStorageTally(ctx context.Context,
	bucket_storage_tally_bucket_name BucketStorageTally_BucketName_Field,
	bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field,
	bucket_storage_tally_interval_start BucketStorageTally_IntervalStart_Field,
	bucket_storage_tally_inline BucketStorageTally_Inline_Field,
	bucket_storage_tally_remote BucketStorageTally_Remote_Field,
	bucket_storage_tally_remote_segments_count BucketStorageTally_RemoteSegmentsCount_Field,
	bucket_storage_tally_inline_segments_count BucketStorageTally_InlineSegmentsCount_Field,
	bucket_storage_tally_object_count BucketStorageTally_ObjectCount_Field,
	bucket_storage_tally_metadata_size BucketStorageTally_MetadataSize_Field) (
	bucket_storage_tally *BucketStorageTally, err error)

func (*Rx) Create_BucketUsage

func (rx *Rx) Create_BucketUsage(ctx context.Context,
	bucket_usage_id BucketUsage_Id_Field,
	bucket_usage_bucket_id BucketUsage_BucketId_Field,
	bucket_usage_rollup_end_time BucketUsage_RollupEndTime_Field,
	bucket_usage_remote_stored_data BucketUsage_RemoteStoredData_Field,
	bucket_usage_inline_stored_data BucketUsage_InlineStoredData_Field,
	bucket_usage_remote_segments BucketUsage_RemoteSegments_Field,
	bucket_usage_inline_segments BucketUsage_InlineSegments_Field,
	bucket_usage_objects BucketUsage_Objects_Field,
	bucket_usage_metadata_size BucketUsage_MetadataSize_Field,
	bucket_usage_repair_egress BucketUsage_RepairEgress_Field,
	bucket_usage_get_egress BucketUsage_GetEgress_Field,
	bucket_usage_audit_egress BucketUsage_AuditEgress_Field) (
	bucket_usage *BucketUsage, err error)

func (*Rx) Create_CertRecord

func (rx *Rx) Create_CertRecord(ctx context.Context,
	certRecord_publickey CertRecord_Publickey_Field,
	certRecord_id CertRecord_Id_Field) (
	certRecord *CertRecord, err error)

func (*Rx) Create_Irreparabledb

func (rx *Rx) Create_Irreparabledb(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
	irreparabledb_segmentdetail Irreparabledb_Segmentdetail_Field,
	irreparabledb_pieces_lost_count Irreparabledb_PiecesLostCount_Field,
	irreparabledb_seg_damaged_unix_sec Irreparabledb_SegDamagedUnixSec_Field,
	irreparabledb_repair_attempt_count Irreparabledb_RepairAttemptCount_Field) (
	irreparabledb *Irreparabledb, err error)

func (*Rx) Create_Node

func (rx *Rx) Create_Node(ctx context.Context,
	node_id Node_Id_Field,
	node_address Node_Address_Field,
	node_last_ip Node_LastIp_Field,
	node_protocol Node_Protocol_Field,
	node_type Node_Type_Field,
	node_email Node_Email_Field,
	node_wallet Node_Wallet_Field,
	node_free_bandwidth Node_FreeBandwidth_Field,
	node_free_disk Node_FreeDisk_Field,
	node_major Node_Major_Field,
	node_minor Node_Minor_Field,
	node_patch Node_Patch_Field,
	node_hash Node_Hash_Field,
	node_timestamp Node_Timestamp_Field,
	node_release Node_Release_Field,
	node_latency_90 Node_Latency90_Field,
	node_audit_success_count Node_AuditSuccessCount_Field,
	node_total_audit_count Node_TotalAuditCount_Field,
	node_audit_success_ratio Node_AuditSuccessRatio_Field,
	node_uptime_success_count Node_UptimeSuccessCount_Field,
	node_total_uptime_count Node_TotalUptimeCount_Field,
	node_uptime_ratio Node_UptimeRatio_Field,
	node_last_contact_success Node_LastContactSuccess_Field,
	node_last_contact_failure Node_LastContactFailure_Field,
	node_contained Node_Contained_Field) (
	node *Node, err error)

func (*Rx) Create_Offer added in v0.12.0

func (rx *Rx) Create_Offer(ctx context.Context,
	offer_name Offer_Name_Field,
	offer_description Offer_Description_Field,
	offer_type Offer_Type_Field,
	offer_credit_in_cents Offer_CreditInCents_Field,
	offer_award_credit_duration_days Offer_AwardCreditDurationDays_Field,
	offer_invitee_credit_duration_days Offer_InviteeCreditDurationDays_Field,
	offer_redeemable_cap Offer_RedeemableCap_Field) (
	offer *Offer, err error)

func (*Rx) Create_PendingAudits added in v0.12.0

func (rx *Rx) Create_PendingAudits(ctx context.Context,
	pending_audits_node_id PendingAudits_NodeId_Field,
	pending_audits_piece_id PendingAudits_PieceId_Field,
	pending_audits_stripe_index PendingAudits_StripeIndex_Field,
	pending_audits_share_size PendingAudits_ShareSize_Field,
	pending_audits_expected_share_hash PendingAudits_ExpectedShareHash_Field,
	pending_audits_reverify_count PendingAudits_ReverifyCount_Field) (
	pending_audits *PendingAudits, err error)

func (*Rx) Create_Project

func (rx *Rx) Create_Project(ctx context.Context,
	project_id Project_Id_Field,
	project_name Project_Name_Field,
	project_description Project_Description_Field) (
	project *Project, err error)

func (*Rx) Create_ProjectMember

func (rx *Rx) Create_ProjectMember(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field,
	project_member_project_id ProjectMember_ProjectId_Field) (
	project_member *ProjectMember, err error)

func (*Rx) Create_RegistrationToken

func (rx *Rx) Create_RegistrationToken(ctx context.Context,
	registration_token_secret RegistrationToken_Secret_Field,
	registration_token_project_limit RegistrationToken_ProjectLimit_Field,
	optional RegistrationToken_Create_Fields) (
	registration_token *RegistrationToken, err error)

func (*Rx) Create_ResetPasswordToken added in v0.12.0

func (rx *Rx) Create_ResetPasswordToken(ctx context.Context,
	reset_password_token_secret ResetPasswordToken_Secret_Field,
	reset_password_token_owner_id ResetPasswordToken_OwnerId_Field) (
	reset_password_token *ResetPasswordToken, err error)

func (*Rx) Create_SerialNumber

func (rx *Rx) Create_SerialNumber(ctx context.Context,
	serial_number_serial_number SerialNumber_SerialNumber_Field,
	serial_number_bucket_id SerialNumber_BucketId_Field,
	serial_number_expires_at SerialNumber_ExpiresAt_Field) (
	serial_number *SerialNumber, err error)

func (*Rx) Create_StoragenodeStorageTally added in v0.12.0

func (rx *Rx) Create_StoragenodeStorageTally(ctx context.Context,
	storagenode_storage_tally_node_id StoragenodeStorageTally_NodeId_Field,
	storagenode_storage_tally_interval_end_time StoragenodeStorageTally_IntervalEndTime_Field,
	storagenode_storage_tally_data_total StoragenodeStorageTally_DataTotal_Field) (
	storagenode_storage_tally *StoragenodeStorageTally, err error)

func (*Rx) Create_UsedSerial

func (rx *Rx) Create_UsedSerial(ctx context.Context,
	used_serial_serial_number_id UsedSerial_SerialNumberId_Field,
	used_serial_storage_node_id UsedSerial_StorageNodeId_Field) (
	used_serial *UsedSerial, err error)

func (*Rx) Create_User

func (rx *Rx) Create_User(ctx context.Context,
	user_id User_Id_Field,
	user_full_name User_FullName_Field,
	user_email User_Email_Field,
	user_password_hash User_PasswordHash_Field,
	optional User_Create_Fields) (
	user *User, err error)

func (*Rx) Delete_AccountingRollup_By_Id

func (rx *Rx) Delete_AccountingRollup_By_Id(ctx context.Context,
	accounting_rollup_id AccountingRollup_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_ApiKey_By_Id

func (rx *Rx) Delete_ApiKey_By_Id(ctx context.Context,
	api_key_id ApiKey_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_BucketUsage_By_Id

func (rx *Rx) Delete_BucketUsage_By_Id(ctx context.Context,
	bucket_usage_id BucketUsage_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_CertRecord_By_Id

func (rx *Rx) Delete_CertRecord_By_Id(ctx context.Context,
	certRecord_id CertRecord_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_Irreparabledb_By_Segmentpath

func (rx *Rx) Delete_Irreparabledb_By_Segmentpath(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
	deleted bool, err error)

func (*Rx) Delete_Node_By_Id

func (rx *Rx) Delete_Node_By_Id(ctx context.Context,
	node_id Node_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_Offer_By_Id added in v0.12.0

func (rx *Rx) Delete_Offer_By_Id(ctx context.Context,
	offer_id Offer_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_PendingAudits_By_NodeId added in v0.12.0

func (rx *Rx) Delete_PendingAudits_By_NodeId(ctx context.Context,
	pending_audits_node_id PendingAudits_NodeId_Field) (
	deleted bool, err error)

func (*Rx) Delete_ProjectMember_By_MemberId_And_ProjectId

func (rx *Rx) Delete_ProjectMember_By_MemberId_And_ProjectId(ctx context.Context,
	project_member_member_id ProjectMember_MemberId_Field,
	project_member_project_id ProjectMember_ProjectId_Field) (
	deleted bool, err error)

func (*Rx) Delete_Project_By_Id

func (rx *Rx) Delete_Project_By_Id(ctx context.Context,
	project_id Project_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_ResetPasswordToken_By_Secret added in v0.12.0

func (rx *Rx) Delete_ResetPasswordToken_By_Secret(ctx context.Context,
	reset_password_token_secret ResetPasswordToken_Secret_Field) (
	deleted bool, err error)

func (*Rx) Delete_SerialNumber_By_ExpiresAt_LessOrEqual

func (rx *Rx) Delete_SerialNumber_By_ExpiresAt_LessOrEqual(ctx context.Context,
	serial_number_expires_at_less_or_equal SerialNumber_ExpiresAt_Field) (
	count int64, err error)

func (*Rx) Delete_StoragenodeStorageTally_By_Id added in v0.12.0

func (rx *Rx) Delete_StoragenodeStorageTally_By_Id(ctx context.Context,
	storagenode_storage_tally_id StoragenodeStorageTally_Id_Field) (
	deleted bool, err error)

func (*Rx) Delete_User_By_Id

func (rx *Rx) Delete_User_By_Id(ctx context.Context,
	user_id User_Id_Field) (
	deleted bool, err error)

func (*Rx) Find_AccountingTimestamps_Value_By_Name

func (rx *Rx) Find_AccountingTimestamps_Value_By_Name(ctx context.Context,
	accounting_timestamps_name AccountingTimestamps_Name_Field) (
	row *Value_Row, err error)

func (*Rx) Find_BucketBandwidthRollup_By_BucketName_And_ProjectId_And_IntervalStart_And_Action

func (rx *Rx) Find_BucketBandwidthRollup_By_BucketName_And_ProjectId_And_IntervalStart_And_Action(ctx context.Context,
	bucket_bandwidth_rollup_bucket_name BucketBandwidthRollup_BucketName_Field,
	bucket_bandwidth_rollup_project_id BucketBandwidthRollup_ProjectId_Field,
	bucket_bandwidth_rollup_interval_start BucketBandwidthRollup_IntervalStart_Field,
	bucket_bandwidth_rollup_action BucketBandwidthRollup_Action_Field) (
	bucket_bandwidth_rollup *BucketBandwidthRollup, err error)

func (*Rx) Find_SerialNumber_By_SerialNumber

func (rx *Rx) Find_SerialNumber_By_SerialNumber(ctx context.Context,
	serial_number_serial_number SerialNumber_SerialNumber_Field) (
	serial_number *SerialNumber, err error)

func (*Rx) Find_StoragenodeBandwidthRollup_By_StoragenodeId_And_IntervalStart_And_Action

func (rx *Rx) Find_StoragenodeBandwidthRollup_By_StoragenodeId_And_IntervalStart_And_Action(ctx context.Context,
	storagenode_bandwidth_rollup_storagenode_id StoragenodeBandwidthRollup_StoragenodeId_Field,
	storagenode_bandwidth_rollup_interval_start StoragenodeBandwidthRollup_IntervalStart_Field,
	storagenode_bandwidth_rollup_action StoragenodeBandwidthRollup_Action_Field) (
	storagenode_bandwidth_rollup *StoragenodeBandwidthRollup, err error)

func (*Rx) First_BucketStorageTally_By_ProjectId_OrderBy_Desc_IntervalStart

func (rx *Rx) First_BucketStorageTally_By_ProjectId_OrderBy_Desc_IntervalStart(ctx context.Context,
	bucket_storage_tally_project_id BucketStorageTally_ProjectId_Field) (
	bucket_storage_tally *BucketStorageTally, err error)

func (*Rx) Get_AccountingRollup_By_Id

func (rx *Rx) Get_AccountingRollup_By_Id(ctx context.Context,
	accounting_rollup_id AccountingRollup_Id_Field) (
	accounting_rollup *AccountingRollup, err error)

func (*Rx) Get_ApiKey_By_Head added in v0.12.0

func (rx *Rx) Get_ApiKey_By_Head(ctx context.Context,
	api_key_head ApiKey_Head_Field) (
	api_key *ApiKey, err error)

func (*Rx) Get_ApiKey_By_Id

func (rx *Rx) Get_ApiKey_By_Id(ctx context.Context,
	api_key_id ApiKey_Id_Field) (
	api_key *ApiKey, err error)

func (*Rx) Get_BucketUsage_By_Id

func (rx *Rx) Get_BucketUsage_By_Id(ctx context.Context,
	bucket_usage_id BucketUsage_Id_Field) (
	bucket_usage *BucketUsage, err error)

func (*Rx) Get_CertRecord_By_Id

func (rx *Rx) Get_CertRecord_By_Id(ctx context.Context,
	certRecord_id CertRecord_Id_Field) (
	certRecord *CertRecord, err error)

func (*Rx) Get_Irreparabledb_By_Segmentpath

func (rx *Rx) Get_Irreparabledb_By_Segmentpath(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field) (
	irreparabledb *Irreparabledb, err error)

func (*Rx) Get_Node_By_Id

func (rx *Rx) Get_Node_By_Id(ctx context.Context,
	node_id Node_Id_Field) (
	node *Node, err error)

func (*Rx) Get_Offer_By_Id added in v0.12.0

func (rx *Rx) Get_Offer_By_Id(ctx context.Context,
	offer_id Offer_Id_Field) (
	offer *Offer, err error)

func (*Rx) Get_Offer_By_Status_And_Type_And_ExpiresAt_GreaterOrEqual added in v0.12.0

func (rx *Rx) Get_Offer_By_Status_And_Type_And_ExpiresAt_GreaterOrEqual(ctx context.Context,
	offer_status Offer_Status_Field,
	offer_type Offer_Type_Field,
	offer_expires_at_greater_or_equal Offer_ExpiresAt_Field) (
	offer *Offer, err error)

func (*Rx) Get_PendingAudits_By_NodeId added in v0.12.0

func (rx *Rx) Get_PendingAudits_By_NodeId(ctx context.Context,
	pending_audits_node_id PendingAudits_NodeId_Field) (
	pending_audits *PendingAudits, err error)

func (*Rx) Get_Project_By_Id

func (rx *Rx) Get_Project_By_Id(ctx context.Context,
	project_id Project_Id_Field) (
	project *Project, err error)

func (*Rx) Get_RegistrationToken_By_OwnerId

func (rx *Rx) Get_RegistrationToken_By_OwnerId(ctx context.Context,
	registration_token_owner_id RegistrationToken_OwnerId_Field) (
	registration_token *RegistrationToken, err error)

func (*Rx) Get_RegistrationToken_By_Secret

func (rx *Rx) Get_RegistrationToken_By_Secret(ctx context.Context,
	registration_token_secret RegistrationToken_Secret_Field) (
	registration_token *RegistrationToken, err error)

func (*Rx) Get_ResetPasswordToken_By_OwnerId added in v0.12.0

func (rx *Rx) Get_ResetPasswordToken_By_OwnerId(ctx context.Context,
	reset_password_token_owner_id ResetPasswordToken_OwnerId_Field) (
	reset_password_token *ResetPasswordToken, err error)

func (*Rx) Get_ResetPasswordToken_By_Secret added in v0.12.0

func (rx *Rx) Get_ResetPasswordToken_By_Secret(ctx context.Context,
	reset_password_token_secret ResetPasswordToken_Secret_Field) (
	reset_password_token *ResetPasswordToken, err error)

func (*Rx) Get_StoragenodeStorageTally_By_Id added in v0.12.0

func (rx *Rx) Get_StoragenodeStorageTally_By_Id(ctx context.Context,
	storagenode_storage_tally_id StoragenodeStorageTally_Id_Field) (
	storagenode_storage_tally *StoragenodeStorageTally, err error)

func (*Rx) Get_User_By_Email_And_Status_Not_Number

func (rx *Rx) Get_User_By_Email_And_Status_Not_Number(ctx context.Context,
	user_email User_Email_Field) (
	user *User, err error)

func (*Rx) Get_User_By_Id

func (rx *Rx) Get_User_By_Id(ctx context.Context,
	user_id User_Id_Field) (
	user *User, err error)

func (*Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Asc_RollupEndTime

func (rx *Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Asc_RollupEndTime(ctx context.Context,
	bucket_usage_bucket_id BucketUsage_BucketId_Field,
	bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
	bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
	limit int, offset int64) (
	rows []*BucketUsage, err error)

func (*Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Desc_RollupEndTime

func (rx *Rx) Limited_BucketUsage_By_BucketId_And_RollupEndTime_Greater_And_RollupEndTime_LessOrEqual_OrderBy_Desc_RollupEndTime(ctx context.Context,
	bucket_usage_bucket_id BucketUsage_BucketId_Field,
	bucket_usage_rollup_end_time_greater BucketUsage_RollupEndTime_Field,
	bucket_usage_rollup_end_time_less_or_equal BucketUsage_RollupEndTime_Field,
	limit int, offset int64) (
	rows []*BucketUsage, err error)

func (*Rx) Limited_Irreparabledb_OrderBy_Asc_Segmentpath

func (rx *Rx) Limited_Irreparabledb_OrderBy_Asc_Segmentpath(ctx context.Context,
	limit int, offset int64) (
	rows []*Irreparabledb, err error)

func (*Rx) Limited_Node_By_Id_GreaterOrEqual_OrderBy_Asc_Id

func (rx *Rx) Limited_Node_By_Id_GreaterOrEqual_OrderBy_Asc_Id(ctx context.Context,
	node_id_greater_or_equal Node_Id_Field,
	limit int, offset int64) (
	rows []*Node, err error)

func (*Rx) Limited_ProjectMember_By_ProjectId

func (rx *Rx) Limited_ProjectMember_By_ProjectId(ctx context.Context,
	project_member_project_id ProjectMember_ProjectId_Field,
	limit int, offset int64) (
	rows []*ProjectMember, err error)

func (*Rx) Rebind

func (rx *Rx) Rebind(s string) string

func (*Rx) Rollback

func (rx *Rx) Rollback() (err error)

func (*Rx) UnsafeTx

func (rx *Rx) UnsafeTx(ctx context.Context) (unsafe_tx *sql.Tx, err error)

func (*Rx) Update_AccountingTimestamps_By_Name

func (rx *Rx) Update_AccountingTimestamps_By_Name(ctx context.Context,
	accounting_timestamps_name AccountingTimestamps_Name_Field,
	update AccountingTimestamps_Update_Fields) (
	accounting_timestamps *AccountingTimestamps, err error)

func (*Rx) Update_ApiKey_By_Id

func (rx *Rx) Update_ApiKey_By_Id(ctx context.Context,
	api_key_id ApiKey_Id_Field,
	update ApiKey_Update_Fields) (
	api_key *ApiKey, err error)

func (*Rx) Update_CertRecord_By_Id

func (rx *Rx) Update_CertRecord_By_Id(ctx context.Context,
	certRecord_id CertRecord_Id_Field,
	update CertRecord_Update_Fields) (
	certRecord *CertRecord, err error)

func (*Rx) Update_Irreparabledb_By_Segmentpath

func (rx *Rx) Update_Irreparabledb_By_Segmentpath(ctx context.Context,
	irreparabledb_segmentpath Irreparabledb_Segmentpath_Field,
	update Irreparabledb_Update_Fields) (
	irreparabledb *Irreparabledb, err error)

func (*Rx) Update_Node_By_Id

func (rx *Rx) Update_Node_By_Id(ctx context.Context,
	node_id Node_Id_Field,
	update Node_Update_Fields) (
	node *Node, err error)

func (*Rx) Update_Offer_By_Id_And_Status_Equal_Number_And_ExpiresAt_GreaterOrEqual_CreatedAt added in v0.12.0

func (rx *Rx) Update_Offer_By_Id_And_Status_Equal_Number_And_ExpiresAt_GreaterOrEqual_CreatedAt(ctx context.Context,
	offer_id Offer_Id_Field,
	update Offer_Update_Fields) (
	offer *Offer, err error)

func (*Rx) Update_PendingAudits_By_NodeId added in v0.12.0

func (rx *Rx) Update_PendingAudits_By_NodeId(ctx context.Context,
	pending_audits_node_id PendingAudits_NodeId_Field,
	update PendingAudits_Update_Fields) (
	pending_audits *PendingAudits, err error)

func (*Rx) Update_Project_By_Id

func (rx *Rx) Update_Project_By_Id(ctx context.Context,
	project_id Project_Id_Field,
	update Project_Update_Fields) (
	project *Project, err error)

func (*Rx) Update_RegistrationToken_By_Secret

func (rx *Rx) Update_RegistrationToken_By_Secret(ctx context.Context,
	registration_token_secret RegistrationToken_Secret_Field,
	update RegistrationToken_Update_Fields) (
	registration_token *RegistrationToken, err error)

func (*Rx) Update_User_By_Id

func (rx *Rx) Update_User_By_Id(ctx context.Context,
	user_id User_Id_Field,
	update User_Update_Fields) (
	user *User, err error)

type SerialNumber

type SerialNumber struct {
	Id           int
	SerialNumber []byte
	BucketId     []byte
	ExpiresAt    time.Time
}

type SerialNumber_BucketId_Field

type SerialNumber_BucketId_Field struct {
	// contains filtered or unexported fields
}

func SerialNumber_BucketId

func SerialNumber_BucketId(v []byte) SerialNumber_BucketId_Field

type SerialNumber_ExpiresAt_Field

type SerialNumber_ExpiresAt_Field struct {
	// contains filtered or unexported fields
}

func SerialNumber_ExpiresAt

func SerialNumber_ExpiresAt(v time.Time) SerialNumber_ExpiresAt_Field

type SerialNumber_Id_Field

type SerialNumber_Id_Field struct {
	// contains filtered or unexported fields
}

func SerialNumber_Id

func SerialNumber_Id(v int) SerialNumber_Id_Field

type SerialNumber_SerialNumber_Field

type SerialNumber_SerialNumber_Field struct {
	// contains filtered or unexported fields
}

func SerialNumber_SerialNumber

func SerialNumber_SerialNumber(v []byte) SerialNumber_SerialNumber_Field

type SerialNumber_Update_Fields

type SerialNumber_Update_Fields struct {
}

type StoragenodeBandwidthRollup

type StoragenodeBandwidthRollup struct {
	StoragenodeId   []byte
	IntervalStart   time.Time
	IntervalSeconds uint
	Action          uint
	Allocated       uint64
	Settled         uint64
}

type StoragenodeBandwidthRollup_Action_Field

type StoragenodeBandwidthRollup_Action_Field struct {
	// contains filtered or unexported fields
}

func StoragenodeBandwidthRollup_Action

func StoragenodeBandwidthRollup_Action(v uint) StoragenodeBandwidthRollup_Action_Field

type StoragenodeBandwidthRollup_Allocated_Field

type StoragenodeBandwidthRollup_Allocated_Field struct {
	// contains filtered or unexported fields
}

type StoragenodeBandwidthRollup_IntervalSeconds_Field

type StoragenodeBandwidthRollup_IntervalSeconds_Field struct {
	// contains filtered or unexported fields
}

type StoragenodeBandwidthRollup_IntervalStart_Field

type StoragenodeBandwidthRollup_IntervalStart_Field struct {
	// contains filtered or unexported fields
}

type StoragenodeBandwidthRollup_Settled_Field

type StoragenodeBandwidthRollup_Settled_Field struct {
	// contains filtered or unexported fields
}

type StoragenodeBandwidthRollup_StoragenodeId_Field

type StoragenodeBandwidthRollup_StoragenodeId_Field struct {
	// contains filtered or unexported fields
}

type StoragenodeBandwidthRollup_Update_Fields

type StoragenodeBandwidthRollup_Update_Fields struct {
	Allocated StoragenodeBandwidthRollup_Allocated_Field
	Settled   StoragenodeBandwidthRollup_Settled_Field
}

type StoragenodeStorageTally

type StoragenodeStorageTally struct {
	Id              int64
	NodeId          []byte
	IntervalEndTime time.Time
	DataTotal       float64
}

type StoragenodeStorageTally_DataTotal_Field added in v0.12.0

type StoragenodeStorageTally_DataTotal_Field struct {
	// contains filtered or unexported fields
}

func StoragenodeStorageTally_DataTotal added in v0.12.0

func StoragenodeStorageTally_DataTotal(v float64) StoragenodeStorageTally_DataTotal_Field

type StoragenodeStorageTally_Id_Field added in v0.12.0

type StoragenodeStorageTally_Id_Field struct {
	// contains filtered or unexported fields
}

func StoragenodeStorageTally_Id added in v0.12.0

func StoragenodeStorageTally_Id(v int64) StoragenodeStorageTally_Id_Field

type StoragenodeStorageTally_IntervalEndTime_Field added in v0.12.0

type StoragenodeStorageTally_IntervalEndTime_Field struct {
	// contains filtered or unexported fields
}

func StoragenodeStorageTally_IntervalEndTime added in v0.12.0

func StoragenodeStorageTally_IntervalEndTime(v time.Time) StoragenodeStorageTally_IntervalEndTime_Field

type StoragenodeStorageTally_NodeId_Field added in v0.12.0

type StoragenodeStorageTally_NodeId_Field struct {
	// contains filtered or unexported fields
}

func StoragenodeStorageTally_NodeId added in v0.12.0

func StoragenodeStorageTally_NodeId(v []byte) StoragenodeStorageTally_NodeId_Field

type StoragenodeStorageTally_Update_Fields

type StoragenodeStorageTally_Update_Fields struct {
}

type Tx

type Tx struct {
	Tx *sql.Tx
	// contains filtered or unexported fields
}

type TxMethods

type TxMethods interface {
	Methods

	Rebind(s string) string
	Commit() error
	Rollback() error
}

type UsedSerial

type UsedSerial struct {
	SerialNumberId int
	StorageNodeId  []byte
}

type UsedSerial_SerialNumberId_Field

type UsedSerial_SerialNumberId_Field struct {
	// contains filtered or unexported fields
}

func UsedSerial_SerialNumberId

func UsedSerial_SerialNumberId(v int) UsedSerial_SerialNumberId_Field

type UsedSerial_StorageNodeId_Field

type UsedSerial_StorageNodeId_Field struct {
	// contains filtered or unexported fields
}

func UsedSerial_StorageNodeId

func UsedSerial_StorageNodeId(v []byte) UsedSerial_StorageNodeId_Field

type UsedSerial_Update_Fields

type UsedSerial_Update_Fields struct {
}

type User

type User struct {
	Id           []byte
	FullName     string
	ShortName    *string
	Email        string
	PasswordHash []byte
	Status       int
	CreatedAt    time.Time
}

type User_Create_Fields

type User_Create_Fields struct {
	ShortName User_ShortName_Field
}

type User_CreatedAt_Field

type User_CreatedAt_Field struct {
	// contains filtered or unexported fields
}

func User_CreatedAt

func User_CreatedAt(v time.Time) User_CreatedAt_Field

type User_Email_Field

type User_Email_Field struct {
	// contains filtered or unexported fields
}

func User_Email

func User_Email(v string) User_Email_Field

type User_FullName_Field

type User_FullName_Field struct {
	// contains filtered or unexported fields
}

func User_FullName

func User_FullName(v string) User_FullName_Field

type User_Id_Field

type User_Id_Field struct {
	// contains filtered or unexported fields
}

func User_Id

func User_Id(v []byte) User_Id_Field

type User_PasswordHash_Field

type User_PasswordHash_Field struct {
	// contains filtered or unexported fields
}

func User_PasswordHash

func User_PasswordHash(v []byte) User_PasswordHash_Field

type User_ShortName_Field

type User_ShortName_Field struct {
	// contains filtered or unexported fields
}

func User_ShortName

func User_ShortName(v string) User_ShortName_Field

func User_ShortName_Null

func User_ShortName_Null() User_ShortName_Field

func User_ShortName_Raw

func User_ShortName_Raw(v *string) User_ShortName_Field

type User_Status_Field

type User_Status_Field struct {
	// contains filtered or unexported fields
}

func User_Status

func User_Status(v int) User_Status_Field

type User_Update_Fields

type User_Update_Fields struct {
	FullName     User_FullName_Field
	ShortName    User_ShortName_Field
	Email        User_Email_Field
	PasswordHash User_PasswordHash_Field
	Status       User_Status_Field
}

type Value_Row

type Value_Row struct {
	Value time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL