models

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssignmentColumns = struct {
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
	AssignmentID string
	PoolID       string
	TenantID     string
	PortID       string
}{
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	DeletedAt:    "deleted_at",
	AssignmentID: "assignment_id",
	PoolID:       "pool_id",
	TenantID:     "tenant_id",
	PortID:       "port_id",
}
View Source
var AssignmentRels = struct {
	Port string
	Pool string
}{
	Port: "Port",
	Pool: "Pool",
}

AssignmentRels is where relationship names are stored.

View Source
var AssignmentTableColumns = struct {
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
	AssignmentID string
	PoolID       string
	TenantID     string
	PortID       string
}{
	CreatedAt:    "assignments.created_at",
	UpdatedAt:    "assignments.updated_at",
	DeletedAt:    "assignments.deleted_at",
	AssignmentID: "assignments.assignment_id",
	PoolID:       "assignments.pool_id",
	TenantID:     "assignments.tenant_id",
	PortID:       "assignments.port_id",
}
View Source
var AssignmentWhere = struct {
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	DeletedAt    whereHelpernull_Time
	AssignmentID whereHelperstring
	PoolID       whereHelperstring
	TenantID     whereHelperstring
	PortID       whereHelperstring
}{
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	AssignmentID: whereHelperstring{/* contains filtered or unexported fields */},
	PoolID:       whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:     whereHelperstring{/* contains filtered or unexported fields */},
	PortID:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
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.

View Source
var GooseDBVersionColumns = struct {
	ID        string
	VersionID string
	IsApplied string
	Tstamp    string
}{
	ID:        "id",
	VersionID: "version_id",
	IsApplied: "is_applied",
	Tstamp:    "tstamp",
}
View Source
var GooseDBVersionRels = struct {
}{}

GooseDBVersionRels is where relationship names are stored.

View Source
var GooseDBVersionTableColumns = struct {
	ID        string
	VersionID string
	IsApplied string
	Tstamp    string
}{
	ID:        "goose_db_version.id",
	VersionID: "goose_db_version.version_id",
	IsApplied: "goose_db_version.is_applied",
	Tstamp:    "goose_db_version.tstamp",
}
View Source
var GooseDBVersionWhere = struct {
	ID        whereHelperint64
	VersionID whereHelperint64
	IsApplied whereHelperbool
	Tstamp    whereHelpernull_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	VersionID: whereHelperint64{/* contains filtered or unexported fields */},
	IsApplied: whereHelperbool{/* contains filtered or unexported fields */},
	Tstamp:    whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var LoadBalancerColumns = struct {
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
	LoadBalancerID   string
	LocationID       string
	TenantID         string
	Name             string
	Slug             string
	LoadBalancerSize string
	LoadBalancerType string
	StateChangedAt   string
	CurrentState     string
	PreviousState    string
	IPAddressID      string
}{
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
	DeletedAt:        "deleted_at",
	LoadBalancerID:   "load_balancer_id",
	LocationID:       "location_id",
	TenantID:         "tenant_id",
	Name:             "name",
	Slug:             "slug",
	LoadBalancerSize: "load_balancer_size",
	LoadBalancerType: "load_balancer_type",
	StateChangedAt:   "state_changed_at",
	CurrentState:     "current_state",
	PreviousState:    "previous_state",
	IPAddressID:      "ip_address_id",
}
View Source
var LoadBalancerRels = struct {
	Ports string
}{
	Ports: "Ports",
}

LoadBalancerRels is where relationship names are stored.

View Source
var LoadBalancerTableColumns = struct {
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
	LoadBalancerID   string
	LocationID       string
	TenantID         string
	Name             string
	Slug             string
	LoadBalancerSize string
	LoadBalancerType string
	StateChangedAt   string
	CurrentState     string
	PreviousState    string
	IPAddressID      string
}{
	CreatedAt:        "load_balancers.created_at",
	UpdatedAt:        "load_balancers.updated_at",
	DeletedAt:        "load_balancers.deleted_at",
	LoadBalancerID:   "load_balancers.load_balancer_id",
	LocationID:       "load_balancers.location_id",
	TenantID:         "load_balancers.tenant_id",
	Name:             "load_balancers.name",
	Slug:             "load_balancers.slug",
	LoadBalancerSize: "load_balancers.load_balancer_size",
	LoadBalancerType: "load_balancers.load_balancer_type",
	StateChangedAt:   "load_balancers.state_changed_at",
	CurrentState:     "load_balancers.current_state",
	PreviousState:    "load_balancers.previous_state",
	IPAddressID:      "load_balancers.ip_address_id",
}
View Source
var LoadBalancerWhere = struct {
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
	DeletedAt        whereHelpernull_Time
	LoadBalancerID   whereHelperstring
	LocationID       whereHelperstring
	TenantID         whereHelperstring
	Name             whereHelperstring
	Slug             whereHelperstring
	LoadBalancerSize whereHelperstring
	LoadBalancerType whereHelperstring
	StateChangedAt   whereHelpernull_Time
	CurrentState     whereHelperstring
	PreviousState    whereHelperstring
	IPAddressID      whereHelperstring
}{
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	LoadBalancerID:   whereHelperstring{/* contains filtered or unexported fields */},
	LocationID:       whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:         whereHelperstring{/* contains filtered or unexported fields */},
	Name:             whereHelperstring{/* contains filtered or unexported fields */},
	Slug:             whereHelperstring{/* contains filtered or unexported fields */},
	LoadBalancerSize: whereHelperstring{/* contains filtered or unexported fields */},
	LoadBalancerType: whereHelperstring{/* contains filtered or unexported fields */},
	StateChangedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	CurrentState:     whereHelperstring{/* contains filtered or unexported fields */},
	PreviousState:    whereHelperstring{/* contains filtered or unexported fields */},
	IPAddressID:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var OriginColumns = struct {
	CreatedAt                 string
	UpdatedAt                 string
	DeletedAt                 string
	OriginID                  string
	PoolID                    string
	OriginTarget              string
	Port                      string
	Name                      string
	Slug                      string
	OriginUserSettingDisabled string
	StateChangedAt            string
	CurrentState              string
	PreviousState             string
}{
	CreatedAt:                 "created_at",
	UpdatedAt:                 "updated_at",
	DeletedAt:                 "deleted_at",
	OriginID:                  "origin_id",
	PoolID:                    "pool_id",
	OriginTarget:              "origin_target",
	Port:                      "port",
	Name:                      "name",
	Slug:                      "slug",
	OriginUserSettingDisabled: "origin_user_setting_disabled",
	StateChangedAt:            "state_changed_at",
	CurrentState:              "current_state",
	PreviousState:             "previous_state",
}
View Source
var OriginRels = struct {
	Pool string
}{
	Pool: "Pool",
}

OriginRels is where relationship names are stored.

View Source
var OriginTableColumns = struct {
	CreatedAt                 string
	UpdatedAt                 string
	DeletedAt                 string
	OriginID                  string
	PoolID                    string
	OriginTarget              string
	Port                      string
	Name                      string
	Slug                      string
	OriginUserSettingDisabled string
	StateChangedAt            string
	CurrentState              string
	PreviousState             string
}{
	CreatedAt:                 "origins.created_at",
	UpdatedAt:                 "origins.updated_at",
	DeletedAt:                 "origins.deleted_at",
	OriginID:                  "origins.origin_id",
	PoolID:                    "origins.pool_id",
	OriginTarget:              "origins.origin_target",
	Port:                      "origins.port",
	Name:                      "origins.name",
	Slug:                      "origins.slug",
	OriginUserSettingDisabled: "origins.origin_user_setting_disabled",
	StateChangedAt:            "origins.state_changed_at",
	CurrentState:              "origins.current_state",
	PreviousState:             "origins.previous_state",
}
View Source
var OriginWhere = struct {
	CreatedAt                 whereHelpertime_Time
	UpdatedAt                 whereHelpertime_Time
	DeletedAt                 whereHelpernull_Time
	OriginID                  whereHelperstring
	PoolID                    whereHelperstring
	OriginTarget              whereHelperstring
	Port                      whereHelperint64
	Name                      whereHelperstring
	Slug                      whereHelperstring
	OriginUserSettingDisabled whereHelperbool
	StateChangedAt            whereHelpernull_Time
	CurrentState              whereHelperstring
	PreviousState             whereHelperstring
}{
	CreatedAt:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:                 whereHelpernull_Time{/* contains filtered or unexported fields */},
	OriginID:                  whereHelperstring{/* contains filtered or unexported fields */},
	PoolID:                    whereHelperstring{/* contains filtered or unexported fields */},
	OriginTarget:              whereHelperstring{/* contains filtered or unexported fields */},
	Port:                      whereHelperint64{/* contains filtered or unexported fields */},
	Name:                      whereHelperstring{/* contains filtered or unexported fields */},
	Slug:                      whereHelperstring{/* contains filtered or unexported fields */},
	OriginUserSettingDisabled: whereHelperbool{/* contains filtered or unexported fields */},
	StateChangedAt:            whereHelpernull_Time{/* contains filtered or unexported fields */},
	CurrentState:              whereHelperstring{/* contains filtered or unexported fields */},
	PreviousState:             whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PoolColumns = struct {
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	PoolID    string
	Protocol  string
	Name      string
	Slug      string
	TenantID  string
}{
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	PoolID:    "pool_id",
	Protocol:  "protocol",
	Name:      "name",
	Slug:      "slug",
	TenantID:  "tenant_id",
}
View Source
var PoolRels = struct {
	Assignments string
	Origins     string
}{
	Assignments: "Assignments",
	Origins:     "Origins",
}

PoolRels is where relationship names are stored.

View Source
var PoolTableColumns = struct {
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	PoolID    string
	Protocol  string
	Name      string
	Slug      string
	TenantID  string
}{
	CreatedAt: "pools.created_at",
	UpdatedAt: "pools.updated_at",
	DeletedAt: "pools.deleted_at",
	PoolID:    "pools.pool_id",
	Protocol:  "pools.protocol",
	Name:      "pools.name",
	Slug:      "pools.slug",
	TenantID:  "pools.tenant_id",
}
View Source
var PoolWhere = struct {
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
	PoolID    whereHelperstring
	Protocol  whereHelperstring
	Name      whereHelperstring
	Slug      whereHelperstring
	TenantID  whereHelperstring
}{
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	PoolID:    whereHelperstring{/* contains filtered or unexported fields */},
	Protocol:  whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Slug:      whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PortColumns = struct {
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
	PortID         string
	LoadBalancerID string
	Port           string
	AfInet         string
	Name           string
	Slug           string
	StateChangedAt string
	CurrentState   string
	PreviousState  string
}{
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	DeletedAt:      "deleted_at",
	PortID:         "port_id",
	LoadBalancerID: "load_balancer_id",
	Port:           "port",
	AfInet:         "af_inet",
	Name:           "name",
	Slug:           "slug",
	StateChangedAt: "state_changed_at",
	CurrentState:   "current_state",
	PreviousState:  "previous_state",
}
View Source
var PortRels = struct {
	LoadBalancer string
	Assignments  string
}{
	LoadBalancer: "LoadBalancer",
	Assignments:  "Assignments",
}

PortRels is where relationship names are stored.

View Source
var PortTableColumns = struct {
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
	PortID         string
	LoadBalancerID string
	Port           string
	AfInet         string
	Name           string
	Slug           string
	StateChangedAt string
	CurrentState   string
	PreviousState  string
}{
	CreatedAt:      "ports.created_at",
	UpdatedAt:      "ports.updated_at",
	DeletedAt:      "ports.deleted_at",
	PortID:         "ports.port_id",
	LoadBalancerID: "ports.load_balancer_id",
	Port:           "ports.port",
	AfInet:         "ports.af_inet",
	Name:           "ports.name",
	Slug:           "ports.slug",
	StateChangedAt: "ports.state_changed_at",
	CurrentState:   "ports.current_state",
	PreviousState:  "ports.previous_state",
}
View Source
var PortWhere = struct {
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
	PortID         whereHelperstring
	LoadBalancerID whereHelperstring
	Port           whereHelperint64
	AfInet         whereHelperstring
	Name           whereHelperstring
	Slug           whereHelperstring
	StateChangedAt whereHelpernull_Time
	CurrentState   whereHelperstring
	PreviousState  whereHelperstring
}{
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	PortID:         whereHelperstring{/* contains filtered or unexported fields */},
	LoadBalancerID: whereHelperstring{/* contains filtered or unexported fields */},
	Port:           whereHelperint64{/* contains filtered or unexported fields */},
	AfInet:         whereHelperstring{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	Slug:           whereHelperstring{/* contains filtered or unexported fields */},
	StateChangedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	CurrentState:   whereHelperstring{/* contains filtered or unexported fields */},
	PreviousState:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Assignments    string
	GooseDBVersion string
	LoadBalancers  string
	Origins        string
	Pools          string
	Ports          string
}{
	Assignments:    "assignments",
	GooseDBVersion: "goose_db_version",
	LoadBalancers:  "load_balancers",
	Origins:        "origins",
	Pools:          "pools",
	Ports:          "ports",
}
View Source
var ViewNames = struct {
}{}

Functions

func AddAssignmentHook

func AddAssignmentHook(hookPoint boil.HookPoint, assignmentHook AssignmentHook)

AddAssignmentHook registers your hook function for all future operations.

func AddGooseDBVersionHook

func AddGooseDBVersionHook(hookPoint boil.HookPoint, gooseDBVersionHook GooseDBVersionHook)

AddGooseDBVersionHook registers your hook function for all future operations.

func AddLoadBalancerHook

func AddLoadBalancerHook(hookPoint boil.HookPoint, loadBalancerHook LoadBalancerHook)

AddLoadBalancerHook registers your hook function for all future operations.

func AddOriginHook

func AddOriginHook(hookPoint boil.HookPoint, originHook OriginHook)

AddOriginHook registers your hook function for all future operations.

func AddPoolHook

func AddPoolHook(hookPoint boil.HookPoint, poolHook PoolHook)

AddPoolHook registers your hook function for all future operations.

func AddPortHook added in v0.0.10

func AddPortHook(hookPoint boil.HookPoint, portHook PortHook)

AddPortHook registers your hook function for all future operations.

func AssignmentExists

func AssignmentExists(ctx context.Context, exec boil.ContextExecutor, assignmentID string) (bool, error)

AssignmentExists checks if the Assignment row exists.

func Assignments

func Assignments(mods ...qm.QueryMod) assignmentQuery

Assignments retrieves all the records using an executor.

func GooseDBVersionExists

func GooseDBVersionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

GooseDBVersionExists checks if the GooseDBVersion row exists.

func GooseDBVersions

func GooseDBVersions(mods ...qm.QueryMod) gooseDBVersionQuery

GooseDBVersions retrieves all the records using an executor.

func LoadBalancerExists

func LoadBalancerExists(ctx context.Context, exec boil.ContextExecutor, loadBalancerID string) (bool, error)

LoadBalancerExists checks if the LoadBalancer row exists.

func LoadBalancers

func LoadBalancers(mods ...qm.QueryMod) loadBalancerQuery

LoadBalancers retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func OriginExists

func OriginExists(ctx context.Context, exec boil.ContextExecutor, originID string) (bool, error)

OriginExists checks if the Origin row exists.

func Origins

func Origins(mods ...qm.QueryMod) originQuery

Origins retrieves all the records using an executor.

func PoolExists

func PoolExists(ctx context.Context, exec boil.ContextExecutor, poolID string) (bool, error)

PoolExists checks if the Pool row exists.

func Pools

func Pools(mods ...qm.QueryMod) poolQuery

Pools retrieves all the records using an executor.

func PortExists added in v0.0.10

func PortExists(ctx context.Context, exec boil.ContextExecutor, portID string) (bool, error)

PortExists checks if the Port row exists.

func Ports added in v0.0.10

func Ports(mods ...qm.QueryMod) portQuery

Ports retrieves all the records using an executor.

Types

type Assignment

type Assignment struct {
	CreatedAt    time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt    time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt    null.Time `` /* 129-byte string literal not displayed */
	AssignmentID string    `` /* 127-byte string literal not displayed */
	PoolID       string    `query:"pool_id" param:"pool_id" boil:"pool_id" json:"pool_id" toml:"pool_id" yaml:"pool_id"`
	TenantID     string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`
	PortID       string    `query:"port_id" param:"port_id" boil:"port_id" json:"port_id" toml:"port_id" yaml:"port_id"`

	R *assignmentR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L assignmentL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Assignment is an object representing the database table.

func FindAssignment

func FindAssignment(ctx context.Context, exec boil.ContextExecutor, assignmentID string, selectCols ...string) (*Assignment, error)

FindAssignment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Assignment) Delete

func (o *Assignment) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Assignment record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Assignment) Exists

func (o *Assignment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Assignment row exists.

func (*Assignment) Insert

func (o *Assignment) 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 (*Assignment) Pool

func (o *Assignment) Pool(mods ...qm.QueryMod) poolQuery

Pool pointed to by the foreign key.

func (*Assignment) Port added in v0.0.10

func (o *Assignment) Port(mods ...qm.QueryMod) portQuery

Port pointed to by the foreign key.

func (*Assignment) Reload

func (o *Assignment) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Assignment) SetPool

func (o *Assignment) SetPool(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Pool) error

SetPool of the assignment to the related item. Sets o.R.Pool to related. Adds o to related.R.Assignments.

func (*Assignment) SetPort added in v0.0.10

func (o *Assignment) SetPort(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Port) error

SetPort of the assignment to the related item. Sets o.R.Port to related. Adds o to related.R.Assignments.

func (*Assignment) Update

func (o *Assignment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Assignment. 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 (*Assignment) Upsert

func (o *Assignment) 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 AssignmentHook

type AssignmentHook func(context.Context, boil.ContextExecutor, *Assignment) error

AssignmentHook is the signature for custom Assignment hook methods

type AssignmentSlice

type AssignmentSlice []*Assignment

AssignmentSlice is an alias for a slice of pointers to Assignment. This should almost always be used instead of []Assignment.

func (AssignmentSlice) DeleteAll

func (o AssignmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*AssignmentSlice) ReloadAll

func (o *AssignmentSlice) 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 (AssignmentSlice) UpdateAll

func (o AssignmentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GooseDBVersion

type GooseDBVersion struct {
	ID        int64     `query:"id" param:"id" boil:"id" json:"id" toml:"id" yaml:"id"`
	VersionID int64     `query:"version_id" param:"version_id" boil:"version_id" json:"version_id" toml:"version_id" yaml:"version_id"`
	IsApplied bool      `query:"is_applied" param:"is_applied" boil:"is_applied" json:"is_applied" toml:"is_applied" yaml:"is_applied"`
	Tstamp    null.Time `query:"tstamp" param:"tstamp" boil:"tstamp" json:"tstamp,omitempty" toml:"tstamp" yaml:"tstamp,omitempty"`

	R *gooseDBVersionR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L gooseDBVersionL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

GooseDBVersion is an object representing the database table.

func FindGooseDBVersion

func FindGooseDBVersion(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*GooseDBVersion, error)

FindGooseDBVersion retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GooseDBVersion) Delete

func (o *GooseDBVersion) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single GooseDBVersion record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GooseDBVersion) Exists

func (o *GooseDBVersion) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the GooseDBVersion row exists.

func (*GooseDBVersion) Insert

func (o *GooseDBVersion) 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 (*GooseDBVersion) Reload

func (o *GooseDBVersion) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*GooseDBVersion) Update

func (o *GooseDBVersion) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GooseDBVersion. 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 (*GooseDBVersion) Upsert

func (o *GooseDBVersion) 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 GooseDBVersionHook

type GooseDBVersionHook func(context.Context, boil.ContextExecutor, *GooseDBVersion) error

GooseDBVersionHook is the signature for custom GooseDBVersion hook methods

type GooseDBVersionSlice

type GooseDBVersionSlice []*GooseDBVersion

GooseDBVersionSlice is an alias for a slice of pointers to GooseDBVersion. This should almost always be used instead of []GooseDBVersion.

func (GooseDBVersionSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*GooseDBVersionSlice) ReloadAll

func (o *GooseDBVersionSlice) 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 (GooseDBVersionSlice) UpdateAll

func (o GooseDBVersionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type LoadBalancer

type LoadBalancer struct {
	CreatedAt        time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt        time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt        null.Time `` /* 129-byte string literal not displayed */
	LoadBalancerID   string    `` /* 145-byte string literal not displayed */
	LocationID       string    `query:"location_id" param:"location_id" boil:"location_id" json:"location_id" toml:"location_id" yaml:"location_id"`
	TenantID         string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`
	Name             string    `query:"name" param:"name" boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug             string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	LoadBalancerSize string    `` /* 157-byte string literal not displayed */
	LoadBalancerType string    `` /* 157-byte string literal not displayed */
	StateChangedAt   null.Time `` /* 165-byte string literal not displayed */
	CurrentState     string    `` /* 127-byte string literal not displayed */
	PreviousState    string    `` /* 133-byte string literal not displayed */
	IPAddressID      string    `` /* 127-byte string literal not displayed */

	R *loadBalancerR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L loadBalancerL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

LoadBalancer is an object representing the database table.

func FindLoadBalancer

func FindLoadBalancer(ctx context.Context, exec boil.ContextExecutor, loadBalancerID string, selectCols ...string) (*LoadBalancer, error)

FindLoadBalancer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*LoadBalancer) AddPorts added in v0.0.10

func (o *LoadBalancer) AddPorts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Port) error

AddPorts adds the given related objects to the existing relationships of the load_balancer, optionally inserting them as new records. Appends related to o.R.Ports. Sets related.R.LoadBalancer appropriately.

func (*LoadBalancer) Delete

func (o *LoadBalancer) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single LoadBalancer record with an executor. Delete will match against the primary key column to find the record to delete.

func (*LoadBalancer) Exists

func (o *LoadBalancer) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the LoadBalancer row exists.

func (*LoadBalancer) Insert

func (o *LoadBalancer) 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 (*LoadBalancer) Ports added in v0.0.10

func (o *LoadBalancer) Ports(mods ...qm.QueryMod) portQuery

Ports retrieves all the port's Ports with an executor.

func (*LoadBalancer) Reload

func (o *LoadBalancer) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*LoadBalancer) Update

func (o *LoadBalancer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the LoadBalancer. 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 (*LoadBalancer) Upsert

func (o *LoadBalancer) 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 LoadBalancerHook

type LoadBalancerHook func(context.Context, boil.ContextExecutor, *LoadBalancer) error

LoadBalancerHook is the signature for custom LoadBalancer hook methods

type LoadBalancerSlice

type LoadBalancerSlice []*LoadBalancer

LoadBalancerSlice is an alias for a slice of pointers to LoadBalancer. This should almost always be used instead of []LoadBalancer.

func (LoadBalancerSlice) DeleteAll

func (o LoadBalancerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*LoadBalancerSlice) ReloadAll

func (o *LoadBalancerSlice) 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 (LoadBalancerSlice) UpdateAll

func (o LoadBalancerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Origin

type Origin struct {
	CreatedAt                 time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt                 time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt                 null.Time `` /* 129-byte string literal not displayed */
	OriginID                  string    `query:"origin_id" param:"origin_id" boil:"origin_id" json:"origin_id" toml:"origin_id" yaml:"origin_id"`
	PoolID                    string    `query:"pool_id" param:"pool_id" boil:"pool_id" json:"pool_id" toml:"pool_id" yaml:"pool_id"`
	OriginTarget              string    `` /* 127-byte string literal not displayed */
	Port                      int64     `query:"port" param:"port" boil:"port" json:"port" toml:"port" yaml:"port"`
	Name                      string    `query:"name" param:"name" boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug                      string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	OriginUserSettingDisabled bool      `` /* 217-byte string literal not displayed */
	StateChangedAt            null.Time `` /* 165-byte string literal not displayed */
	CurrentState              string    `` /* 127-byte string literal not displayed */
	PreviousState             string    `` /* 133-byte string literal not displayed */

	R *originR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L originL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Origin is an object representing the database table.

func FindOrigin

func FindOrigin(ctx context.Context, exec boil.ContextExecutor, originID string, selectCols ...string) (*Origin, error)

FindOrigin retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Origin) Delete

func (o *Origin) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Origin record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Origin) Exists

func (o *Origin) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Origin row exists.

func (*Origin) Insert

func (o *Origin) 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 (*Origin) Pool

func (o *Origin) Pool(mods ...qm.QueryMod) poolQuery

Pool pointed to by the foreign key.

func (*Origin) Reload

func (o *Origin) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Origin) SetPool

func (o *Origin) SetPool(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Pool) error

SetPool of the origin to the related item. Sets o.R.Pool to related. Adds o to related.R.Origins.

func (*Origin) Update

func (o *Origin) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Origin. 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 (*Origin) Upsert

func (o *Origin) 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 OriginHook

type OriginHook func(context.Context, boil.ContextExecutor, *Origin) error

OriginHook is the signature for custom Origin hook methods

type OriginSlice

type OriginSlice []*Origin

OriginSlice is an alias for a slice of pointers to Origin. This should almost always be used instead of []Origin.

func (OriginSlice) DeleteAll

func (o OriginSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*OriginSlice) ReloadAll

func (o *OriginSlice) 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 (OriginSlice) UpdateAll

func (o OriginSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Pool

type Pool struct {
	CreatedAt time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `` /* 129-byte string literal not displayed */
	PoolID    string    `query:"pool_id" param:"pool_id" boil:"pool_id" json:"pool_id" toml:"pool_id" yaml:"pool_id"`
	Protocol  string    `query:"protocol" param:"protocol" boil:"protocol" json:"protocol" toml:"protocol" yaml:"protocol"`
	Name      string    `query:"name" param:"name" boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug      string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	TenantID  string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`

	R *poolR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L poolL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Pool is an object representing the database table.

func FindPool

func FindPool(ctx context.Context, exec boil.ContextExecutor, poolID string, selectCols ...string) (*Pool, error)

FindPool retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Pool) AddAssignments

func (o *Pool) AddAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Assignment) error

AddAssignments adds the given related objects to the existing relationships of the pool, optionally inserting them as new records. Appends related to o.R.Assignments. Sets related.R.Pool appropriately.

func (*Pool) AddOrigins

func (o *Pool) AddOrigins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Origin) error

AddOrigins adds the given related objects to the existing relationships of the pool, optionally inserting them as new records. Appends related to o.R.Origins. Sets related.R.Pool appropriately.

func (*Pool) Assignments

func (o *Pool) Assignments(mods ...qm.QueryMod) assignmentQuery

Assignments retrieves all the assignment's Assignments with an executor.

func (*Pool) Delete

func (o *Pool) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Pool record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Pool) Exists

func (o *Pool) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Pool row exists.

func (*Pool) Insert

func (o *Pool) 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 (*Pool) Origins

func (o *Pool) Origins(mods ...qm.QueryMod) originQuery

Origins retrieves all the origin's Origins with an executor.

func (*Pool) Reload

func (o *Pool) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Pool) Update

func (o *Pool) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Pool. 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 (*Pool) Upsert

func (o *Pool) 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 PoolHook

type PoolHook func(context.Context, boil.ContextExecutor, *Pool) error

PoolHook is the signature for custom Pool hook methods

type PoolSlice

type PoolSlice []*Pool

PoolSlice is an alias for a slice of pointers to Pool. This should almost always be used instead of []Pool.

func (PoolSlice) DeleteAll

func (o PoolSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PoolSlice) ReloadAll

func (o *PoolSlice) 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 (PoolSlice) UpdateAll

func (o PoolSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Port added in v0.0.10

type Port struct {
	CreatedAt      time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      null.Time `` /* 129-byte string literal not displayed */
	PortID         string    `query:"port_id" param:"port_id" boil:"port_id" json:"port_id" toml:"port_id" yaml:"port_id"`
	LoadBalancerID string    `` /* 145-byte string literal not displayed */
	Port           int64     `query:"port" param:"port" boil:"port" json:"port" toml:"port" yaml:"port"`
	AfInet         string    `query:"af_inet" param:"af_inet" boil:"af_inet" json:"af_inet" toml:"af_inet" yaml:"af_inet"`
	Name           string    `query:"name" param:"name" boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug           string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	StateChangedAt null.Time `` /* 165-byte string literal not displayed */
	CurrentState   string    `` /* 127-byte string literal not displayed */
	PreviousState  string    `` /* 133-byte string literal not displayed */

	R *portR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L portL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Port is an object representing the database table.

func FindPort added in v0.0.10

func FindPort(ctx context.Context, exec boil.ContextExecutor, portID string, selectCols ...string) (*Port, error)

FindPort retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Port) AddAssignments added in v0.0.10

func (o *Port) AddAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Assignment) error

AddAssignments adds the given related objects to the existing relationships of the port, optionally inserting them as new records. Appends related to o.R.Assignments. Sets related.R.Port appropriately.

func (*Port) Assignments added in v0.0.10

func (o *Port) Assignments(mods ...qm.QueryMod) assignmentQuery

Assignments retrieves all the assignment's Assignments with an executor.

func (*Port) Delete added in v0.0.10

func (o *Port) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Port record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Port) Exists added in v0.0.10

func (o *Port) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Port row exists.

func (*Port) Insert added in v0.0.10

func (o *Port) 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 (*Port) LoadBalancer added in v0.0.10

func (o *Port) LoadBalancer(mods ...qm.QueryMod) loadBalancerQuery

LoadBalancer pointed to by the foreign key.

func (*Port) Reload added in v0.0.10

func (o *Port) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Port) SetLoadBalancer added in v0.0.10

func (o *Port) SetLoadBalancer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *LoadBalancer) error

SetLoadBalancer of the port to the related item. Sets o.R.LoadBalancer to related. Adds o to related.R.Ports.

func (*Port) Update added in v0.0.10

func (o *Port) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Port. 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 (*Port) Upsert added in v0.0.10

func (o *Port) 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 PortHook added in v0.0.10

type PortHook func(context.Context, boil.ContextExecutor, *Port) error

PortHook is the signature for custom Port hook methods

type PortSlice added in v0.0.10

type PortSlice []*Port

PortSlice is an alias for a slice of pointers to Port. This should almost always be used instead of []Port.

func (PortSlice) DeleteAll added in v0.0.10

func (o PortSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PortSlice) ReloadAll added in v0.0.10

func (o *PortSlice) 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 (PortSlice) UpdateAll added in v0.0.10

func (o PortSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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