variable

package
v0.14.1-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGettingNonExistingVariable  = errors.New("the variable does not exist")
	ErrUpdatingNonExistingVariable = errors.New("the variable to update does not exist")
	ErrEmptyVariableName           = errors.New("the variable name should not be empty")
)

Functions

This section is empty.

Types

type VariableManager

type VariableManager struct {
	// contains filtered or unexported fields
}

func NewVariableManager

func NewVariableManager(
	variableRepo repository.VariableRepository,
) *VariableManager

func (*VariableManager) BuildVariableFilterAndSortOptions

func (v *VariableManager) BuildVariableFilterAndSortOptions(ctx context.Context,
	query *url.Values,
) (*entity.VariableFilter, *entity.SortOptions, error)

func (*VariableManager) CreateVariable

func (v *VariableManager) CreateVariable(ctx context.Context,
	requestPayload request.CreateVariableRequest,
) (*entity.Variable, error)

func (*VariableManager) DeleteVariableByNameAndVariableSet

func (v *VariableManager) DeleteVariableByNameAndVariableSet(ctx context.Context,
	name, variableSet string,
) error

func (*VariableManager) GetVariableByNameAndVariableSet

func (v *VariableManager) GetVariableByNameAndVariableSet(ctx context.Context,
	name, variableSet string,
) (*entity.Variable, error)

func (*VariableManager) ListVariables

func (v *VariableManager) ListVariables(ctx context.Context,
	filter *entity.VariableFilter, sortOptions *entity.SortOptions,
) (*entity.VariableListResult, error)

func (*VariableManager) UpdateVariableByNameAndVariableSet

func (v *VariableManager) UpdateVariableByNameAndVariableSet(ctx context.Context,
	name, variableSet string, requestPayload request.UpdateVariableRequest,
) (*entity.Variable, error)

Jump to

Keyboard shortcuts

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