state

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStateInterface

type ClusterStateInterface interface {
	Save(ctx context.Context, state models.ClusterState) (*models.ClusterState, error)
	QueryByID(ctx context.Context, clusterID uuid.UUID) (*models.ClusterState, error)
	Update(ctx context.Context, params models.ClusterState) error
}

type ClusterStateRepository

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

func NewClusterStateRepository

func NewClusterStateRepository(db *database.DB) *ClusterStateRepository

func (*ClusterStateRepository) QueryByID

func (r *ClusterStateRepository) QueryByID(ctx context.Context, clusterID uuid.UUID) (*models.ClusterState, error)

func (*ClusterStateRepository) Save

func (*ClusterStateRepository) Update

Jump to

Keyboard shortcuts

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