Documentation ¶
Index ¶
- Variables
- func CloseDatabase() (err error)
- func DeleteAllGenericHardware(tx *sql.Tx) (err error)
- func DeleteAllGenericHardwareContext(ctx context.Context) error
- func DeleteAllNetworks(tx *sql.Tx) (err error)
- func DeleteAllNetworksContext(ctx context.Context) error
- func DeleteGenericHardware(tx *sql.Tx, hardware sls_common.GenericHardware) (err error)
- func DeleteGenericHardwareByXname(tx *sql.Tx, xname string) error
- func DeleteGenericHardwareByXnameContext(ctx context.Context, xname string) error
- func DeleteGenericHardwareContext(ctx context.Context, hardware sls_common.GenericHardware) error
- func DeleteNetwork(tx *sql.Tx, networkName string) (err error)
- func DeleteNetworkContext(ctx context.Context, networkName string) error
- func GetAllGenericHardware(tx *sql.Tx) (hardware []sls_common.GenericHardware, err error)
- func GetAllGenericHardwareContext(ctx context.Context) (hardware []sls_common.GenericHardware, err error)
- func GetAllNetworks(tx *sql.Tx) (networks []sls_common.Network, err error)
- func GetAllNetworksContext(ctx context.Context) ([]sls_common.Network, error)
- func GetCurrentVersion(ctx context.Context) (version int, err error)
- func GetGenericHardwareForExtraProperties(ctx context.Context, properties map[string]interface{}) (hardware []sls_common.GenericHardware, err error)
- func GetGenericHardwareFromXname(tx *sql.Tx, xname string) (hardware sls_common.GenericHardware, err error)
- func GetGenericHardwareFromXnameContext(ctx context.Context, xname string) (hardware sls_common.GenericHardware, err error)
- func GetLastModified(ctx context.Context) (lastModified string, err error)
- func GetNetworkForName(tx *sql.Tx, name string) (network sls_common.Network, err error)
- func GetNetworkForNameContext(ctx context.Context, name string) (sls_common.Network, error)
- func GetNetworksContainingIP(tx *sql.Tx, addr string) (networks []sls_common.Network, err error)
- func GetNetworksContainingIPContext(ctx context.Context, addr string) ([]sls_common.Network, error)
- func IncrementVersion(trans *sql.Tx, updatedEntity string) (id int64, err error)
- func InsertGenericHardware(tx *sql.Tx, hardware sls_common.GenericHardware) (err error)
- func InsertGenericHardwareContext(ctx context.Context, hardware sls_common.GenericHardware) error
- func InsertNetwork(tx *sql.Tx, network sls_common.Network) (err error)
- func InsertNetworkContext(ctx context.Context, network sls_common.Network) error
- func NewDatabase() (err error)
- func ReplaceAllGenericHardware(tx *sql.Tx, hardware []sls_common.GenericHardware) (err error)
- func ReplaceAllGenericHardwareContext(ctx context.Context, hardware []sls_common.GenericHardware) error
- func ReplaceAllNetworks(tx *sql.Tx, networks []sls_common.Network) (err error)
- func ReplaceAllNetworksContext(ctx context.Context, networks []sls_common.Network) error
- func SearchGenericHardware(tx *sql.Tx, conditions map[string]string, properties map[string]interface{}) (hardware []sls_common.GenericHardware, err error)
- func SearchGenericHardwareContext(ctx context.Context, conditions map[string]string, ...) (hardware []sls_common.GenericHardware, err error)
- func SearchNetworks(tx *sql.Tx, conditions map[string]string, properties map[string]interface{}) (networks []sls_common.Network, err error)
- func SearchNetworksContext(ctx context.Context, conditions map[string]string, ...) ([]sls_common.Network, error)
- func SetGenericHardware(tx *sql.Tx, obj sls_common.GenericHardware) (err error, created bool)
- func SetGenericHardwareContext(ctx context.Context, obj sls_common.GenericHardware) (err error, created bool)
- func SetNetworkContext(ctx context.Context, network sls_common.Network) error
- func ToParameterArray(index int, values []string) (next int, ivalues []interface{}, str string)
- func UpdateGenericHardware(tx *sql.Tx, hardware sls_common.GenericHardware) (err error)
- func UpdateGenericHardwareContext(ctx context.Context, hardware sls_common.GenericHardware) error
- func UpdateNetwork(tx *sql.Tx, network sls_common.Network) (err error)
- func UpdateNetworkContext(ctx context.Context, network sls_common.Network) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AlreadySuch = errors.New("entity already exists by that name")
View Source
var DB *sql.DB
View Source
var DBInitialized bool
View Source
var NoSuch = errors.New("nothing found by that name")
Functions ¶
func CloseDatabase ¶
func CloseDatabase() (err error)
func DeleteAllGenericHardwareContext ¶ added in v2.2.0
func DeleteAllNetworks ¶
func DeleteAllNetworksContext ¶ added in v2.2.0
func DeleteGenericHardware ¶
func DeleteGenericHardware(tx *sql.Tx, hardware sls_common.GenericHardware) (err error)
func DeleteGenericHardwareByXname ¶ added in v2.2.0
func DeleteGenericHardwareByXnameContext ¶ added in v2.2.0
func DeleteGenericHardwareContext ¶ added in v2.2.0
func DeleteGenericHardwareContext(ctx context.Context, hardware sls_common.GenericHardware) error
func DeleteNetworkContext ¶ added in v2.2.0
func GetAllGenericHardware ¶
func GetAllGenericHardware(tx *sql.Tx) (hardware []sls_common.GenericHardware, err error)
func GetAllGenericHardwareContext ¶ added in v2.2.0
func GetAllGenericHardwareContext(ctx context.Context) (hardware []sls_common.GenericHardware, err error)
func GetAllNetworks ¶
func GetAllNetworks(tx *sql.Tx) (networks []sls_common.Network, err error)
func GetAllNetworksContext ¶ added in v2.2.0
func GetAllNetworksContext(ctx context.Context) ([]sls_common.Network, error)
func GetGenericHardwareForExtraProperties ¶
func GetGenericHardwareForExtraProperties(ctx context.Context, properties map[string]interface{}) (hardware []sls_common.GenericHardware, err error)
func GetGenericHardwareFromXname ¶
func GetGenericHardwareFromXname(tx *sql.Tx, xname string) (hardware sls_common.GenericHardware, err error)
func GetGenericHardwareFromXnameContext ¶ added in v2.2.0
func GetGenericHardwareFromXnameContext(ctx context.Context, xname string) (hardware sls_common.GenericHardware, err error)
func GetNetworkForName ¶
func GetNetworkForNameContext ¶ added in v2.2.0
func GetNetworksContainingIP ¶
func GetNetworksContainingIPContext ¶ added in v2.2.0
func IncrementVersion ¶
func InsertGenericHardware ¶
func InsertGenericHardware(tx *sql.Tx, hardware sls_common.GenericHardware) (err error)
func InsertGenericHardwareContext ¶ added in v2.2.0
func InsertGenericHardwareContext(ctx context.Context, hardware sls_common.GenericHardware) error
func InsertNetwork ¶
func InsertNetwork(tx *sql.Tx, network sls_common.Network) (err error)
func InsertNetworkContext ¶ added in v2.2.0
func InsertNetworkContext(ctx context.Context, network sls_common.Network) error
func NewDatabase ¶
func NewDatabase() (err error)
func ReplaceAllGenericHardware ¶
func ReplaceAllGenericHardware(tx *sql.Tx, hardware []sls_common.GenericHardware) (err error)
func ReplaceAllGenericHardwareContext ¶ added in v2.2.0
func ReplaceAllGenericHardwareContext(ctx context.Context, hardware []sls_common.GenericHardware) error
func ReplaceAllNetworks ¶
func ReplaceAllNetworks(tx *sql.Tx, networks []sls_common.Network) (err error)
func ReplaceAllNetworksContext ¶ added in v2.2.0
func ReplaceAllNetworksContext(ctx context.Context, networks []sls_common.Network) error
func SearchGenericHardware ¶
func SearchGenericHardware(tx *sql.Tx, conditions map[string]string, properties map[string]interface{}) ( hardware []sls_common.GenericHardware, err error)
func SearchGenericHardwareContext ¶ added in v2.2.0
func SearchGenericHardwareContext(ctx context.Context, conditions map[string]string, properties map[string]interface{}) ( hardware []sls_common.GenericHardware, err error)
func SearchNetworks ¶
func SearchNetworksContext ¶ added in v2.2.0
func SetGenericHardware ¶ added in v2.2.0
func SetGenericHardware(tx *sql.Tx, obj sls_common.GenericHardware) (err error, created bool)
func SetGenericHardwareContext ¶ added in v2.2.0
func SetGenericHardwareContext(ctx context.Context, obj sls_common.GenericHardware) (err error, created bool)
func SetNetworkContext ¶ added in v2.2.0
func SetNetworkContext(ctx context.Context, network sls_common.Network) error
func ToParameterArray ¶
func UpdateGenericHardware ¶
func UpdateGenericHardware(tx *sql.Tx, hardware sls_common.GenericHardware) (err error)
func UpdateGenericHardwareContext ¶ added in v2.2.0
func UpdateGenericHardwareContext(ctx context.Context, hardware sls_common.GenericHardware) error
func UpdateNetwork ¶
func UpdateNetwork(tx *sql.Tx, network sls_common.Network) (err error)
func UpdateNetworkContext ¶ added in v2.2.0
func UpdateNetworkContext(ctx context.Context, network sls_common.Network) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.