variableset

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL