Documentation
¶
Index ¶
- Variables
- type ComponentMetadatum
- type DBTX
- type InsertComponentParams
- type Queries
- func (q *Queries) ComponentExists(ctx context.Context, componentName string) (string, error)
- func (q *Queries) InsertComponent(ctx context.Context, arg InsertComponentParams) error
- func (q *Queries) UpdateRepoKey(ctx context.Context, arg UpdateRepoKeyParams) error
- func (q *Queries) UpdateVendorProductInfo(ctx context.Context, arg UpdateVendorProductInfoParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateRepoKeyParams
- type UpdateVendorProductInfoParams
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTablesQuery string
Functions ¶
This section is empty.
Types ¶
type ComponentMetadatum ¶
type ComponentMetadatum struct {
ComponentName string
ParentComponentName sql.NullString
Platform sql.NullString
Organisation sql.NullString
Repo sql.NullString
Path sql.NullString
Vendor sql.NullString
Product sql.NullString
ProductVersion sql.NullString
Owner sql.NullString
OwnerNotes sql.NullString
ComponentType sql.NullString
ComponentUsage sql.NullString
Description sql.NullString
AdditionalMetadata sql.NullString
}
type InsertComponentParams ¶
type InsertComponentParams struct {
ComponentName string
ParentComponentName sql.NullString
Platform sql.NullString
Organisation sql.NullString
Repo sql.NullString
Path sql.NullString
Vendor sql.NullString
Product sql.NullString
ProductVersion sql.NullString
Owner sql.NullString
OwnerNotes sql.NullString
ComponentType sql.NullString
ComponentUsage sql.NullString
Description sql.NullString
AdditionalMetadata sql.NullString
}
func NewInsertComponentParams ¶
func NewInsertComponentParams(componentName string, repoKey domain.RepoKey) InsertComponentParams
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ComponentExists ¶
func (*Queries) InsertComponent ¶
func (q *Queries) InsertComponent(ctx context.Context, arg InsertComponentParams) error
func (*Queries) UpdateRepoKey ¶
func (q *Queries) UpdateRepoKey(ctx context.Context, arg UpdateRepoKeyParams) error
func (*Queries) UpdateVendorProductInfo ¶
func (q *Queries) UpdateVendorProductInfo(ctx context.Context, arg UpdateVendorProductInfoParams) error
type UpdateRepoKeyParams ¶
type UpdateRepoKeyParams struct {
Platform sql.NullString
Organisation sql.NullString
Repo sql.NullString
ComponentName string
}
func NewUpdateRepoKeyParams ¶
func NewUpdateRepoKeyParams(componentName string, repoKey domain.RepoKey) UpdateRepoKeyParams
type UpdateVendorProductInfoParams ¶
type UpdateVendorProductInfoParams struct {
Vendor sql.NullString
Product sql.NullString
ProductVersion sql.NullString
ComponentName string
}
Click to show internal directories.
Click to hide internal directories.