Documentation
¶
Index ¶
- Constants
- Variables
- func AllNodeState() []string
- func AllNodeType() []string
- func AllWireguardPeerType() []string
- func ExternalPeerExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ExternalPeerExistsG(ctx context.Context, iD int64) (bool, error)
- func ExternalPeers(mods ...qm.QueryMod) externalPeerQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func NodeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func NodeExistsG(ctx context.Context, iD int64) (bool, error)
- func Nodes(mods ...qm.QueryMod) nodeQuery
- func WireguardIPLeaseExists(ctx context.Context, exec boil.ContextExecutor, lesseeType string, ...) (bool, error)
- func WireguardIPLeaseExistsG(ctx context.Context, lesseeType string, lesseeID int64) (bool, error)
- func WireguardIPLeases(mods ...qm.QueryMod) wireguardIPLeaseQuery
- type ExternalPeer
- func (o *ExternalPeer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ExternalPeer) DeleteG(ctx context.Context) (int64, error)
- func (o *ExternalPeer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ExternalPeer) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ExternalPeer) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ExternalPeer) ReloadG(ctx context.Context) error
- func (o *ExternalPeer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ExternalPeer) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ExternalPeer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ExternalPeer) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ExternalPeerSlice
- func (o ExternalPeerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ExternalPeerSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ExternalPeerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ExternalPeerSlice) ReloadAllG(ctx context.Context) error
- func (o ExternalPeerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ExternalPeerSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type Node
- func (o *Node) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Node) DeleteG(ctx context.Context) (int64, error)
- func (o *Node) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Node) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Node) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Node) ReloadG(ctx context.Context) error
- func (o *Node) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Node) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Node) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Node) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type NodeSlice
- func (o NodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o NodeSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *NodeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *NodeSlice) ReloadAllG(ctx context.Context) error
- func (o NodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o NodeSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type WireguardIPLease
- func (o *WireguardIPLease) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WireguardIPLease) DeleteG(ctx context.Context) (int64, error)
- func (o *WireguardIPLease) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *WireguardIPLease) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *WireguardIPLease) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *WireguardIPLease) ReloadG(ctx context.Context) error
- func (o *WireguardIPLease) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *WireguardIPLease) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *WireguardIPLease) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *WireguardIPLease) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type WireguardIPLeaseSlice
- func (o WireguardIPLeaseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o WireguardIPLeaseSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *WireguardIPLeaseSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *WireguardIPLeaseSlice) ReloadAllG(ctx context.Context) error
- func (o WireguardIPLeaseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o WireguardIPLeaseSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
const ( NodeStateCreated string = "created" NodeStateActive string = "active" NodeStateDestroyed string = "destroyed" )
Enum values for NodeState
const ( NodeTypeController string = "controller" NodeTypeWorker string = "worker" )
Enum values for NodeType
const ( WireguardPeerTypeNode string = "node" WireguardPeerTypeExternalPeer string = "external_peer" )
Enum values for WireguardPeerType
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var ExternalPeerColumns = struct { ID string Comment string PublicIPV4 string WireguardPort string WireguardPrivateKey string }{ ID: "id", Comment: "comment", PublicIPV4: "public_ip_v4", WireguardPort: "wireguard_port", WireguardPrivateKey: "wireguard_private_key", }
var ExternalPeerRels = struct {
}{}
ExternalPeerRels is where relationship names are stored.
var ExternalPeerTableColumns = struct { ID string Comment string PublicIPV4 string WireguardPort string WireguardPrivateKey string }{ ID: "external_peers.id", Comment: "external_peers.comment", PublicIPV4: "external_peers.public_ip_v4", WireguardPort: "external_peers.wireguard_port", WireguardPrivateKey: "external_peers.wireguard_private_key", }
var ExternalPeerWhere = struct { ID whereHelperint64 Comment whereHelperstring PublicIPV4 whereHelperstring WireguardPort whereHelperint WireguardPrivateKey whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Comment: whereHelperstring{/* contains filtered or unexported fields */}, PublicIPV4: whereHelperstring{/* contains filtered or unexported fields */}, WireguardPort: whereHelperint{/* contains filtered or unexported fields */}, WireguardPrivateKey: whereHelperstring{/* contains filtered or unexported fields */}, }
var NodeColumns = struct { ID string State string StartedAt string StoppedAt string ProviderName string ProviderID string Name string Memory string CPUs string Disk string IPV4 string IPV6 string RegionName string RegionLat string RegionLng string SKUName string SKUNetworkCap string SKUNetworkSpeed string SKUPriceMonthly string SKUPriceHourly string WireguardKey string User string Type string }{ ID: "id", State: "state", StartedAt: "started_at", StoppedAt: "stopped_at", ProviderName: "provider_name", ProviderID: "provider_id", Name: "name", Memory: "memory", CPUs: "cpus", Disk: "disk", IPV4: "ip_v4", IPV6: "ip_v6", RegionName: "region_name", RegionLat: "region_lat", RegionLng: "region_lng", SKUName: "sku_name", SKUNetworkCap: "sku_network_cap", SKUNetworkSpeed: "sku_network_speed", SKUPriceMonthly: "sku_price_monthly", SKUPriceHourly: "sku_price_hourly", WireguardKey: "wireguard_key", User: "user", Type: "type", }
var NodeRels = struct {
}{}
NodeRels is where relationship names are stored.
var NodeTableColumns = struct { ID string State string StartedAt string StoppedAt string ProviderName string ProviderID string Name string Memory string CPUs string Disk string IPV4 string IPV6 string RegionName string RegionLat string RegionLng string SKUName string SKUNetworkCap string SKUNetworkSpeed string SKUPriceMonthly string SKUPriceHourly string WireguardKey string User string Type string }{ ID: "nodes.id", State: "nodes.state", StartedAt: "nodes.started_at", StoppedAt: "nodes.stopped_at", ProviderName: "nodes.provider_name", ProviderID: "nodes.provider_id", Name: "nodes.name", Memory: "nodes.memory", CPUs: "nodes.cpus", Disk: "nodes.disk", IPV4: "nodes.ip_v4", IPV6: "nodes.ip_v6", RegionName: "nodes.region_name", RegionLat: "nodes.region_lat", RegionLng: "nodes.region_lng", SKUName: "nodes.sku_name", SKUNetworkCap: "nodes.sku_network_cap", SKUNetworkSpeed: "nodes.sku_network_speed", SKUPriceMonthly: "nodes.sku_price_monthly", SKUPriceHourly: "nodes.sku_price_hourly", WireguardKey: "nodes.wireguard_key", User: "nodes.user", Type: "nodes.type", }
var NodeWhere = struct { ID whereHelperint64 State whereHelperstring StartedAt whereHelperint64 StoppedAt whereHelpernull_Int64 ProviderName whereHelperstring ProviderID whereHelperstring Name whereHelperstring Memory whereHelperint CPUs whereHelperint Disk whereHelperint IPV4 whereHelperstring IPV6 whereHelperstring RegionName whereHelperstring RegionLat whereHelperfloat64 RegionLng whereHelperfloat64 SKUName whereHelperstring SKUNetworkCap whereHelperint SKUNetworkSpeed whereHelperint SKUPriceMonthly whereHelperfloat32 SKUPriceHourly whereHelperfloat32 WireguardKey whereHelperstring User whereHelperstring Type whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, State: whereHelperstring{/* contains filtered or unexported fields */}, StartedAt: whereHelperint64{/* contains filtered or unexported fields */}, StoppedAt: whereHelpernull_Int64{/* contains filtered or unexported fields */}, ProviderName: whereHelperstring{/* contains filtered or unexported fields */}, ProviderID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Memory: whereHelperint{/* contains filtered or unexported fields */}, CPUs: whereHelperint{/* contains filtered or unexported fields */}, Disk: whereHelperint{/* contains filtered or unexported fields */}, IPV4: whereHelperstring{/* contains filtered or unexported fields */}, IPV6: whereHelperstring{/* contains filtered or unexported fields */}, RegionName: whereHelperstring{/* contains filtered or unexported fields */}, RegionLat: whereHelperfloat64{/* contains filtered or unexported fields */}, RegionLng: whereHelperfloat64{/* contains filtered or unexported fields */}, SKUName: whereHelperstring{/* contains filtered or unexported fields */}, SKUNetworkCap: whereHelperint{/* contains filtered or unexported fields */}, SKUNetworkSpeed: whereHelperint{/* contains filtered or unexported fields */}, SKUPriceMonthly: whereHelperfloat32{/* contains filtered or unexported fields */}, SKUPriceHourly: whereHelperfloat32{/* contains filtered or unexported fields */}, WireguardKey: whereHelperstring{/* contains filtered or unexported fields */}, User: whereHelperstring{/* contains filtered or unexported fields */}, Type: whereHelperstring{/* contains filtered or unexported fields */}, }
var TableNames = struct { ExternalPeers string Nodes string WireguardIPLeases string }{ ExternalPeers: "external_peers", Nodes: "nodes", WireguardIPLeases: "wireguard_ip_leases", }
var ViewNames = struct {
}{}
var WireguardIPLeaseColumns = struct { LesseeType string LesseeID string IP string }{ LesseeType: "lessee_type", LesseeID: "lessee_id", IP: "ip", }
var WireguardIPLeaseRels = struct {
}{}
WireguardIPLeaseRels is where relationship names are stored.
var WireguardIPLeaseTableColumns = struct { LesseeType string LesseeID string IP string }{ LesseeType: "wireguard_ip_leases.lessee_type", LesseeID: "wireguard_ip_leases.lessee_id", IP: "wireguard_ip_leases.ip", }
var WireguardIPLeaseWhere = struct { LesseeType whereHelperstring LesseeID whereHelperint64 IP whereHelperstring }{ LesseeType: whereHelperstring{/* contains filtered or unexported fields */}, LesseeID: whereHelperint64{/* contains filtered or unexported fields */}, IP: whereHelperstring{/* contains filtered or unexported fields */}, }
Functions ¶
func AllNodeState ¶
func AllNodeState() []string
func AllNodeType ¶
func AllNodeType() []string
func AllWireguardPeerType ¶
func AllWireguardPeerType() []string
func ExternalPeerExists ¶
ExternalPeerExists checks if the ExternalPeer row exists.
func ExternalPeerExistsG ¶
ExternalPeerExistsG checks if the ExternalPeer row exists.
func ExternalPeers ¶
ExternalPeers retrieves all the records using an executor.
func NodeExists ¶
NodeExists checks if the Node row exists.
func NodeExistsG ¶
NodeExistsG checks if the Node row exists.
func WireguardIPLeaseExists ¶
func WireguardIPLeaseExists(ctx context.Context, exec boil.ContextExecutor, lesseeType string, lesseeID int64) (bool, error)
WireguardIPLeaseExists checks if the WireguardIPLease row exists.
func WireguardIPLeaseExistsG ¶
WireguardIPLeaseExistsG checks if the WireguardIPLease row exists.
func WireguardIPLeases ¶
WireguardIPLeases retrieves all the records using an executor.
Types ¶
type ExternalPeer ¶
type ExternalPeer struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
Comment string `boil:"comment" json:"comment" toml:"comment" yaml:"comment"`
PublicIPV4 string `boil:"public_ip_v4" json:"publicIPV4" toml:"publicIPV4" yaml:"publicIPV4"`
WireguardPort int `boil:"wireguard_port" json:"wireguardPort" toml:"wireguardPort" yaml:"wireguardPort"`
WireguardPrivateKey string `boil:"wireguard_private_key" json:"wireguardPrivateKey" toml:"wireguardPrivateKey" yaml:"wireguardPrivateKey"`
R *externalPeerR `boil:"-" json:"-" toml:"-" yaml:"-"`
L externalPeerL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ExternalPeer is an object representing the database table.
func FindExternalPeer ¶
func FindExternalPeer(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ExternalPeer, error)
FindExternalPeer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindExternalPeerG ¶
FindExternalPeerG retrieves a single record by ID.
func (*ExternalPeer) Delete ¶
func (o *ExternalPeer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ExternalPeer record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ExternalPeer) DeleteG ¶
func (o *ExternalPeer) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ExternalPeer record. DeleteG will match against the primary key column to find the record to delete.
func (*ExternalPeer) Insert ¶
func (o *ExternalPeer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ExternalPeer) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ExternalPeer) Reload ¶
func (o *ExternalPeer) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ExternalPeer) ReloadG ¶
func (o *ExternalPeer) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ExternalPeer) Update ¶
func (o *ExternalPeer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ExternalPeer. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ExternalPeer) UpdateG ¶
UpdateG a single ExternalPeer record using the global executor. See Update for more documentation.
func (*ExternalPeer) Upsert ¶
func (o *ExternalPeer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExternalPeerSlice ¶
type ExternalPeerSlice []*ExternalPeer
ExternalPeerSlice is an alias for a slice of pointers to ExternalPeer. This should almost always be used instead of []ExternalPeer.
func (ExternalPeerSlice) DeleteAll ¶
func (o ExternalPeerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ExternalPeerSlice) DeleteAllG ¶
func (o ExternalPeerSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ExternalPeerSlice) ReloadAll ¶
func (o *ExternalPeerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ExternalPeerSlice) ReloadAllG ¶
func (o *ExternalPeerSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ExternalPeerSlice) UpdateAll ¶
func (o ExternalPeerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ExternalPeerSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Node ¶
type Node struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
State string `boil:"state" json:"state" toml:"state" yaml:"state"`
StartedAt int64 `boil:"started_at" json:"startedAt" toml:"startedAt" yaml:"startedAt"`
StoppedAt null.Int64 `boil:"stopped_at" json:"stoppedAt,omitempty" toml:"stoppedAt" yaml:"stoppedAt,omitempty"`
ProviderName string `boil:"provider_name" json:"providerName" toml:"providerName" yaml:"providerName"`
ProviderID string `boil:"provider_id" json:"providerID" toml:"providerID" yaml:"providerID"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Memory int `boil:"memory" json:"memory" toml:"memory" yaml:"memory"`
CPUs int `boil:"cpus" json:"cpus" toml:"cpus" yaml:"cpus"`
Disk int `boil:"disk" json:"disk" toml:"disk" yaml:"disk"`
IPV4 string `boil:"ip_v4" json:"ipV4" toml:"ipV4" yaml:"ipV4"`
IPV6 string `boil:"ip_v6" json:"ipV6" toml:"ipV6" yaml:"ipV6"`
RegionName string `boil:"region_name" json:"regionName" toml:"regionName" yaml:"regionName"`
RegionLat float64 `boil:"region_lat" json:"regionLat" toml:"regionLat" yaml:"regionLat"`
RegionLng float64 `boil:"region_lng" json:"regionLNG" toml:"regionLNG" yaml:"regionLNG"`
SKUName string `boil:"sku_name" json:"skuName" toml:"skuName" yaml:"skuName"`
SKUNetworkCap int `boil:"sku_network_cap" json:"skuNetworkCap" toml:"skuNetworkCap" yaml:"skuNetworkCap"`
SKUNetworkSpeed int `boil:"sku_network_speed" json:"skuNetworkSpeed" toml:"skuNetworkSpeed" yaml:"skuNetworkSpeed"`
SKUPriceMonthly float32 `boil:"sku_price_monthly" json:"skuPriceMonthly" toml:"skuPriceMonthly" yaml:"skuPriceMonthly"`
SKUPriceHourly float32 `boil:"sku_price_hourly" json:"skuPriceHourly" toml:"skuPriceHourly" yaml:"skuPriceHourly"`
WireguardKey string `boil:"wireguard_key" json:"wireguardKey" toml:"wireguardKey" yaml:"wireguardKey"`
User string `boil:"user" json:"user" toml:"user" yaml:"user"`
Type string `boil:"type" json:"type" toml:"type" yaml:"type"`
R *nodeR `boil:"-" json:"-" toml:"-" yaml:"-"`
L nodeL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Node is an object representing the database table.
func FindNode ¶
func FindNode(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Node, error)
FindNode retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Node) Delete ¶
Delete deletes a single Node record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Node) DeleteG ¶
DeleteG deletes a single Node record. DeleteG will match against the primary key column to find the record to delete.
func (*Node) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Node) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Node) Update ¶
func (o *Node) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Node. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Node) UpdateG ¶
UpdateG a single Node record using the global executor. See Update for more documentation.
func (*Node) Upsert ¶
func (o *Node) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type NodeSlice ¶
type NodeSlice []*Node
NodeSlice is an alias for a slice of pointers to Node. This should almost always be used instead of []Node.
func (NodeSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*NodeSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*NodeSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
type WireguardIPLease ¶
type WireguardIPLease struct {
LesseeType string `boil:"lessee_type" json:"lesseeType" toml:"lesseeType" yaml:"lesseeType"`
LesseeID int64 `boil:"lessee_id" json:"lesseeID" toml:"lesseeID" yaml:"lesseeID"`
IP string `boil:"ip" json:"ip" toml:"ip" yaml:"ip"`
R *wireguardIPLeaseR `boil:"-" json:"-" toml:"-" yaml:"-"`
L wireguardIPLeaseL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
WireguardIPLease is an object representing the database table.
func FindWireguardIPLease ¶
func FindWireguardIPLease(ctx context.Context, exec boil.ContextExecutor, lesseeType string, lesseeID int64, selectCols ...string) (*WireguardIPLease, error)
FindWireguardIPLease retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindWireguardIPLeaseG ¶
func FindWireguardIPLeaseG(ctx context.Context, lesseeType string, lesseeID int64, selectCols ...string) (*WireguardIPLease, error)
FindWireguardIPLeaseG retrieves a single record by ID.
func (*WireguardIPLease) Delete ¶
func (o *WireguardIPLease) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single WireguardIPLease record with an executor. Delete will match against the primary key column to find the record to delete.
func (*WireguardIPLease) DeleteG ¶
func (o *WireguardIPLease) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single WireguardIPLease record. DeleteG will match against the primary key column to find the record to delete.
func (*WireguardIPLease) Insert ¶
func (o *WireguardIPLease) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*WireguardIPLease) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*WireguardIPLease) Reload ¶
func (o *WireguardIPLease) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*WireguardIPLease) ReloadG ¶
func (o *WireguardIPLease) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*WireguardIPLease) Update ¶
func (o *WireguardIPLease) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the WireguardIPLease. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*WireguardIPLease) UpdateG ¶
UpdateG a single WireguardIPLease record using the global executor. See Update for more documentation.
func (*WireguardIPLease) Upsert ¶
func (o *WireguardIPLease) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type WireguardIPLeaseSlice ¶
type WireguardIPLeaseSlice []*WireguardIPLease
WireguardIPLeaseSlice is an alias for a slice of pointers to WireguardIPLease. This should almost always be used instead of []WireguardIPLease.
func (WireguardIPLeaseSlice) DeleteAll ¶
func (o WireguardIPLeaseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (WireguardIPLeaseSlice) DeleteAllG ¶
func (o WireguardIPLeaseSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*WireguardIPLeaseSlice) ReloadAll ¶
func (o *WireguardIPLeaseSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*WireguardIPLeaseSlice) ReloadAllG ¶
func (o *WireguardIPLeaseSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (WireguardIPLeaseSlice) UpdateAll ¶
func (o WireguardIPLeaseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (WireguardIPLeaseSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.