Documentation ¶
Index ¶
- func Initialize(simpleDB simplesql.Database) error
- type ClusterRow
- type ClusterTable
- func (s *ClusterTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
- func (s *ClusterTable) Get(ctx context.Context, keys ClusterTableKeys) (ClusterRow, error)
- func (s *ClusterTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row ClusterRow) error
- func (s *ClusterTable) List(ctx context.Context, filters ClusterTableSelectFilters) ([]ClusterRow, error)
- func (s *ClusterTable) Update(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, ...) error
- type ClusterTableKeys
- type ClusterTableSelectFilters
- type ClusterTableUpdateFields
- type ComputeCapabilityKeys
- type ComputeCapabilityRow
- type ComputeCapabilityTable
- func (s *ComputeCapabilityTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
- func (s *ComputeCapabilityTable) Get(ctx context.Context, keys ComputeCapabilityKeys) (ComputeCapabilityRow, error)
- func (s *ComputeCapabilityTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row ComputeCapabilityRow) error
- func (s *ComputeCapabilityTable) List(ctx context.Context, filters ComputeCapabilityTableSelectFilters) ([]ComputeCapabilityRow, error)
- func (s *ComputeCapabilityTable) Update(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, ...) error
- type ComputeCapabilityTableSelectFilters
- type ComputeCapabilityTableUpdateFields
- type DeploymentMatchingCapabilityTable
- type DeploymentPlanApplicationPersistentVolumeRow
- type DeploymentPlanApplicationPersistentVolumeTable
- type DeploymentPlanApplicationPersistentVolumeTableSelectFilters
- type DeploymentPlanApplicationPortRow
- type DeploymentPlanApplicationPortTable
- type DeploymentPlanApplicationPortTableSelectFilters
- type DeploymentPlanApplicationRow
- type DeploymentPlanApplicationTable
- type DeploymentPlanApplicationTableSelectFilters
- type DeploymentPlanDeploymentPayloadCoordinatesRow
- type DeploymentPlanDeploymentPayloadCoordinatesTable
- type DeploymentPlanDeploymentPayloadCoordinatesTableSelectFilters
- type DeploymentPlanDeploymentRow
- type DeploymentPlanDeploymentTable
- func (s *DeploymentPlanDeploymentTable) Insert(ctx context.Context, execer sqlx.ExecerContext, ...) error
- func (s *DeploymentPlanDeploymentTable) List(ctx context.Context, filters DeploymentPlanDeploymentTableSelectFilters) ([]DeploymentPlanDeploymentRow, error)
- func (s *DeploymentPlanDeploymentTable) Update(ctx context.Context, execer sqlx.ExecerContext, deploymentID string, ...) error
- type DeploymentPlanDeploymentTableSelectFilters
- type DeploymentPlanDeploymentTableUpdateFields
- type DeploymentPlanKeys
- type DeploymentPlanMatchingCapabilityRow
- type DeploymentPlanMatchingCapabilityTableSelectFilters
- type DeploymentPlanRow
- type DeploymentPlanTable
- func (s *DeploymentPlanTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
- func (s *DeploymentPlanTable) Get(ctx context.Context, keys DeploymentPlanKeys) (DeploymentPlanRow, error)
- func (s *DeploymentPlanTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanRow) error
- func (s *DeploymentPlanTable) List(ctx context.Context, filters DeploymentPlanTableSelectFilters) ([]DeploymentPlanRow, error)
- func (s *DeploymentPlanTable) Update(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, ...) error
- type DeploymentPlanTableSelectFilters
- type DeploymentPlanTableUpdateFields
- type MetaInstanceKeys
- type MetaInstanceOperationRow
- type MetaInstanceOperationTable
- func (s *MetaInstanceOperationTable) Delete(ctx context.Context, execer sqlx.ExecerContext, operationID string, ...) error
- func (s *MetaInstanceOperationTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row MetaInstanceOperationRow) error
- func (s *MetaInstanceOperationTable) List(ctx context.Context, filters MetaInstanceOperationTableSelectFilters) ([]MetaInstanceOperationRow, error)
- func (s *MetaInstanceOperationTable) Update(ctx context.Context, execer sqlx.ExecerContext, operationID string, ...) error
- type MetaInstanceOperationTableSelectFilters
- type MetaInstanceOperationTableUpdateFields
- type MetaInstanceRow
- type MetaInstanceRuntimeInstanceRow
- type MetaInstanceRuntimeInstanceTable
- func (s *MetaInstanceRuntimeInstanceTable) Delete(ctx context.Context, execer sqlx.ExecerContext, runtimeInstanceID string, ...) error
- func (s *MetaInstanceRuntimeInstanceTable) Insert(ctx context.Context, execer sqlx.ExecerContext, ...) error
- func (s *MetaInstanceRuntimeInstanceTable) List(ctx context.Context, filters MetaInstanceRuntimeInstanceTableSelectFilters) ([]MetaInstanceRuntimeInstanceRow, error)
- func (s *MetaInstanceRuntimeInstanceTable) Update(ctx context.Context, execer sqlx.ExecerContext, runtimeInstanceID string, ...) error
- type MetaInstanceRuntimeInstanceTableSelectFilters
- type MetaInstanceRuntimeInstanceTableUpdateFields
- type MetaInstanceTable
- func (s *MetaInstanceTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
- func (s *MetaInstanceTable) Get(ctx context.Context, keys MetaInstanceKeys) (MetaInstanceRow, error)
- func (s *MetaInstanceTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row MetaInstanceRow) error
- func (s *MetaInstanceTable) List(ctx context.Context, filters MetaInstanceTableSelectFilters) ([]MetaInstanceRow, error)
- func (s *MetaInstanceTable) Update(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, ...) error
- type MetaInstanceTableSelectFilters
- type MetaInstanceTableUpdateFields
- type NodeCapabilityRow
- type NodeCapabilityTable
- func (s *NodeCapabilityTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string, ...) error
- func (s *NodeCapabilityTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeCapabilityRow) error
- func (s *NodeCapabilityTable) List(ctx context.Context, filters NodeCapabilityTableSelectFilters) ([]NodeCapabilityRow, error)
- type NodeCapabilityTableSelectFilters
- type NodeDisruptionRow
- type NodeDisruptionTable
- func (s *NodeDisruptionTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string, id string) error
- func (s *NodeDisruptionTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeDisruptionRow) error
- func (s *NodeDisruptionTable) List(ctx context.Context, filters NodeDisruptionTableSelectFilters) ([]NodeDisruptionRow, error)
- func (s *NodeDisruptionTable) Update(ctx context.Context, execer sqlx.ExecerContext, nodeID string, id string, ...) error
- type NodeDisruptionTableSelectFilters
- type NodeDisruptionTableUpdateFields
- type NodeKeys
- type NodeLocalVolumeRow
- type NodeLocalVolumeTable
- func (s *NodeLocalVolumeTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string) error
- func (s *NodeLocalVolumeTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeLocalVolumeRow) error
- func (s *NodeLocalVolumeTable) List(ctx context.Context, filters NodeLocalVolumeTableSelectFilters) ([]NodeLocalVolumeRow, error)
- type NodeLocalVolumeTableSelectFilters
- type NodePayloadRow
- type NodePayloadTable
- func (s *NodePayloadTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string, ...) error
- func (s *NodePayloadTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodePayloadRow) error
- func (s *NodePayloadTable) List(ctx context.Context, filters NodePayloadTableSelectFilters) ([]NodePayloadRow, error)
- type NodePayloadTableSelectFilters
- type NodeRow
- type NodeSelectFilters
- type NodeTable
- func (s *NodeTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
- func (s *NodeTable) Get(ctx context.Context, keys NodeKeys) (NodeRow, error)
- func (s *NodeTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeRow) error
- func (s *NodeTable) List(ctx context.Context, filters NodeSelectFilters) ([]NodeRow, error)
- func (s *NodeTable) Update(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, ...) error
- type NodeUpdateFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type ClusterRow ¶
type ClusterRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` Version uint64 `db:"version" orm:"op=create,update"` Name string `db:"name" orm:"op=create composite_unique_key:name,deleted_at filter=In"` DeletedAt int64 `db:"deleted_at"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` }
type ClusterTable ¶
func NewClusterTable ¶
func NewClusterTable(db simplesql.Database) *ClusterTable
func (*ClusterTable) Delete ¶
func (s *ClusterTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
func (*ClusterTable) Get ¶
func (s *ClusterTable) Get(ctx context.Context, keys ClusterTableKeys) (ClusterRow, error)
func (*ClusterTable) Insert ¶
func (s *ClusterTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row ClusterRow) error
func (*ClusterTable) List ¶
func (s *ClusterTable) List(ctx context.Context, filters ClusterTableSelectFilters) ([]ClusterRow, error)
func (*ClusterTable) Update ¶
func (s *ClusterTable) Update( ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, updateFields ClusterTableUpdateFields, ) error
type ClusterTableKeys ¶
type ClusterTableSelectFilters ¶
type ClusterTableSelectFilters struct { IDIn []string `db:"id:in"` // IN condition NameIn []string `db:"name:in"` // IN condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition VersionGte *uint64 `db:"version:gte"` // Greater than or equal condition VersionLte *uint64 `db:"version:lte"` // Less than or equal condition VersionEq *uint64 `db:"version:eq"` // Equal condition IncludeDeleted bool `db:"include_deleted"` // Special boolean handling Limit uint32 `db:"limit"` }
type ComputeCapabilityKeys ¶
type ComputeCapabilityRow ¶
type ComputeCapabilityRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` Version uint64 `db:"version" orm:"op=create,update"` Name string `db:"name" orm:"op=create composite_unique_key:Name,isDeleted filter=In"` DeletedAt int64 `db:"deleted_at"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` Type string `db:"type" orm:"op=create filter=In,NotIn"` Score uint32 `db:"score" orm:"op=create,update"` }
type ComputeCapabilityTable ¶
func NewComputeCapabilityTable ¶
func NewComputeCapabilityTable(db simplesql.Database) *ComputeCapabilityTable
func (*ComputeCapabilityTable) Delete ¶
func (s *ComputeCapabilityTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
func (*ComputeCapabilityTable) Get ¶
func (s *ComputeCapabilityTable) Get(ctx context.Context, keys ComputeCapabilityKeys) (ComputeCapabilityRow, error)
func (*ComputeCapabilityTable) Insert ¶
func (s *ComputeCapabilityTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row ComputeCapabilityRow) error
func (*ComputeCapabilityTable) List ¶
func (s *ComputeCapabilityTable) List(ctx context.Context, filters ComputeCapabilityTableSelectFilters) ([]ComputeCapabilityRow, error)
func (*ComputeCapabilityTable) Update ¶
func (s *ComputeCapabilityTable) Update( ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, updateFields ComputeCapabilityTableUpdateFields, ) error
type ComputeCapabilityTableSelectFilters ¶
type ComputeCapabilityTableSelectFilters struct { IDIn []string `db:"id:in"` // IN condition NameIn []string `db:"name:in"` // IN condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition VersionGte *uint64 `db:"version:gte"` // Greater than or equal condition VersionLte *uint64 `db:"version:lte"` // Less than or equal condition VersionEq *uint64 `db:"version:eq"` // Equal condition IncludeDeleted bool `db:"include_deleted"` // Special boolean handling Limit uint32 `db:"limit"` TypeIn []string `db:"type:in"` // IN condition }
type DeploymentMatchingCapabilityTable ¶
type DeploymentMatchingCapabilityTable struct { simplesql.Database // contains filtered or unexported fields }
func NewDeploymentMatchingCapabilityTable ¶
func NewDeploymentMatchingCapabilityTable(db simplesql.Database) *DeploymentMatchingCapabilityTable
func (*DeploymentMatchingCapabilityTable) Insert ¶
func (s *DeploymentMatchingCapabilityTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanMatchingCapabilityRow) error
func (*DeploymentMatchingCapabilityTable) List ¶
func (s *DeploymentMatchingCapabilityTable) List(ctx context.Context, filters DeploymentPlanMatchingCapabilityTableSelectFilters) ([]DeploymentPlanMatchingCapabilityRow, error)
type DeploymentPlanApplicationPersistentVolumeRow ¶
type DeploymentPlanApplicationPersistentVolumeRow struct { DeploymentPlanID string `db:"deployment_plan_id" orm:"op=create filter=In"` PayloadName string `db:"payload_name" orm:"op=create filter=In"` StorageClass string `db:"storage_class" orm:"op=create"` Capacity uint32 `db:"capacity" orm:"op=create"` MountPath string `db:"mount_path" orm:"op=create"` }
type DeploymentPlanApplicationPersistentVolumeTable ¶
type DeploymentPlanApplicationPersistentVolumeTable struct { simplesql.Database // contains filtered or unexported fields }
func NewDeploymentPlanApplicationPersistentVolumeTable ¶
func NewDeploymentPlanApplicationPersistentVolumeTable(db simplesql.Database) *DeploymentPlanApplicationPersistentVolumeTable
func (*DeploymentPlanApplicationPersistentVolumeTable) Insert ¶
func (s *DeploymentPlanApplicationPersistentVolumeTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanApplicationPersistentVolumeRow) error
type DeploymentPlanApplicationPortTable ¶
type DeploymentPlanApplicationPortTable struct { simplesql.Database // contains filtered or unexported fields }
func NewDeploymentPlanApplicationPortTable ¶
func NewDeploymentPlanApplicationPortTable(db simplesql.Database) *DeploymentPlanApplicationPortTable
func (*DeploymentPlanApplicationPortTable) Insert ¶
func (s *DeploymentPlanApplicationPortTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanApplicationPortRow) error
func (*DeploymentPlanApplicationPortTable) List ¶
func (s *DeploymentPlanApplicationPortTable) List(ctx context.Context, filters DeploymentPlanApplicationPortTableSelectFilters) ([]DeploymentPlanApplicationPortRow, error)
type DeploymentPlanApplicationTable ¶
type DeploymentPlanApplicationTable struct { simplesql.Database // contains filtered or unexported fields }
func NewDeploymentPlanApplicationTable ¶
func NewDeploymentPlanApplicationTable(db simplesql.Database) *DeploymentPlanApplicationTable
func (*DeploymentPlanApplicationTable) Insert ¶
func (s *DeploymentPlanApplicationTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanApplicationRow) error
func (*DeploymentPlanApplicationTable) List ¶
func (s *DeploymentPlanApplicationTable) List(ctx context.Context, filters DeploymentPlanApplicationTableSelectFilters) ([]DeploymentPlanApplicationRow, error)
type DeploymentPlanDeploymentPayloadCoordinatesRow ¶
type DeploymentPlanDeploymentPayloadCoordinatesRow struct { DeploymentPlanID string `db:"deployment_plan_id" orm:"op=create filter=In"` DeploymentID string `db:"deployment_id" orm:"op=create filter=In"` PayloadName string `db:"payload_name" orm:"op=create"` Coordinates string `db:"coordinates" orm:"op=create"` }
type DeploymentPlanDeploymentPayloadCoordinatesTable ¶
type DeploymentPlanDeploymentPayloadCoordinatesTable struct { simplesql.Database // contains filtered or unexported fields }
func NewDeploymentPlanDeploymentPayloadCoordinatesTable ¶
func NewDeploymentPlanDeploymentPayloadCoordinatesTable(db simplesql.Database) *DeploymentPlanDeploymentPayloadCoordinatesTable
func (*DeploymentPlanDeploymentPayloadCoordinatesTable) Insert ¶
func (s *DeploymentPlanDeploymentPayloadCoordinatesTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanDeploymentPayloadCoordinatesRow) error
type DeploymentPlanDeploymentRow ¶
type DeploymentPlanDeploymentRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` DeploymentPlanID string `db:"deployment_plan_id" orm:"op=create filter=In"` InstanceCount uint32 `db:"instance_count" orm:"op=create"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` }
type DeploymentPlanDeploymentTable ¶
type DeploymentPlanDeploymentTable struct { simplesql.Database // contains filtered or unexported fields }
func NewDeploymentPlanDeploymentTable ¶
func NewDeploymentPlanDeploymentTable(db simplesql.Database) *DeploymentPlanDeploymentTable
func (*DeploymentPlanDeploymentTable) Insert ¶
func (s *DeploymentPlanDeploymentTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanDeploymentRow) error
func (*DeploymentPlanDeploymentTable) List ¶
func (s *DeploymentPlanDeploymentTable) List(ctx context.Context, filters DeploymentPlanDeploymentTableSelectFilters) ([]DeploymentPlanDeploymentRow, error)
func (*DeploymentPlanDeploymentTable) Update ¶
func (s *DeploymentPlanDeploymentTable) Update( ctx context.Context, execer sqlx.ExecerContext, deploymentID string, deploymentPlanID string, updateFields DeploymentPlanDeploymentTableUpdateFields, ) error
type DeploymentPlanKeys ¶
type DeploymentPlanMatchingCapabilityRow ¶
type DeploymentPlanMatchingCapabilityRow struct { DeploymentPlanID string `db:"deployment_plan_id" orm:"op=create filter=In"` CapabilityType string `db:"capability_type" orm:"op=create"` Comparator string `db:"comparator" orm:"op=create"` CapabilityNames string `db:"capability_names" orm:"op=create"` }
type DeploymentPlanMatchingCapabilityTableSelectFilters ¶
type DeploymentPlanMatchingCapabilityTableSelectFilters struct {
DeploymentPlanIDIn []string `db:"deployment_plan_id:in"` // IN condition
}
type DeploymentPlanRow ¶
type DeploymentPlanRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` Version uint64 `db:"version" orm:"op=create,update"` Name string `db:"name" orm:"op=create composite_unique_key:Name,isDeleted filter=In"` DeletedAt int64 `db:"deleted_at"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` Namespace string `db:"namespace" orm:"op=create filter=In"` ServiceName string `db:"service_name" orm:"op=create filter=In"` }
type DeploymentPlanTable ¶
func NewDeploymentPlanTable ¶
func NewDeploymentPlanTable(db simplesql.Database) *DeploymentPlanTable
func (*DeploymentPlanTable) Delete ¶
func (s *DeploymentPlanTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
func (*DeploymentPlanTable) Get ¶
func (s *DeploymentPlanTable) Get(ctx context.Context, keys DeploymentPlanKeys) (DeploymentPlanRow, error)
func (*DeploymentPlanTable) Insert ¶
func (s *DeploymentPlanTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row DeploymentPlanRow) error
func (*DeploymentPlanTable) List ¶
func (s *DeploymentPlanTable) List(ctx context.Context, filters DeploymentPlanTableSelectFilters) ([]DeploymentPlanRow, error)
func (*DeploymentPlanTable) Update ¶
func (s *DeploymentPlanTable) Update( ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, updateFields DeploymentPlanTableUpdateFields, ) error
type DeploymentPlanTableSelectFilters ¶
type DeploymentPlanTableSelectFilters struct { IDIn []string `db:"id:in"` // IN condition NameIn []string `db:"name:in"` // IN condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition VersionGte *uint64 `db:"version:gte"` // Greater than or equal condition VersionLte *uint64 `db:"version:lte"` // Less than or equal condition VersionEq *uint64 `db:"version:eq"` // Equal condition ServiceNameIn []string `db:"service_name:in"` // IN condition NamespaceIn []string `db:"namespace:in"` // IN condition IncludeDeleted bool `db:"include_deleted"` // Special boolean handling Limit uint32 `db:"limit"` }
type MetaInstanceKeys ¶
type MetaInstanceOperationRow ¶
type MetaInstanceOperationRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` MetaInstanceID string `db:"meta_instance_id" orm:"op=create filter=In"` Type string `db:"type" orm:"op=create"` IntentID string `db:"intent_id" orm:"op=create"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` }
type MetaInstanceOperationTable ¶
type MetaInstanceOperationTable struct { simplesql.Database // contains filtered or unexported fields }
func NewMetaInstanceOperationTable ¶
func NewMetaInstanceOperationTable(db simplesql.Database) *MetaInstanceOperationTable
func (*MetaInstanceOperationTable) Delete ¶
func (s *MetaInstanceOperationTable) Delete(ctx context.Context, execer sqlx.ExecerContext, operationID string, metaInstanceID string) error
func (*MetaInstanceOperationTable) Insert ¶
func (s *MetaInstanceOperationTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row MetaInstanceOperationRow) error
func (*MetaInstanceOperationTable) List ¶
func (s *MetaInstanceOperationTable) List(ctx context.Context, filters MetaInstanceOperationTableSelectFilters) ([]MetaInstanceOperationRow, error)
func (*MetaInstanceOperationTable) Update ¶
func (s *MetaInstanceOperationTable) Update( ctx context.Context, execer sqlx.ExecerContext, operationID string, metaInstanceID string, updateFields MetaInstanceOperationTableUpdateFields, ) error
TODO: Auto-generate this function
type MetaInstanceRow ¶
type MetaInstanceRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` Version uint64 `db:"version" orm:"op=create,update"` Name string `db:"name" orm:"op=create composite_unique_key:name,deleted_at filter=In"` DeletedAt int64 `db:"deleted_at"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` DeploymentPlanID string `db:"deployment_plan_id" orm:"op=create filter=In"` DeploymentID string `db:"deployment_id" orm:"op=create,update filter=In"` }
type MetaInstanceRuntimeInstanceRow ¶
type MetaInstanceRuntimeInstanceRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` MetaInstanceID string `db:"meta_instance_id" orm:"op=create filter=In"` NodeID string `db:"node_id" orm:"op=create filter=In"` IsActive bool `db:"is_active" orm:"op=create,update filter=In"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` }
type MetaInstanceRuntimeInstanceTable ¶
type MetaInstanceRuntimeInstanceTable struct { simplesql.Database // contains filtered or unexported fields }
func NewMetaInstanceRuntimeInstanceTable ¶
func NewMetaInstanceRuntimeInstanceTable(db simplesql.Database) *MetaInstanceRuntimeInstanceTable
func (*MetaInstanceRuntimeInstanceTable) Delete ¶
func (s *MetaInstanceRuntimeInstanceTable) Delete(ctx context.Context, execer sqlx.ExecerContext, runtimeInstanceID string, metaInstanceID string) error
func (*MetaInstanceRuntimeInstanceTable) Insert ¶
func (s *MetaInstanceRuntimeInstanceTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row MetaInstanceRuntimeInstanceRow) error
func (*MetaInstanceRuntimeInstanceTable) List ¶
func (s *MetaInstanceRuntimeInstanceTable) List(ctx context.Context, filters MetaInstanceRuntimeInstanceTableSelectFilters) ([]MetaInstanceRuntimeInstanceRow, error)
func (*MetaInstanceRuntimeInstanceTable) Update ¶
func (s *MetaInstanceRuntimeInstanceTable) Update( ctx context.Context, execer sqlx.ExecerContext, runtimeInstanceID string, metaInstanceID string, updateFields MetaInstanceRuntimeInstanceTableUpdateFields, ) error
type MetaInstanceRuntimeInstanceTableSelectFilters ¶
type MetaInstanceRuntimeInstanceTableSelectFilters struct { IDIn []string `db:"id:in"` // IN condition MetaInstanceIDIn []string `db:"meta_instance_id:in"` // IN condition NodeIDIn []string `db:"node_id:in"` // IN condition IsActive *bool `db:"is_active"` // Equal condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition }
type MetaInstanceTable ¶
func NewMetaInstanceTable ¶
func NewMetaInstanceTable(db simplesql.Database) *MetaInstanceTable
func (*MetaInstanceTable) Delete ¶
func (s *MetaInstanceTable) Delete(ctx context.Context, execer sqlx.ExecerContext, id string, version uint64) error
func (*MetaInstanceTable) Get ¶
func (s *MetaInstanceTable) Get(ctx context.Context, keys MetaInstanceKeys) (MetaInstanceRow, error)
func (*MetaInstanceTable) Insert ¶
func (s *MetaInstanceTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row MetaInstanceRow) error
func (*MetaInstanceTable) List ¶
func (s *MetaInstanceTable) List(ctx context.Context, filters MetaInstanceTableSelectFilters) ([]MetaInstanceRow, error)
func (*MetaInstanceTable) Update ¶
func (s *MetaInstanceTable) Update( ctx context.Context, execer sqlx.ExecerContext, id string, version uint64, updateFields MetaInstanceTableUpdateFields, ) error
type MetaInstanceTableSelectFilters ¶
type MetaInstanceTableSelectFilters struct { IDIn []string `db:"id:in"` // IN condition NameIn []string `db:"name:in"` // IN condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition VersionGte *uint64 `db:"version:gte"` // Greater than or equal condition VersionLte *uint64 `db:"version:lte"` // Less than or equal condition VersionEq *uint64 `db:"version:eq"` // Equal condition DeploymentIDIn []string `db:"deployment_id:in"` // IN condition DeploymentPlanIDIn []string `db:"deployment_plan_id:in"` // IN condition IncludeDeleted bool `db:"include_deleted"` // Special boolean handling Limit uint32 `db:"limit"` }
type NodeCapabilityRow ¶
type NodeCapabilityTable ¶
func NewNodeCapabilityTable ¶
func NewNodeCapabilityTable(db simplesql.Database) *NodeCapabilityTable
func (*NodeCapabilityTable) Delete ¶
func (s *NodeCapabilityTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string, capabilityID string) error
func (*NodeCapabilityTable) Insert ¶
func (s *NodeCapabilityTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeCapabilityRow) error
func (*NodeCapabilityTable) List ¶
func (s *NodeCapabilityTable) List(ctx context.Context, filters NodeCapabilityTableSelectFilters) ([]NodeCapabilityRow, error)
type NodeDisruptionRow ¶
type NodeDisruptionRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` NodeID string `db:"node_id" orm:"op=create filter=In"` EvictNode bool `db:"evict_node" orm:"op=create,update filter=In"` StartTime uint64 `db:"start_time" orm:"op=create,update filter=gte,lte"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` }
type NodeDisruptionTable ¶
func NewNodeDisruptionTable ¶
func NewNodeDisruptionTable(db simplesql.Database) *NodeDisruptionTable
func (*NodeDisruptionTable) Delete ¶
func (s *NodeDisruptionTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string, id string) error
TODO: This should also be auto-generated.
func (*NodeDisruptionTable) Insert ¶
func (s *NodeDisruptionTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeDisruptionRow) error
func (*NodeDisruptionTable) List ¶
func (s *NodeDisruptionTable) List(ctx context.Context, filters NodeDisruptionTableSelectFilters) ([]NodeDisruptionRow, error)
func (*NodeDisruptionTable) Update ¶
func (s *NodeDisruptionTable) Update( ctx context.Context, execer sqlx.ExecerContext, nodeID string, id string, updateFields NodeDisruptionTableUpdateFields, ) error
TODO: This should also be auto-generated.
type NodeDisruptionTableSelectFilters ¶
type NodeDisruptionTableSelectFilters struct { DisruptionIDIn []string `db:"disruption_id:in"` // IN condition NodeIDIn []string `db:"node_id:in"` // IN condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition StartTimeGte *uint64 `db:"start_time:gte"` // Greater than or equal condition StartTimeLte *uint64 `db:"start_time:lte"` // Less than or equal condition }
type NodeLocalVolumeRow ¶
type NodeLocalVolumeTable ¶
func NewNodeLocalVolumeTable ¶
func NewNodeLocalVolumeTable(db simplesql.Database) *NodeLocalVolumeTable
func (*NodeLocalVolumeTable) Delete ¶
func (s *NodeLocalVolumeTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string) error
func (*NodeLocalVolumeTable) Insert ¶
func (s *NodeLocalVolumeTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodeLocalVolumeRow) error
func (*NodeLocalVolumeTable) List ¶
func (s *NodeLocalVolumeTable) List(ctx context.Context, filters NodeLocalVolumeTableSelectFilters) ([]NodeLocalVolumeRow, error)
TODO: This should also be auto-generated.
type NodePayloadRow ¶
type NodePayloadTable ¶
func NewNodePayloadTable ¶
func NewNodePayloadTable(db simplesql.Database) *NodePayloadTable
func (*NodePayloadTable) Delete ¶
func (s *NodePayloadTable) Delete(ctx context.Context, execer sqlx.ExecerContext, nodeID string, payloadName string) error
func (*NodePayloadTable) Insert ¶
func (s *NodePayloadTable) Insert(ctx context.Context, execer sqlx.ExecerContext, row NodePayloadRow) error
func (*NodePayloadTable) List ¶
func (s *NodePayloadTable) List(ctx context.Context, filters NodePayloadTableSelectFilters) ([]NodePayloadRow, error)
type NodeRow ¶
type NodeRow struct { ID string `db:"id" orm:"op=create key=primary_key filter=In"` Version uint64 `db:"version" orm:"op=create,update"` Name string `db:"name" orm:"op=create composite_unique_key:Name,isDeleted filter=In"` DeletedAt int64 `db:"deleted_at"` State string `db:"state" orm:"op=create,update filter=In,NotIn"` Message string `db:"message" orm:"op=create,update"` UpdateDomain string `db:"update_domain" orm:"op=create filter=In"` ClusterID string `db:"cluster_id" orm:"op=create filter=In"` TotalCores uint32 `db:"total_cores" orm:"op=create,update"` TotalMemory uint32 `db:"total_memory" orm:"op=create,update"` SystemReservedCores uint32 `db:"system_reserved_cores" orm:"op=create,update"` SystemReservedMemory uint32 `db:"system_reserved_memory" orm:"op=create,update"` RemainingCores uint32 `db:"remaining_cores" orm:"op=create,update filter=lte,gte"` RemainingMemory uint32 `db:"remaining_memory" orm:"op=create,update filter=lte,gte"` }
type NodeSelectFilters ¶
type NodeSelectFilters struct { IDIn []string `db:"id:in"` // IN condition NameIn []string `db:"name:in"` // IN condition StateIn []string `db:"state:in"` // IN condition StateNotIn []string `db:"state:not_in"` // NOT IN condition VersionGte *uint64 `db:"version:gte"` // Greater than or equal condition VersionLte *uint64 `db:"version:lte"` // Less than or equal condition VersionEq *uint64 `db:"version:eq"` // Equal condition ClusterIDIn []string `db:"cluster_id:in"` ClusterIDNotIn []string `db:"cluster_id:not_in"` RemainingCoresGte *uint32 `db:"remaining_memory:gte"` // Greater than or equal condition RemainingCoresLte *uint32 `db:"remaining_memory:lte"` // Less than or equal condition RemainingMemoryGte *uint32 `db:"remaining_memory:gte"` // Greater than or equal condition RemainingMemoryLte *uint32 `db:"remaining_memory:lte"` // Less than or equal condition PayloadNameIn []string `db:"payload_name:in"` // IN condition PayloadNameNotIn []string `db:"payload_name:not_in"` // NOT IN condition UpdateDomainIn []string `db:"update_domain:in"` IncludeDeleted bool `db:"include_deleted"` // Special boolean handling Limit uint32 `db:"limit"` }
Source Files ¶
- cluster_table.go
- compute_capability_table.go
- deployment_plan_application_persistent_volume_table.go
- deployment_plan_application_port_table.go
- deployment_plan_application_table.go
- deployment_plan_deployment_payload_coordinates_table.go
- deployment_plan_deployment_table.go
- deployment_plan_matching_capability_table.go
- deployment_plan_table.go
- initialize.go
- meta_instance_operation_table.go
- meta_instance_runtime_instance_table.go
- meta_instance_table.go
- node_capability_table.go
- node_disruption_table.go
- node_local_volume_table.go
- node_payload_table.go
- node_table.go
Click to show internal directories.
Click to hide internal directories.