query

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package query is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capacity

type Capacity struct {
	Count       *int
	CPUCores    *int
	RamGB       *float64 // nolint
	DiskGB      *float64
	GPUCapacity *GPUCapacity
}

Capacity ...

type Cluster

type Cluster struct {
	ID                 string
	HeartbeatTimestamp time.Time
	Capacity           *Capacity
	Limits             *Limits
}

Cluster ...

type FakeReadModel

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

FakeReadModel is a mock of ReadModel interface.

func NewFakeReadModel

func NewFakeReadModel(ctrl *gomock.Controller) *FakeReadModel

NewFakeReadModel creates a new mock instance.

func (*FakeReadModel) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*FakeReadModel) List

func (m *FakeReadModel) List(ctx context.Context, filter *ListFilter) ([]*Cluster, error)

List mocks base method.

type FakeReadModelMockRecorder

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

FakeReadModelMockRecorder is the mock recorder for FakeReadModel.

func (*FakeReadModelMockRecorder) List

func (mr *FakeReadModelMockRecorder) List(ctx, filter interface{}) *gomock.Call

List indicates an expected call of List.

type GPUCapacity

type GPUCapacity struct {
	GPU map[string]float64
}

GPUCapacity ...

type GPULimit

type GPULimit struct {
	GPU map[string]float64
}

GPULimit ...

type Limits

type Limits struct {
	CPUCores *int
	RamGB    *float64 // nolint
	GPULimit *GPULimit
}

Limits ...

type ListFilter

type ListFilter struct {
}

ListFilter ...

type ListHandler

type ListHandler interface {
	Handle(ctx context.Context, query *ListQuery) ([]*Cluster, error)
}

ListHandler ...

func NewListHandler

func NewListHandler(readModel ReadModel) ListHandler

NewListHandler ...

type ListQuery

type ListQuery struct {
	Filter *ListFilter
}

ListQuery ...

type Queries

type Queries struct {
	List ListHandler
}

Queries ...

func NewQueries

func NewQueries(readModel ReadModel) *Queries

NewQueries ...

type ReadModel

type ReadModel interface {
	List(ctx context.Context, filter *ListFilter) ([]*Cluster, error)
}

ReadModel ...

Jump to

Keyboard shortcuts

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