resourcelimit

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package resourcelimit package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetResourceLimits(ctx context.Context) ([]models.ResourceLimit, error)
	UpdateResourceLimit(ctx context.Context, input *UpdateResourceLimitInput) (*models.ResourceLimit, error)
}

Service implements all resource limit related functionality

func NewService

func NewService(
	logger logger.Logger,
	dbClient *db.Client,
) Service

NewService creates an instance of Service

type UpdateResourceLimitInput

type UpdateResourceLimitInput struct {
	MetadataVersion *int
	Name            string
	Value           int
}

UpdateResourceLimitInput is the input for updating (or creating) a (non-default) limit value.

Jump to

Keyboard shortcuts

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