Skip to content

Commit c593512

Browse files
committed
internal/server/db/cluster: Update generated code
Signed-off-by: Max Asnaashari <[email protected]>
1 parent 467deca commit c593512

27 files changed

+96
-189
lines changed

internal/server/db/cluster/certificate_projects.interface.mapper.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import "context"
88
type CertificateProjectGenerated interface {
99
// GetCertificateProjects returns all available Projects for the Certificate.
1010
// generator: certificate_project GetMany
11-
GetCertificateProjects(ctx context.Context, db dbtx, certificateID int) ([]Project, error)
11+
GetCertificateProjects(ctx context.Context, db tx, certificateID int) ([]Project, error)
1212

1313
// DeleteCertificateProjects deletes the certificate_project matching the given key parameters.
1414
// generator: certificate_project DeleteMany
15-
DeleteCertificateProjects(ctx context.Context, db dbtx, certificateID int) error
15+
DeleteCertificateProjects(ctx context.Context, db tx, certificateID int) error
1616

1717
// CreateCertificateProjects adds a new certificate_project to the database.
1818
// generator: certificate_project Create
19-
CreateCertificateProjects(ctx context.Context, db dbtx, objects []CertificateProject) error
19+
CreateCertificateProjects(ctx context.Context, db tx, objects []CertificateProject) error
2020

2121
// UpdateCertificateProjects updates the certificate_project matching the given key parameters.
2222
// generator: certificate_project Update
23-
UpdateCertificateProjects(ctx context.Context, db dbtx, certificateID int, projectNames []string) error
23+
UpdateCertificateProjects(ctx context.Context, db tx, certificateID int, projectNames []string) error
2424
}

internal/server/db/cluster/certificate_projects.mapper.go

+4-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/server/db/cluster/certificates.interface.mapper.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type CertificateGenerated interface {
2020

2121
// GetCertificateID return the ID of the certificate with the given key.
2222
// generator: certificate ID
23-
GetCertificateID(ctx context.Context, db dbtx, fingerprint string) (int64, error)
23+
GetCertificateID(ctx context.Context, db tx, fingerprint string) (int64, error)
2424

2525
// CertificateExists checks if a certificate with the given key exists.
2626
// generator: certificate Exists
@@ -40,5 +40,5 @@ type CertificateGenerated interface {
4040

4141
// UpdateCertificate updates the certificate matching the given key parameters.
4242
// generator: certificate Update
43-
UpdateCertificate(ctx context.Context, db dbtx, fingerprint string, object Certificate) error
43+
UpdateCertificate(ctx context.Context, db tx, fingerprint string, object Certificate) error
4444
}

internal/server/db/cluster/certificates.mapper.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/server/db/cluster/cluster_groups.interface.mapper.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import "context"
88
type ClusterGroupGenerated interface {
99
// GetClusterGroupConfig returns all available ClusterGroup Config
1010
// generator: cluster_group GetMany
11-
GetClusterGroupConfig(ctx context.Context, db dbtx, clusterGroupID int, filters ...ConfigFilter) (map[string]string, error)
11+
GetClusterGroupConfig(ctx context.Context, db tx, clusterGroupID int, filters ...ConfigFilter) (map[string]string, error)
1212

1313
// GetClusterGroups returns all available cluster_groups.
1414
// generator: cluster_group GetMany
@@ -20,7 +20,7 @@ type ClusterGroupGenerated interface {
2020

2121
// GetClusterGroupID return the ID of the cluster_group with the given key.
2222
// generator: cluster_group ID
23-
GetClusterGroupID(ctx context.Context, db dbtx, name string) (int64, error)
23+
GetClusterGroupID(ctx context.Context, db tx, name string) (int64, error)
2424

2525
// ClusterGroupExists checks if a cluster_group with the given key exists.
2626
// generator: cluster_group Exists
@@ -40,11 +40,11 @@ type ClusterGroupGenerated interface {
4040

4141
// UpdateClusterGroupConfig updates the cluster_group Config matching the given key parameters.
4242
// generator: cluster_group Update
43-
UpdateClusterGroupConfig(ctx context.Context, db dbtx, clusterGroupID int64, config map[string]string) error
43+
UpdateClusterGroupConfig(ctx context.Context, db tx, clusterGroupID int64, config map[string]string) error
4444

4545
// UpdateClusterGroup updates the cluster_group matching the given key parameters.
4646
// generator: cluster_group Update
47-
UpdateClusterGroup(ctx context.Context, db dbtx, name string, object ClusterGroup) error
47+
UpdateClusterGroup(ctx context.Context, db tx, name string, object ClusterGroup) error
4848

4949
// DeleteClusterGroup deletes the cluster_group matching the given key parameters.
5050
// generator: cluster_group DeleteOne-by-Name

internal/server/db/cluster/cluster_groups.mapper.go

+4-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/server/db/cluster/config.mapper.go

-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/server/db/cluster/devices.interface.mapper.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import "context"
88
type DeviceGenerated interface {
99
// GetDevices returns all available devices for the parent entity.
1010
// generator: device GetMany
11-
GetDevices(ctx context.Context, db dbtx, parent string, filters ...DeviceFilter) (map[int][]Device, error)
11+
GetDevices(ctx context.Context, db tx, parent string, filters ...DeviceFilter) (map[int][]Device, error)
1212

1313
// CreateDevices adds a new device to the database.
1414
// generator: device Create
15-
CreateDevices(ctx context.Context, db dbtx, parent string, objects map[string]Device) error
15+
CreateDevices(ctx context.Context, db tx, parent string, objects map[string]Device) error
1616

1717
// UpdateDevices updates the device matching the given key parameters.
1818
// generator: device Update
19-
UpdateDevices(ctx context.Context, db dbtx, parent string, referenceID int, devices map[string]Device) error
19+
UpdateDevices(ctx context.Context, db tx, parent string, referenceID int, devices map[string]Device) error
2020

2121
// DeleteDevices deletes the device matching the given key parameters.
2222
// generator: device DeleteMany
23-
DeleteDevices(ctx context.Context, db dbtx, parent string, referenceID int) error
23+
DeleteDevices(ctx context.Context, db tx, parent string, referenceID int) error
2424
}

internal/server/db/cluster/devices.mapper.go

+4-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/server/db/cluster/instance_profiles.interface.mapper.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import "context"
88
type InstanceProfileGenerated interface {
99
// GetProfileInstances returns all available Instances for the Profile.
1010
// generator: instance_profile GetMany
11-
GetProfileInstances(ctx context.Context, db dbtx, profileID int) ([]Instance, error)
11+
GetProfileInstances(ctx context.Context, db tx, profileID int) ([]Instance, error)
1212

1313
// GetInstanceProfiles returns all available Profiles for the Instance.
1414
// generator: instance_profile GetMany
15-
GetInstanceProfiles(ctx context.Context, db dbtx, instanceID int) ([]Profile, error)
15+
GetInstanceProfiles(ctx context.Context, db tx, instanceID int) ([]Profile, error)
1616

1717
// CreateInstanceProfiles adds a new instance_profile to the database.
1818
// generator: instance_profile Create
19-
CreateInstanceProfiles(ctx context.Context, db dbtx, objects []InstanceProfile) error
19+
CreateInstanceProfiles(ctx context.Context, db tx, objects []InstanceProfile) error
2020

2121
// DeleteInstanceProfiles deletes the instance_profile matching the given key parameters.
2222
// generator: instance_profile DeleteMany
23-
DeleteInstanceProfiles(ctx context.Context, db dbtx, instanceID int) error
23+
DeleteInstanceProfiles(ctx context.Context, db tx, instanceID int) error
2424
}

internal/server/db/cluster/instance_profiles.mapper.go

+4-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)