@@ -152,3 +152,33 @@ type RunRepository interface {
152152 // List retrieves all existing run.
153153 List (ctx context.Context , filter * entity.RunFilter , sortOptions * entity.SortOptions ) (* entity.RunListResult , error )
154154}
155+
156+ // VariableSetRepository is an interface that defines the repository operations
157+ // for variable sets. It follows the principles of domain-driven design (DDD).
158+ type VariableSetRepository interface {
159+ // Create creates a new variable set.
160+ Create (ctx context.Context , vs * entity.VariableSet ) error
161+ // Delete deletes a variable set by its name.
162+ Delete (ctx context.Context , name string ) error
163+ // Update updates an existing variable set.
164+ Update (ctx context.Context , vs * entity.VariableSet ) error
165+ // Get retrieves a variable set by its name.
166+ Get (ctx context.Context , name string ) (* entity.VariableSet , error )
167+ // List retrieves existing variable sets with filter and sort options.
168+ List (ctx context.Context , filter * entity.VariableSetFilter , sortOptions * entity.SortOptions ) (* entity.VariableSetListResult , error )
169+ }
170+
171+ // VariableRepository is an interface that defines the repository operations
172+ // for variables. It follows the principles of domain-driven design (DDD).
173+ type VariableRepository interface {
174+ // Create creates a new variable.
175+ Create (ctx context.Context , v * entity.Variable ) error
176+ // Delete deletes a variable by its name and the variable set it belongs to.
177+ Delete (ctx context.Context , name , variableSet string ) error
178+ // Update updates an existing variable.
179+ Update (ctx context.Context , v * entity.Variable ) error
180+ // Get retrieves a variable by its name and the variable set it belogs to.
181+ Get (ctx context.Context , name , variableSet string ) (* entity.Variable , error )
182+ // List retrieves existing variable with filter and sort options.
183+ List (ctx context.Context , filter * entity.VariableFilter , sortOptions * entity.SortOptions ) (* entity.VariableListResult , error )
184+ }
0 commit comments