Documentation
¶
Index ¶
- Variables
- type VariableSetManager
- func (vs *VariableSetManager) BuildVariableSetFilterAndSortOptions(ctx context.Context, query *url.Values) (*entity.VariableSetFilter, *entity.SortOptions, error)
- func (vs *VariableSetManager) CreateVariableSet(ctx context.Context, requestPayload request.CreateVariableSetRequest) (*entity.VariableSet, error)
- func (vs *VariableSetManager) DeleteVariableSetByName(ctx context.Context, name string) error
- func (vs *VariableSetManager) GetVariableSetByName(ctx context.Context, name string) (*entity.VariableSet, error)
- func (vs *VariableSetManager) ListVariableSets(ctx context.Context, filter *entity.VariableSetFilter, ...) (*entity.VariableSetListResult, error)
- func (vs *VariableSetManager) UpdateVariableSetByName(ctx context.Context, name string, ...) (*entity.VariableSet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGettingNonExistingVariableSet = errors.New("the variable set does not exist") ErrUpdatingNonExistingVariableSet = errors.New("the variable set to update does not exist") ErrEmptyVariableSetName = errors.New("the variable set name should not be empty") ErrEmptyVariableSetLabels = errors.New("the variable set labels should not be empty") )
Functions ¶
This section is empty.
Types ¶
type VariableSetManager ¶
type VariableSetManager struct {
// contains filtered or unexported fields
}
func NewVariableSetManager ¶
func NewVariableSetManager( variableSetRepo repository.VariableSetRepository, ) *VariableSetManager
func (*VariableSetManager) BuildVariableSetFilterAndSortOptions ¶
func (vs *VariableSetManager) BuildVariableSetFilterAndSortOptions(ctx context.Context, query *url.Values, ) (*entity.VariableSetFilter, *entity.SortOptions, error)
func (*VariableSetManager) CreateVariableSet ¶
func (vs *VariableSetManager) CreateVariableSet(ctx context.Context, requestPayload request.CreateVariableSetRequest, ) (*entity.VariableSet, error)
func (*VariableSetManager) DeleteVariableSetByName ¶
func (vs *VariableSetManager) DeleteVariableSetByName(ctx context.Context, name string) error
func (*VariableSetManager) GetVariableSetByName ¶
func (vs *VariableSetManager) GetVariableSetByName(ctx context.Context, name string) (*entity.VariableSet, error)
func (*VariableSetManager) ListVariableSets ¶
func (vs *VariableSetManager) ListVariableSets(ctx context.Context, filter *entity.VariableSetFilter, sortOptions *entity.SortOptions, ) (*entity.VariableSetListResult, error)
func (*VariableSetManager) UpdateVariableSetByName ¶
func (vs *VariableSetManager) UpdateVariableSetByName(ctx context.Context, name string, requestPayload request.UpdateVariableSetRequest, ) (*entity.VariableSet, error)
Click to show internal directories.
Click to hide internal directories.